Class CfnGlobalTable.TimeToLiveSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CfnGlobalTable.TimeToLiveSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTable.TimeToLiveSpecificationProperty>
- Enclosing interface:
CfnGlobalTable.TimeToLiveSpecificationProperty
@Stability(Stable)
public static final class CfnGlobalTable.TimeToLiveSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalTable.TimeToLiveSpecificationProperty>
A builder for
CfnGlobalTable.TimeToLiveSpecificationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeName
(String attributeName) Sets the value ofCfnGlobalTable.TimeToLiveSpecificationProperty.getAttributeName()
build()
Builds the configured instance.Sets the value ofCfnGlobalTable.TimeToLiveSpecificationProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnGlobalTable.TimeToLiveSpecificationProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnGlobalTable.TimeToLiveSpecificationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnGlobalTable.TimeToLiveSpecificationProperty.getEnabled()
- Parameters:
enabled
- Indicates whether TTL is to be enabled (true) or disabled (false) on the table. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnGlobalTable.TimeToLiveSpecificationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnGlobalTable.TimeToLiveSpecificationProperty.getEnabled()
- Parameters:
enabled
- Indicates whether TTL is to be enabled (true) or disabled (false) on the table. This parameter is required.- Returns:
this
-
attributeName
@Stability(Stable) public CfnGlobalTable.TimeToLiveSpecificationProperty.Builder attributeName(String attributeName) Sets the value ofCfnGlobalTable.TimeToLiveSpecificationProperty.getAttributeName()
- 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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalTable.TimeToLiveSpecificationProperty>
- Returns:
- a new instance of
CfnGlobalTable.TimeToLiveSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-