Class CfnLifecyclePolicy.ArchiveRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ArchiveRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.ArchiveRuleProperty>
- Enclosing interface:
CfnLifecyclePolicy.ArchiveRuleProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.ArchiveRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.ArchiveRuleProperty>
A builder for
CfnLifecyclePolicy.ArchiveRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.retainRule(IResolvable retainRule) Sets the value ofCfnLifecyclePolicy.ArchiveRuleProperty.getRetainRule()Sets the value ofCfnLifecyclePolicy.ArchiveRuleProperty.getRetainRule()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
retainRule
@Stability(Stable) public CfnLifecyclePolicy.ArchiveRuleProperty.Builder retainRule(IResolvable retainRule) Sets the value ofCfnLifecyclePolicy.ArchiveRuleProperty.getRetainRule()- Parameters:
retainRule- Information about the retention period for the snapshot archiving rule. This parameter is required.- Returns:
this
-
retainRule
@Stability(Stable) public CfnLifecyclePolicy.ArchiveRuleProperty.Builder retainRule(CfnLifecyclePolicy.ArchiveRetainRuleProperty retainRule) Sets the value ofCfnLifecyclePolicy.ArchiveRuleProperty.getRetainRule()- Parameters:
retainRule- Information about the retention period for the snapshot archiving rule. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.ArchiveRuleProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.ArchiveRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-