Class CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty>
- Enclosing interface:
CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty>
A builder for
CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.getInterval()intervalUnit(String intervalUnit) Sets the value ofCfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.getIntervalUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
interval
@Stability(Stable) public CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Builder interval(Number interval) Sets the value ofCfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.getInterval()- Parameters:
interval- The amount of time to retain a cross-Region snapshot or AMI copy. This parameter is required. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.- Returns:
this
-
intervalUnit
@Stability(Stable) public CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Builder intervalUnit(String intervalUnit) Sets the value ofCfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.getIntervalUnit()- Parameters:
intervalUnit- The unit of time for time-based retention. This parameter is required. For example, to retain a cross-Region copy for 3 months, specifyInterval=3andIntervalUnit=MONTHS.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-