Class SchemaOptions.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.SchemaOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SchemaOptions>
- Enclosing interface:
SchemaOptions
@Stability(Stable)
public static final class SchemaOptions.Builder
extends Object
implements software.amazon.jsii.Builder<SchemaOptions>
A builder for
SchemaOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.partitionKey
(Attribute partitionKey) Sets the value ofSchemaOptions.getPartitionKey()
Sets the value ofSchemaOptions.getSortKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
partitionKey
Sets the value ofSchemaOptions.getPartitionKey()
- Parameters:
partitionKey
- Partition key attribute definition. This parameter is required.- Returns:
this
-
sortKey
Sets the value ofSchemaOptions.getSortKey()
- Parameters:
sortKey
- Sort key attribute definition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SchemaOptions>
- Returns:
- a new instance of
SchemaOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-