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