Class CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.RetentionArchiveTierProperty>
- Enclosing interface:
CfnLifecyclePolicy.RetentionArchiveTierProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.RetentionArchiveTierProperty>
A builder for
CfnLifecyclePolicy.RetentionArchiveTierProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnLifecyclePolicy.RetentionArchiveTierProperty.getCount()
Sets the value ofCfnLifecyclePolicy.RetentionArchiveTierProperty.getInterval()
intervalUnit
(String intervalUnit) Sets the value ofCfnLifecyclePolicy.RetentionArchiveTierProperty.getIntervalUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
@Stability(Stable) public CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder count(Number count) Sets the value ofCfnLifecyclePolicy.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 CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder interval(Number interval) Sets the value ofCfnLifecyclePolicy.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 CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder intervalUnit(String intervalUnit) Sets the value ofCfnLifecyclePolicy.RetentionArchiveTierProperty.getIntervalUnit()
- 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=6
andIntervalUnit=MONTHS
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.RetentionArchiveTierProperty>
- Returns:
- a new instance of
CfnLifecyclePolicy.RetentionArchiveTierProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-