Class CfnLifecyclePolicy.FastRestoreRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.FastRestoreRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.FastRestoreRuleProperty>
- Enclosing interface:
- CfnLifecyclePolicy.FastRestoreRuleProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.FastRestoreRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.FastRestoreRuleProperty>
A builder for
CfnLifecyclePolicy.FastRestoreRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZones(List<String> availabilityZones) Sets the value ofCfnLifecyclePolicy.FastRestoreRuleProperty.getAvailabilityZones()build()Builds the configured instance.Sets the value ofCfnLifecyclePolicy.FastRestoreRuleProperty.getCount()Sets the value ofCfnLifecyclePolicy.FastRestoreRuleProperty.getInterval()intervalUnit(String intervalUnit) Sets the value ofCfnLifecyclePolicy.FastRestoreRuleProperty.getIntervalUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZones
@Stability(Stable) public CfnLifecyclePolicy.FastRestoreRuleProperty.Builder availabilityZones(List<String> availabilityZones) Sets the value ofCfnLifecyclePolicy.FastRestoreRuleProperty.getAvailabilityZones()- Parameters:
availabilityZones- The Availability Zones in which to enable fast snapshot restore.- Returns:
this
-
count
Sets the value ofCfnLifecyclePolicy.FastRestoreRuleProperty.getCount()- Parameters:
count- The number of snapshots to be enabled with fast snapshot restore.- Returns:
this
-
interval
@Stability(Stable) public CfnLifecyclePolicy.FastRestoreRuleProperty.Builder interval(Number interval) Sets the value ofCfnLifecyclePolicy.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 CfnLifecyclePolicy.FastRestoreRuleProperty.Builder intervalUnit(String intervalUnit) Sets the value ofCfnLifecyclePolicy.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<CfnLifecyclePolicy.FastRestoreRuleProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.FastRestoreRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-