Class CfnTable.SchemaFieldProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3tables.CfnTable.SchemaFieldProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.SchemaFieldProperty>
- Enclosing interface:
CfnTable.SchemaFieldProperty
@Stability(Stable)
public static final class CfnTable.SchemaFieldProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.SchemaFieldProperty>
A builder for
CfnTable.SchemaFieldProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTable.SchemaFieldProperty.getName()
Sets the value ofCfnTable.SchemaFieldProperty.getRequired()
required
(IResolvable required) Sets the value ofCfnTable.SchemaFieldProperty.getRequired()
Sets the value ofCfnTable.SchemaFieldProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnTable.SchemaFieldProperty.getName()
- Parameters:
name
- The name of the field. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnTable.SchemaFieldProperty.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 ofCfnTable.SchemaFieldProperty.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
-
required
Sets the value ofCfnTable.SchemaFieldProperty.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<CfnTable.SchemaFieldProperty>
- Returns:
- a new instance of
CfnTable.SchemaFieldProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-