Class CfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.dlm.mixins.CfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty>
- Enclosing interface:
CfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty
@Stability(Stable)
public static final class CfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty.getCount()Sets the value ofCfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty.getInterval()intervalUnit(String intervalUnit)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty.Builder count(Number count) Sets the value ofCfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty.getCount()- Parameters:
count- The maximum number of snapshots to retain in the archive storage tier for each volume. The count must ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is archived for at least 90 days.- Returns:
this
-
interval
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty.Builder interval(Number interval) Sets the value ofCfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty.getInterval()- Parameters:
interval- Specifies the period of time to retain snapshots in the archive tier. After this period expires, the snapshot is permanently deleted.- Returns:
this
-
intervalUnit
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty.Builder intervalUnit(String intervalUnit) - Parameters:
intervalUnit- The unit of time in which to measure the Interval . For example, to retain a snapshots in the archive tier for 6 months, specifyInterval=6andIntervalUnit=MONTHS.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty>- Returns:
- a new instance of
CfnLifecyclePolicyPropsMixin.RetentionArchiveTierProperty - Throws:
NullPointerException- if any required attribute was not provided
-