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