Class CfnRule.RetentionPeriodProperty.Builder
java.lang.Object
software.amazon.awscdk.services.rbin.CfnRule.RetentionPeriodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.RetentionPeriodProperty>
- Enclosing interface:
CfnRule.RetentionPeriodProperty
@Stability(Stable)
public static final class CfnRule.RetentionPeriodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.RetentionPeriodProperty>
A builder for
CfnRule.RetentionPeriodProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.retentionPeriodUnit(String retentionPeriodUnit) Sets the value ofCfnRule.RetentionPeriodProperty.getRetentionPeriodUnit()retentionPeriodValue(Number retentionPeriodValue) Sets the value ofCfnRule.RetentionPeriodProperty.getRetentionPeriodValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
retentionPeriodUnit
@Stability(Stable) public CfnRule.RetentionPeriodProperty.Builder retentionPeriodUnit(String retentionPeriodUnit) Sets the value ofCfnRule.RetentionPeriodProperty.getRetentionPeriodUnit()- Parameters:
retentionPeriodUnit- The unit of time in which the retention period is measured. This parameter is required. Currently, onlyDAYSis supported.- Returns:
this
-
retentionPeriodValue
@Stability(Stable) public CfnRule.RetentionPeriodProperty.Builder retentionPeriodValue(Number retentionPeriodValue) Sets the value ofCfnRule.RetentionPeriodProperty.getRetentionPeriodValue()- Parameters:
retentionPeriodValue- The period value for which the retention rule is to retain resources. This parameter is required. The period is measured using the unit specified for RetentionPeriodUnit .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRule.RetentionPeriodProperty>- Returns:
- a new instance of
CfnRule.RetentionPeriodProperty - Throws:
NullPointerException- if any required attribute was not provided
-