Class CfnGlobalTablePropsMixin.KeySchemaProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dynamodb.CfnGlobalTablePropsMixin.KeySchemaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTablePropsMixin.KeySchemaProperty>
- Enclosing interface:
CfnGlobalTablePropsMixin.KeySchemaProperty
@Stability(Stable)
public static final class CfnGlobalTablePropsMixin.KeySchemaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalTablePropsMixin.KeySchemaProperty>
A builder for
CfnGlobalTablePropsMixin.KeySchemaProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeName(String attributeName) Sets the value ofCfnGlobalTablePropsMixin.KeySchemaProperty.getAttributeName()build()Builds the configured instance.Sets the value ofCfnGlobalTablePropsMixin.KeySchemaProperty.getKeyType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributeName
@Stability(Stable) public CfnGlobalTablePropsMixin.KeySchemaProperty.Builder attributeName(String attributeName) Sets the value ofCfnGlobalTablePropsMixin.KeySchemaProperty.getAttributeName()- Parameters:
attributeName- The name of a key attribute.- Returns:
this
-
keyType
@Stability(Stable) public CfnGlobalTablePropsMixin.KeySchemaProperty.Builder keyType(String keyType) Sets the value ofCfnGlobalTablePropsMixin.KeySchemaProperty.getKeyType()- Parameters:
keyType- The role that this key attribute will assume:.HASH- partition keyRANGE- sort key
The partition key of an item is also known as its hash attribute . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
The sort key of an item is also known as its range attribute . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGlobalTablePropsMixin.KeySchemaProperty>- Returns:
- a new instance of
CfnGlobalTablePropsMixin.KeySchemaProperty - Throws:
NullPointerException- if any required attribute was not provided
-