Class SchemaFieldProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3tables.alpha.SchemaFieldProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SchemaFieldProperty>
- Enclosing interface:
SchemaFieldProperty
@Stability(Experimental)
public static final class SchemaFieldProperty.Builder
extends Object
implements software.amazon.jsii.Builder<SchemaFieldProperty>
A builder for
SchemaFieldProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofSchemaFieldProperty.getName()
Sets the value ofSchemaFieldProperty.getRequired()
Sets the value ofSchemaFieldProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofSchemaFieldProperty.getName()
- Parameters:
name
- The name of the field. This parameter is required.- Returns:
this
-
type
Sets the value ofSchemaFieldProperty.getType()
- Parameters:
type
- The field type. This parameter is required. S3 Tables supports all Apache Iceberg primitive types. For more information, see the Apache Iceberg documentation.- Returns:
this
-
required
Sets the value ofSchemaFieldProperty.getRequired()
- Parameters:
required
- A Boolean value that specifies whether values are required for each row in this field. By default, this isfalse
and null values are allowed in the field. If this istrue
, the field does not allow null values.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SchemaFieldProperty>
- Returns:
- a new instance of
SchemaFieldProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-