Class CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.RetentionArchiveTierProperty>
- Enclosing interface:
- CfnLifecyclePolicy.RetentionArchiveTierProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.RetentionArchiveTierProperty>
A builder for
CfnLifecyclePolicy.RetentionArchiveTierProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLifecyclePolicy.RetentionArchiveTierProperty.getCount()Sets the value ofCfnLifecyclePolicy.RetentionArchiveTierProperty.getInterval()intervalUnit(String intervalUnit) Sets the value ofCfnLifecyclePolicy.RetentionArchiveTierProperty.getIntervalUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
@Stability(Stable) public CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder count(Number count) Sets the value ofCfnLifecyclePolicy.RetentionArchiveTierProperty.getCount()- Parameters:
count-CfnLifecyclePolicy.RetentionArchiveTierProperty.Count.- Returns:
this
-
interval
@Stability(Stable) public CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder interval(Number interval) Sets the value ofCfnLifecyclePolicy.RetentionArchiveTierProperty.getInterval()- Parameters:
interval-CfnLifecyclePolicy.RetentionArchiveTierProperty.Interval.- Returns:
this
-
intervalUnit
@Stability(Stable) public CfnLifecyclePolicy.RetentionArchiveTierProperty.Builder intervalUnit(String intervalUnit) Sets the value ofCfnLifecyclePolicy.RetentionArchiveTierProperty.getIntervalUnit()- Parameters:
intervalUnit-CfnLifecyclePolicy.RetentionArchiveTierProperty.IntervalUnit.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.RetentionArchiveTierProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.RetentionArchiveTierProperty - Throws:
NullPointerException- if any required attribute was not provided
-