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