Class CfnTable.SchemaProperty.Builder
java.lang.Object
software.amazon.awscdk.services.timestream.CfnTable.SchemaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.SchemaProperty>
- Enclosing interface:
CfnTable.SchemaProperty
@Stability(Stable)
public static final class CfnTable.SchemaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.SchemaProperty>
A builder for
CfnTable.SchemaProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.compositePartitionKey
(List<? extends Object> compositePartitionKey) Sets the value ofCfnTable.SchemaProperty.getCompositePartitionKey()
compositePartitionKey
(IResolvable compositePartitionKey) Sets the value ofCfnTable.SchemaProperty.getCompositePartitionKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
compositePartitionKey
@Stability(Stable) public CfnTable.SchemaProperty.Builder compositePartitionKey(IResolvable compositePartitionKey) Sets the value ofCfnTable.SchemaProperty.getCompositePartitionKey()
- Parameters:
compositePartitionKey
- A non-empty list of partition keys defining the attributes used to partition the table data. The order of the list determines the partition hierarchy. The name and type of each partition key as well as the partition key order cannot be changed after the table is created. However, the enforcement level of each partition key can be changed.- Returns:
this
-
compositePartitionKey
@Stability(Stable) public CfnTable.SchemaProperty.Builder compositePartitionKey(List<? extends Object> compositePartitionKey) Sets the value ofCfnTable.SchemaProperty.getCompositePartitionKey()
- Parameters:
compositePartitionKey
- A non-empty list of partition keys defining the attributes used to partition the table data. The order of the list determines the partition hierarchy. The name and type of each partition key as well as the partition key order cannot be changed after the table is created. However, the enforcement level of each partition key can be changed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.SchemaProperty>
- Returns:
- a new instance of
CfnTable.SchemaProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-