Class CfnLifecyclePolicy.ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.ActionProperty>
- Enclosing interface:
CfnLifecyclePolicy.ActionProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.ActionProperty>
A builder for
CfnLifecyclePolicy.ActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.crossRegionCopy(List<? extends Object> crossRegionCopy) Sets the value ofCfnLifecyclePolicy.ActionProperty.getCrossRegionCopy()crossRegionCopy(IResolvable crossRegionCopy) Sets the value ofCfnLifecyclePolicy.ActionProperty.getCrossRegionCopy()Sets the value ofCfnLifecyclePolicy.ActionProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
crossRegionCopy
@Stability(Stable) public CfnLifecyclePolicy.ActionProperty.Builder crossRegionCopy(IResolvable crossRegionCopy) Sets the value ofCfnLifecyclePolicy.ActionProperty.getCrossRegionCopy()- Parameters:
crossRegionCopy- The rule for copying shared snapshots across Regions. This parameter is required.- Returns:
this
-
crossRegionCopy
@Stability(Stable) public CfnLifecyclePolicy.ActionProperty.Builder crossRegionCopy(List<? extends Object> crossRegionCopy) Sets the value ofCfnLifecyclePolicy.ActionProperty.getCrossRegionCopy()- Parameters:
crossRegionCopy- The rule for copying shared snapshots across Regions. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnLifecyclePolicy.ActionProperty.getName()- Parameters:
name- A descriptive name for the action. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.ActionProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.ActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-