@Generated(value="software.amazon.awssdk:codegen") public final class SchemaAttribute extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SchemaAttribute.Builder,SchemaAttribute>
An attribute of a schema, which defines a dataset field. A schema attribute is required for every field in a dataset.
The Schema object contains an array of SchemaAttribute objects.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SchemaAttribute.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
attributeName()
The name of the dataset field.
|
AttributeType |
attributeType()
The data type of the field.
|
String |
attributeTypeAsString()
The data type of the field.
|
static SchemaAttribute.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SchemaAttribute.Builder> |
serializableBuilderClass() |
SchemaAttribute.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String attributeName()
The name of the dataset field.
public AttributeType attributeType()
The data type of the field.
If the service returns an enum value that is not available in the current SDK version, attributeType
will return AttributeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
attributeTypeAsString().
AttributeTypepublic String attributeTypeAsString()
The data type of the field.
If the service returns an enum value that is not available in the current SDK version, attributeType
will return AttributeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
attributeTypeAsString().
AttributeTypepublic SchemaAttribute.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SchemaAttribute.Builder,SchemaAttribute>public static SchemaAttribute.Builder builder()
public static Class<? extends SchemaAttribute.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.