Class CfnLifecyclePolicy.ShareRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ShareRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy.ShareRuleProperty>
- Enclosing interface:
CfnLifecyclePolicy.ShareRuleProperty
@Stability(Stable)
public static final class CfnLifecyclePolicy.ShareRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy.ShareRuleProperty>
A builder for
CfnLifecyclePolicy.ShareRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.targetAccounts(List<String> targetAccounts) Sets the value ofCfnLifecyclePolicy.ShareRuleProperty.getTargetAccounts()unshareInterval(Number unshareInterval) Sets the value ofCfnLifecyclePolicy.ShareRuleProperty.getUnshareInterval()unshareIntervalUnit(String unshareIntervalUnit) Sets the value ofCfnLifecyclePolicy.ShareRuleProperty.getUnshareIntervalUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetAccounts
@Stability(Stable) public CfnLifecyclePolicy.ShareRuleProperty.Builder targetAccounts(List<String> targetAccounts) Sets the value ofCfnLifecyclePolicy.ShareRuleProperty.getTargetAccounts()- Parameters:
targetAccounts- The IDs of the AWS accounts with which to share the snapshots.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy.ShareRuleProperty>- Returns:
- a new instance of
CfnLifecyclePolicy.ShareRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-