Class CfnDatastore.RetentionPeriodProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotanalytics.CfnDatastore.RetentionPeriodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatastore.RetentionPeriodProperty>
- Enclosing interface:
- CfnDatastore.RetentionPeriodProperty
@Stability(Stable)
public static final class CfnDatastore.RetentionPeriodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatastore.RetentionPeriodProperty>
A builder for
CfnDatastore.RetentionPeriodProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.numberOfDays
(Number numberOfDays) Sets the value ofCfnDatastore.RetentionPeriodProperty.getNumberOfDays()
Sets the value ofCfnDatastore.RetentionPeriodProperty.getUnlimited()
unlimited
(IResolvable unlimited) Sets the value ofCfnDatastore.RetentionPeriodProperty.getUnlimited()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numberOfDays
@Stability(Stable) public CfnDatastore.RetentionPeriodProperty.Builder numberOfDays(Number numberOfDays) Sets the value ofCfnDatastore.RetentionPeriodProperty.getNumberOfDays()
- Parameters:
numberOfDays
- The number of days that message data is kept. Theunlimited
parameter must be false.- Returns:
this
-
unlimited
Sets the value ofCfnDatastore.RetentionPeriodProperty.getUnlimited()
- Parameters:
unlimited
- If true, message data is kept indefinitely.- Returns:
this
-
unlimited
@Stability(Stable) public CfnDatastore.RetentionPeriodProperty.Builder unlimited(IResolvable unlimited) Sets the value ofCfnDatastore.RetentionPeriodProperty.getUnlimited()
- Parameters:
unlimited
- If true, message data is kept indefinitely.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDatastore.RetentionPeriodProperty>
- Returns:
- a new instance of
CfnDatastore.RetentionPeriodProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-