Class ClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.dsql.alpha.ClusterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterProps>
- Enclosing interface:
ClusterProps
@Stability(Experimental)
public static final class ClusterProps.Builder
extends Object
implements software.amazon.jsii.Builder<ClusterProps>
A builder for
ClusterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterName(String clusterName) Sets the value ofClusterProps.getClusterName()deletionProtection(Boolean deletionProtection) Sets the value ofClusterProps.getDeletionProtection()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofClusterProps.getRemovalPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterName
Sets the value ofClusterProps.getClusterName()- Parameters:
clusterName- The name of the DSQL cluster. This is applied via theNametag.- Returns:
this
-
deletionProtection
Sets the value ofClusterProps.getDeletionProtection()- Parameters:
deletionProtection- Specifies whether this cluster can be deleted. If deletionProtection is enabled, the cluster cannot be deleted unless it is modified and deletionProtection is disabled. deletionProtection protects clusters from being accidentally deleted.- Returns:
this
-
removalPolicy
Sets the value ofClusterProps.getRemovalPolicy()- Parameters:
removalPolicy- The removal policy to apply when the cluster is removed or replaced during a stack update, or when the stack is deleted.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClusterProps>- Returns:
- a new instance of
ClusterProps - Throws:
NullPointerException- if any required attribute was not provided
-