Class CfnTable.RetentionPropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.timestream.CfnTable.RetentionPropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.RetentionPropertiesProperty>
- Enclosing interface:
CfnTable.RetentionPropertiesProperty
@Stability(Stable)
public static final class CfnTable.RetentionPropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.RetentionPropertiesProperty>
A builder for
CfnTable.RetentionPropertiesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.magneticStoreRetentionPeriodInDays
(String magneticStoreRetentionPeriodInDays) memoryStoreRetentionPeriodInHours
(String memoryStoreRetentionPeriodInHours)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
magneticStoreRetentionPeriodInDays
@Stability(Stable) public CfnTable.RetentionPropertiesProperty.Builder magneticStoreRetentionPeriodInDays(String magneticStoreRetentionPeriodInDays) - Parameters:
magneticStoreRetentionPeriodInDays
- The duration for which data must be stored in the magnetic store.- Returns:
this
-
memoryStoreRetentionPeriodInHours
@Stability(Stable) public CfnTable.RetentionPropertiesProperty.Builder memoryStoreRetentionPeriodInHours(String memoryStoreRetentionPeriodInHours) - Parameters:
memoryStoreRetentionPeriodInHours
- The duration for which data must be stored in the memory store.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.RetentionPropertiesProperty>
- Returns:
- a new instance of
CfnTable.RetentionPropertiesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-