@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 final String attributeName()
The name of the dataset field.
public final AttributeType attributeType()
The data type of the field.
For a related time series dataset, other than date, item_id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float).
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().
For a related time series dataset, other than date, item_id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float).
AttributeTypepublic final String attributeTypeAsString()
The data type of the field.
For a related time series dataset, other than date, item_id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float).
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().
For a related time series dataset, other than date, item_id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float).
AttributeTypepublic SchemaAttribute.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SchemaAttribute.Builder,SchemaAttribute>public static SchemaAttribute.Builder builder()
public static Class<? extends SchemaAttribute.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.