Class CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dynamodb.CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty>
- Enclosing interface:
CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty
@Stability(Stable)
public static final class CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty>
A builder for
CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeName(String attributeName) build()Builds the configured instance.Sets the value ofCfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributeName
@Stability(Stable) public CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty.Builder attributeName(String attributeName) - Parameters:
attributeName- The name of the attribute used to store the expiration time for items in the table. Currently, you cannot directly change the attribute name used to evaluate time to live. In order to do so, you must first disable time to live, and then re-enable it with the new attribute name. It can take up to one hour for changes to time to live to take effect. If you attempt to modify time to live within that time window, your stack operation might be delayed.- Returns:
this
-
enabled
@Stability(Stable) public CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty.getEnabled()- Parameters:
enabled- Indicates whether TTL is to be enabled (true) or disabled (false) on the table.- Returns:
this
-
enabled
@Stability(Stable) public CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnGlobalTablePropsMixin.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<CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty>- Returns:
- a new instance of
CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-