Class CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty>
- Enclosing interface:
CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty>
A builder for
CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.getInterval()
intervalUnit
(String intervalUnit)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
interval
@Stability(Stable) public CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.Builder interval(Number interval) Sets the value ofCfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.getInterval()
- Parameters:
interval
- The period after which to deprecate the cross-Region AMI copies. This parameter is required. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.- Returns:
this
-
intervalUnit
@Stability(Stable) public CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.Builder intervalUnit(String intervalUnit) - Parameters:
intervalUnit
- The unit of time in which to measure the Interval . This parameter is required. For example, to deprecate a cross-Region AMI copy after 3 months, specifyInterval=3
andIntervalUnit=MONTHS
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty>
- Returns:
- a new instance of
CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-