Class CfnGlobalTablePropsMixin.AttributeDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.dynamodb.mixins.CfnGlobalTablePropsMixin.AttributeDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTablePropsMixin.AttributeDefinitionProperty>
- Enclosing interface:
CfnGlobalTablePropsMixin.AttributeDefinitionProperty
@Stability(Stable)
public static final class CfnGlobalTablePropsMixin.AttributeDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalTablePropsMixin.AttributeDefinitionProperty>
A builder for
CfnGlobalTablePropsMixin.AttributeDefinitionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeName(String attributeName) Sets the value ofCfnGlobalTablePropsMixin.AttributeDefinitionProperty.getAttributeName()attributeType(String attributeType) Sets the value ofCfnGlobalTablePropsMixin.AttributeDefinitionProperty.getAttributeType()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributeName
@Stability(Stable) public CfnGlobalTablePropsMixin.AttributeDefinitionProperty.Builder attributeName(String attributeName) Sets the value ofCfnGlobalTablePropsMixin.AttributeDefinitionProperty.getAttributeName()- Parameters:
attributeName- A name for the attribute.- Returns:
this
-
attributeType
@Stability(Stable) public CfnGlobalTablePropsMixin.AttributeDefinitionProperty.Builder attributeType(String attributeType) Sets the value ofCfnGlobalTablePropsMixin.AttributeDefinitionProperty.getAttributeType()- Parameters:
attributeType- The data type for the attribute, where:.S- the attribute is of type StringN- the attribute is of type NumberB- the attribute is of type Binary
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGlobalTablePropsMixin.AttributeDefinitionProperty>- Returns:
- a new instance of
CfnGlobalTablePropsMixin.AttributeDefinitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-