Class CfnTable.TimeToLiveSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CfnTable.TimeToLiveSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.TimeToLiveSpecificationProperty>
- Enclosing interface:
CfnTable.TimeToLiveSpecificationProperty
@Stability(Stable)
public static final class CfnTable.TimeToLiveSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.TimeToLiveSpecificationProperty>
A builder for
CfnTable.TimeToLiveSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributeName
(String attributeName) Sets the value ofCfnTable.TimeToLiveSpecificationProperty.getAttributeName()
build()
Builds the configured instance.Sets the value ofCfnTable.TimeToLiveSpecificationProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnTable.TimeToLiveSpecificationProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnTable.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 CfnTable.TimeToLiveSpecificationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnTable.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 CfnTable.TimeToLiveSpecificationProperty.Builder attributeName(String attributeName) Sets the value ofCfnTable.TimeToLiveSpecificationProperty.getAttributeName()
- Parameters:
attributeName
- The name of the TTL attribute used to store the expiration time for items in the table.- The
AttributeName
property 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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.TimeToLiveSpecificationProperty>
- Returns:
- a new instance of
CfnTable.TimeToLiveSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-