Class CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dlm.CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty>
- Enclosing interface:
CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty
@Stability(Stable)
public static final class CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty>
A builder for
CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZones(List<String> availabilityZones) build()Builds the configured instance.Sets the value ofCfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.getCount()Sets the value ofCfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.getInterval()intervalUnit(String intervalUnit) Sets the value ofCfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.getIntervalUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZones
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.Builder availabilityZones(List<String> availabilityZones) - Parameters:
availabilityZones- The Availability Zones in which to enable fast snapshot restore.- Returns:
this
-
count
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.Builder count(Number count) Sets the value ofCfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.getCount()- Parameters:
count- The number of snapshots to be enabled with fast snapshot restore.- Returns:
this
-
interval
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.Builder interval(Number interval) Sets the value ofCfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.getInterval()- Parameters:
interval- The amount of time to enable fast snapshot restore. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.- Returns:
this
-
intervalUnit
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.Builder intervalUnit(String intervalUnit) Sets the value ofCfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty.getIntervalUnit()- Parameters:
intervalUnit- The unit of time for enabling fast snapshot restore.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty>- Returns:
- a new instance of
CfnLifecyclePolicyPropsMixin.FastRestoreRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-