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 Details

    • Builder

      public Builder()
  • Method Details

    • clusterName

      @Stability(Experimental) public ClusterProps.Builder clusterName(String clusterName)
      Parameters:
      clusterName - The name of the DSQL cluster. This is applied via the Name tag.
      Returns:
      this
    • deletionProtection

      @Stability(Experimental) public ClusterProps.Builder deletionProtection(Boolean deletionProtection)
      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

      @Stability(Experimental) public ClusterProps.Builder removalPolicy(RemovalPolicy removalPolicy)
      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

      @Stability(Experimental) public ClusterProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ClusterProps>
      Returns:
      a new instance of ClusterProps
      Throws:
      NullPointerException - if any required attribute was not provided