Class ClusterSubnetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.alpha.ClusterSubnetGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterSubnetGroupProps>
- Enclosing interface:
ClusterSubnetGroupProps
@Stability(Experimental)
public static final class ClusterSubnetGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<ClusterSubnetGroupProps>
A builder for
ClusterSubnetGroupProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofClusterSubnetGroupProps.getDescription()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofClusterSubnetGroupProps.getRemovalPolicy()Sets the value ofClusterSubnetGroupProps.getVpc()vpcSubnets(SubnetSelection vpcSubnets) Sets the value ofClusterSubnetGroupProps.getVpcSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofClusterSubnetGroupProps.getDescription()- Parameters:
description- Description of the subnet group. This parameter is required.- Returns:
this
-
vpc
Sets the value ofClusterSubnetGroupProps.getVpc()- Parameters:
vpc- The VPC to place the subnet group in. This parameter is required.- Returns:
this
-
removalPolicy
@Stability(Experimental) public ClusterSubnetGroupProps.Builder removalPolicy(RemovalPolicy removalPolicy) Sets the value ofClusterSubnetGroupProps.getRemovalPolicy()- Parameters:
removalPolicy- The removal policy to apply when the subnet group are removed from the stack or replaced during an update.- Returns:
this
-
vpcSubnets
@Stability(Experimental) public ClusterSubnetGroupProps.Builder vpcSubnets(SubnetSelection vpcSubnets) Sets the value ofClusterSubnetGroupProps.getVpcSubnets()- Parameters:
vpcSubnets- Which subnets within the VPC to associate with this group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClusterSubnetGroupProps>- Returns:
- a new instance of
ClusterSubnetGroupProps - Throws:
NullPointerException- if any required attribute was not provided
-