Class CfnTablePropsMixin.SchemaV2FieldProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3tables.CfnTablePropsMixin.SchemaV2FieldProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTablePropsMixin.SchemaV2FieldProperty>
- Enclosing interface:
CfnTablePropsMixin.SchemaV2FieldProperty
@Stability(Stable)
public static final class CfnTablePropsMixin.SchemaV2FieldProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTablePropsMixin.SchemaV2FieldProperty>
A builder for
CfnTablePropsMixin.SchemaV2FieldProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getDoc()Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getId()Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getName()Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getRequired()required(IResolvable required) Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getRequired()Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
doc
Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getDoc()- Parameters:
doc- Optional documentation for the field.- Returns:
this
-
id
Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getId()- Parameters:
id- The unique identifier for the field.- Returns:
this
-
name
Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getName()- Parameters:
name- The name of the field.- Returns:
this
-
required
@Stability(Stable) public CfnTablePropsMixin.SchemaV2FieldProperty.Builder required(Boolean required) Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getRequired()- Parameters:
required- A Boolean value that specifies whether values are required for each row in this field.- Returns:
this
-
required
@Stability(Stable) public CfnTablePropsMixin.SchemaV2FieldProperty.Builder required(IResolvable required) Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getRequired()- Parameters:
required- A Boolean value that specifies whether values are required for each row in this field.- Returns:
this
-
type
Sets the value ofCfnTablePropsMixin.SchemaV2FieldProperty.getType()- Parameters:
type- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTablePropsMixin.SchemaV2FieldProperty>- Returns:
- a new instance of
CfnTablePropsMixin.SchemaV2FieldProperty - Throws:
NullPointerException- if any required attribute was not provided
-