Class CfnTablePropsMixin.RetentionPropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.timestream.CfnTablePropsMixin.RetentionPropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTablePropsMixin.RetentionPropertiesProperty>
- Enclosing interface:
CfnTablePropsMixin.RetentionPropertiesProperty
@Stability(Stable)
public static final class CfnTablePropsMixin.RetentionPropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTablePropsMixin.RetentionPropertiesProperty>
A builder for
CfnTablePropsMixin.RetentionPropertiesProperty-
Constructor Summary
Constructors -
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 CfnTablePropsMixin.RetentionPropertiesProperty.Builder magneticStoreRetentionPeriodInDays(String magneticStoreRetentionPeriodInDays) Sets the value ofCfnTablePropsMixin.RetentionPropertiesProperty.getMagneticStoreRetentionPeriodInDays()- Parameters:
magneticStoreRetentionPeriodInDays- The duration for which data must be stored in the magnetic store.- Returns:
this
-
memoryStoreRetentionPeriodInHours
@Stability(Stable) public CfnTablePropsMixin.RetentionPropertiesProperty.Builder memoryStoreRetentionPeriodInHours(String memoryStoreRetentionPeriodInHours) Sets the value ofCfnTablePropsMixin.RetentionPropertiesProperty.getMemoryStoreRetentionPeriodInHours()- Parameters:
memoryStoreRetentionPeriodInHours- The duration for which data must be stored in the memory store.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTablePropsMixin.RetentionPropertiesProperty>- Returns:
- a new instance of
CfnTablePropsMixin.RetentionPropertiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-