Class CfnLifecyclePolicy.ArchiveRetainRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ArchiveRetainRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.ArchiveRetainRuleProperty>
- Enclosing interface:
CfnLifecyclePolicy.ArchiveRetainRuleProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.ArchiveRetainRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.ArchiveRetainRuleProperty>
A builder for
CfnLifecyclePolicy.ArchiveRetainRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.retentionArchiveTier
(IResolvable retentionArchiveTier) Sets the value ofCfnLifecyclePolicy.ArchiveRetainRuleProperty.getRetentionArchiveTier()
retentionArchiveTier
(CfnLifecyclePolicy.RetentionArchiveTierProperty retentionArchiveTier) Sets the value ofCfnLifecyclePolicy.ArchiveRetainRuleProperty.getRetentionArchiveTier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
retentionArchiveTier
@Stability(Stable) public CfnLifecyclePolicy.ArchiveRetainRuleProperty.Builder retentionArchiveTier(IResolvable retentionArchiveTier) Sets the value ofCfnLifecyclePolicy.ArchiveRetainRuleProperty.getRetentionArchiveTier()
- Parameters:
retentionArchiveTier
- Information about retention period in the Amazon EBS Snapshots Archive. This parameter is required. For more information, see Archive Amazon EBS snapshots .- Returns:
this
-
retentionArchiveTier
@Stability(Stable) public CfnLifecyclePolicy.ArchiveRetainRuleProperty.Builder retentionArchiveTier(CfnLifecyclePolicy.RetentionArchiveTierProperty retentionArchiveTier) Sets the value ofCfnLifecyclePolicy.ArchiveRetainRuleProperty.getRetentionArchiveTier()
- Parameters:
retentionArchiveTier
- Information about retention period in the Amazon EBS Snapshots Archive. This parameter is required. For more information, see Archive Amazon EBS snapshots .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.ArchiveRetainRuleProperty>
- Returns:
- a new instance of
CfnLifecyclePolicy.ArchiveRetainRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-