Class KeySchema.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.KeySchema.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KeySchema>
- Enclosing interface:
KeySchema
@Stability(Stable)
public static final class KeySchema.Builder
extends Object
implements software.amazon.jsii.Builder<KeySchema>
A builder for
KeySchema-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.partitionKeys(List<? extends Attribute> partitionKeys) Sets the value ofKeySchema.getPartitionKeys()Sets the value ofKeySchema.getSortKeys()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
partitionKeys
Sets the value ofKeySchema.getPartitionKeys()- Parameters:
partitionKeys- Partition key definition. This parameter is required. This array has at least one, but potentially multiple entries. Together, they form the partition key.- Returns:
this
-
sortKeys
Sets the value ofKeySchema.getSortKeys()- Parameters:
sortKeys- Sort key definition. This parameter is required. This array has zero or more entries. Together, they form the sort key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KeySchema>- Returns:
- a new instance of
KeySchema - Throws:
NullPointerException- if any required attribute was not provided
-