Class CfnGlobalTable.AttributeDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CfnGlobalTable.AttributeDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTable.AttributeDefinitionProperty>
- Enclosing interface:
- CfnGlobalTable.AttributeDefinitionProperty
@Stability(Stable)
public static final class CfnGlobalTable.AttributeDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalTable.AttributeDefinitionProperty>
A builder for
CfnGlobalTable.AttributeDefinitionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeName(String attributeName) Sets the value ofCfnGlobalTable.AttributeDefinitionProperty.getAttributeName()attributeType(String attributeType) Sets the value ofCfnGlobalTable.AttributeDefinitionProperty.getAttributeType()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributeName
@Stability(Stable) public CfnGlobalTable.AttributeDefinitionProperty.Builder attributeName(String attributeName) Sets the value ofCfnGlobalTable.AttributeDefinitionProperty.getAttributeName()- Parameters:
attributeName- A name for the attribute. This parameter is required.- Returns:
this
-
attributeType
@Stability(Stable) public CfnGlobalTable.AttributeDefinitionProperty.Builder attributeType(String attributeType) Sets the value ofCfnGlobalTable.AttributeDefinitionProperty.getAttributeType()- Parameters:
attributeType- The data type for the attribute, where:. This parameter is required.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<CfnGlobalTable.AttributeDefinitionProperty>- Returns:
- a new instance of
CfnGlobalTable.AttributeDefinitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-