Package software.amazon.awscdk
Class RemovalPolicyOptions.Builder
java.lang.Object
software.amazon.awscdk.RemovalPolicyOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RemovalPolicyOptions>
- Enclosing interface:
RemovalPolicyOptions
@Stability(Stable)
public static final class RemovalPolicyOptions.Builder
extends Object
implements software.amazon.jsii.Builder<RemovalPolicyOptions>
A builder for
RemovalPolicyOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyToUpdateReplacePolicy
(Boolean applyToUpdateReplacePolicy) Sets the value ofRemovalPolicyOptions.getApplyToUpdateReplacePolicy()
build()
Builds the configured instance.defaultValue
(RemovalPolicy defaultValue) Sets the value ofRemovalPolicyOptions.getDefaultValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applyToUpdateReplacePolicy
@Stability(Stable) public RemovalPolicyOptions.Builder applyToUpdateReplacePolicy(Boolean applyToUpdateReplacePolicy) Sets the value ofRemovalPolicyOptions.getApplyToUpdateReplacePolicy()
- Parameters:
applyToUpdateReplacePolicy
- Apply the same deletion policy to the resource's "UpdateReplacePolicy".- Returns:
this
-
defaultValue
Sets the value ofRemovalPolicyOptions.getDefaultValue()
- Parameters:
defaultValue
- The default policy to apply in case the removal policy is not defined.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RemovalPolicyOptions>
- Returns:
- a new instance of
RemovalPolicyOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-