Class CfnTable.PartitionKeyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.timestream.CfnTable.PartitionKeyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.PartitionKeyProperty>
- Enclosing interface:
CfnTable.PartitionKeyProperty
@Stability(Stable)
public static final class CfnTable.PartitionKeyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.PartitionKeyProperty>
A builder for
CfnTable.PartitionKeyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.enforcementInRecord
(String enforcementInRecord) Sets the value ofCfnTable.PartitionKeyProperty.getEnforcementInRecord()
Sets the value ofCfnTable.PartitionKeyProperty.getName()
Sets the value ofCfnTable.PartitionKeyProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnTable.PartitionKeyProperty.getType()
- Parameters:
type
- The type of the partition key. This parameter is required. Options are DIMENSION (dimension key) and MEASURE (measure key).- Returns:
this
-
enforcementInRecord
@Stability(Stable) public CfnTable.PartitionKeyProperty.Builder enforcementInRecord(String enforcementInRecord) Sets the value ofCfnTable.PartitionKeyProperty.getEnforcementInRecord()
- Parameters:
enforcementInRecord
- The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).- Returns:
this
-
name
Sets the value ofCfnTable.PartitionKeyProperty.getName()
- Parameters:
name
- The name of the attribute used for a dimension key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.PartitionKeyProperty>
- Returns:
- a new instance of
CfnTable.PartitionKeyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-