Class CfnLifecyclePolicy.CrossRegionCopyActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.CrossRegionCopyActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.CrossRegionCopyActionProperty>
- Enclosing interface:
CfnLifecyclePolicy.CrossRegionCopyActionProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.CrossRegionCopyActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.CrossRegionCopyActionProperty>
A builder for
CfnLifecyclePolicy.CrossRegionCopyActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionConfiguration(IResolvable encryptionConfiguration) encryptionConfiguration(CfnLifecyclePolicy.EncryptionConfigurationProperty encryptionConfiguration) retainRule(IResolvable retainRule) Sets the value ofCfnLifecyclePolicy.CrossRegionCopyActionProperty.getRetainRule()Sets the value ofCfnLifecyclePolicy.CrossRegionCopyActionProperty.getRetainRule()Sets the value ofCfnLifecyclePolicy.CrossRegionCopyActionProperty.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionConfiguration
@Stability(Stable) public CfnLifecyclePolicy.CrossRegionCopyActionProperty.Builder encryptionConfiguration(IResolvable encryptionConfiguration) - Parameters:
encryptionConfiguration- The encryption settings for the copied snapshot. This parameter is required.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnLifecyclePolicy.CrossRegionCopyActionProperty.Builder encryptionConfiguration(CfnLifecyclePolicy.EncryptionConfigurationProperty encryptionConfiguration) - Parameters:
encryptionConfiguration- The encryption settings for the copied snapshot. This parameter is required.- Returns:
this
-
target
@Stability(Stable) public CfnLifecyclePolicy.CrossRegionCopyActionProperty.Builder target(String target) Sets the value ofCfnLifecyclePolicy.CrossRegionCopyActionProperty.getTarget()- Parameters:
target- The target Region. This parameter is required.- Returns:
this
-
retainRule
@Stability(Stable) public CfnLifecyclePolicy.CrossRegionCopyActionProperty.Builder retainRule(IResolvable retainRule) Sets the value ofCfnLifecyclePolicy.CrossRegionCopyActionProperty.getRetainRule()- Parameters:
retainRule- Specifies a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies. After the retention period expires, the cross-Region copy is deleted.- Returns:
this
-
retainRule
@Stability(Stable) public CfnLifecyclePolicy.CrossRegionCopyActionProperty.Builder retainRule(CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty retainRule) Sets the value ofCfnLifecyclePolicy.CrossRegionCopyActionProperty.getRetainRule()- Parameters:
retainRule- Specifies a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies. After the retention period expires, the cross-Region copy is deleted.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.CrossRegionCopyActionProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.CrossRegionCopyActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-