Class CfnTablePropsMixin.TimeToLiveSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dynamodb.CfnTablePropsMixin.TimeToLiveSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTablePropsMixin.TimeToLiveSpecificationProperty>
- Enclosing interface:
CfnTablePropsMixin.TimeToLiveSpecificationProperty
@Stability(Stable)
public static final class CfnTablePropsMixin.TimeToLiveSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTablePropsMixin.TimeToLiveSpecificationProperty>
A builder for
CfnTablePropsMixin.TimeToLiveSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeName(String attributeName) Sets the value ofCfnTablePropsMixin.TimeToLiveSpecificationProperty.getAttributeName()build()Builds the configured instance.Sets the value ofCfnTablePropsMixin.TimeToLiveSpecificationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnTablePropsMixin.TimeToLiveSpecificationProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributeName
@Stability(Stable) public CfnTablePropsMixin.TimeToLiveSpecificationProperty.Builder attributeName(String attributeName) Sets the value ofCfnTablePropsMixin.TimeToLiveSpecificationProperty.getAttributeName()- Parameters:
attributeName- The name of the TTL attribute used to store the expiration time for items in the table.- The
AttributeNameproperty is required when enabling the TTL, or when TTL is already enabled. - To update this property, you must first disable TTL and then enable TTL with the new attribute name.
- The
- Returns:
this
-
enabled
@Stability(Stable) public CfnTablePropsMixin.TimeToLiveSpecificationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnTablePropsMixin.TimeToLiveSpecificationProperty.getEnabled()- Parameters:
enabled- Indicates whether TTL is to be enabled (true) or disabled (false) on the table.- Returns:
this
-
enabled
@Stability(Stable) public CfnTablePropsMixin.TimeToLiveSpecificationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnTablePropsMixin.TimeToLiveSpecificationProperty.getEnabled()- Parameters:
enabled- Indicates whether TTL is to be enabled (true) or disabled (false) on the table.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTablePropsMixin.TimeToLiveSpecificationProperty>- Returns:
- a new instance of
CfnTablePropsMixin.TimeToLiveSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-