Class CfnTablePropsMixin.PartitionKeyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.timestream.CfnTablePropsMixin.PartitionKeyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTablePropsMixin.PartitionKeyProperty>
- Enclosing interface:
CfnTablePropsMixin.PartitionKeyProperty
@Stability(Stable)
public static final class CfnTablePropsMixin.PartitionKeyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTablePropsMixin.PartitionKeyProperty>
A builder for
CfnTablePropsMixin.PartitionKeyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enforcementInRecord(String enforcementInRecord) Sets the value ofCfnTablePropsMixin.PartitionKeyProperty.getEnforcementInRecord()Sets the value ofCfnTablePropsMixin.PartitionKeyProperty.getName()Sets the value ofCfnTablePropsMixin.PartitionKeyProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enforcementInRecord
@Stability(Stable) public CfnTablePropsMixin.PartitionKeyProperty.Builder enforcementInRecord(String enforcementInRecord) Sets the value ofCfnTablePropsMixin.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 ofCfnTablePropsMixin.PartitionKeyProperty.getName()- Parameters:
name- The name of the attribute used for a dimension key.- Returns:
this
-
type
Sets the value ofCfnTablePropsMixin.PartitionKeyProperty.getType()- Parameters:
type- The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTablePropsMixin.PartitionKeyProperty>- Returns:
- a new instance of
CfnTablePropsMixin.PartitionKeyProperty - Throws:
NullPointerException- if any required attribute was not provided
-