Class CfnReplicationSetProps.Builder
java.lang.Object
software.amazon.awscdk.services.ssmincidents.CfnReplicationSetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationSetProps>
- Enclosing interface:
CfnReplicationSetProps
@Stability(Stable)
public static final class CfnReplicationSetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicationSetProps>
A builder for
CfnReplicationSetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deletionProtected
(Boolean deletionProtected) Sets the value ofCfnReplicationSetProps.getDeletionProtected()
deletionProtected
(IResolvable deletionProtected) Sets the value ofCfnReplicationSetProps.getDeletionProtected()
Sets the value ofCfnReplicationSetProps.getRegions()
regions
(IResolvable regions) Sets the value ofCfnReplicationSetProps.getRegions()
Sets the value ofCfnReplicationSetProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
regions
Sets the value ofCfnReplicationSetProps.getRegions()
- Parameters:
regions
- Specifies the Regions of the replication set. This parameter is required.- Returns:
this
-
regions
Sets the value ofCfnReplicationSetProps.getRegions()
- Parameters:
regions
- Specifies the Regions of the replication set. This parameter is required.- Returns:
this
-
deletionProtected
@Stability(Stable) public CfnReplicationSetProps.Builder deletionProtected(Boolean deletionProtected) Sets the value ofCfnReplicationSetProps.getDeletionProtected()
- Parameters:
deletionProtected
- Determines if the replication set deletion protection is enabled or not. If deletion protection is enabled, you can't delete the last Region in the replication set.- Returns:
this
-
deletionProtected
@Stability(Stable) public CfnReplicationSetProps.Builder deletionProtected(IResolvable deletionProtected) Sets the value ofCfnReplicationSetProps.getDeletionProtected()
- Parameters:
deletionProtected
- Determines if the replication set deletion protection is enabled or not. If deletion protection is enabled, you can't delete the last Region in the replication set.- Returns:
this
-
tags
Sets the value ofCfnReplicationSetProps.getTags()
- Parameters:
tags
- A list of tags to add to the replication set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReplicationSetProps>
- Returns:
- a new instance of
CfnReplicationSetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-