Class SchemaField
- java.lang.Object
-
- software.amazon.awssdk.services.s3tables.model.SchemaField
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SchemaField.Builder,SchemaField>
@Generated("software.amazon.awssdk:codegen") public final class SchemaField extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SchemaField.Builder,SchemaField>
Contains details about a schema field.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSchemaField.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SchemaField.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the field.Booleanrequired()A Boolean value that specifies whether values are required for each row in this field.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SchemaField.Builder>serializableBuilderClass()SchemaField.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringtype()The field type.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name of the field.
- Returns:
- The name of the field.
-
type
public final String type()
The field type. S3 Tables supports all Apache Iceberg primitive types. For more information, see the Apache Iceberg documentation.
- Returns:
- The field type. S3 Tables supports all Apache Iceberg primitive types. For more information, see the Apache Iceberg documentation.
-
required
public final Boolean required()
A Boolean value that specifies whether values are required for each row in this field. By default, this is
falseand null values are allowed in the field. If this istruethe field does not allow null values.- Returns:
- A Boolean value that specifies whether values are required for each row in this field. By default, this
is
falseand null values are allowed in the field. If this istruethe field does not allow null values.
-
toBuilder
public SchemaField.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SchemaField.Builder,SchemaField>
-
builder
public static SchemaField.Builder builder()
-
serializableBuilderClass
public static Class<? extends SchemaField.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-