Class SubnetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.neptune.SubnetGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SubnetGroupProps>
- Enclosing interface:
- SubnetGroupProps
@Stability(Experimental)
public static final class SubnetGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<SubnetGroupProps>
A builder for
SubnetGroupProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofSubnetGroupProps.getDescription()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofSubnetGroupProps.getRemovalPolicy()subnetGroupName(String subnetGroupName) Sets the value ofSubnetGroupProps.getSubnetGroupName()Sets the value ofSubnetGroupProps.getVpc()vpcSubnets(SubnetSelection vpcSubnets) Sets the value ofSubnetGroupProps.getVpcSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpc
Sets the value ofSubnetGroupProps.getVpc()- Parameters:
vpc- The VPC to place the subnet group in. This parameter is required.- Returns:
this
-
description
Sets the value ofSubnetGroupProps.getDescription()- Parameters:
description- Description of the subnet group.- Returns:
this
-
removalPolicy
Sets the value ofSubnetGroupProps.getRemovalPolicy()- Parameters:
removalPolicy- The removal policy to apply when the subnet group are removed from the stack or replaced during an update.- Returns:
this
-
subnetGroupName
Sets the value ofSubnetGroupProps.getSubnetGroupName()- Parameters:
subnetGroupName- The name of the subnet group.- Returns:
this
-
vpcSubnets
Sets the value ofSubnetGroupProps.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<SubnetGroupProps>- Returns:
- a new instance of
SubnetGroupProps - Throws:
NullPointerException- if any required attribute was not provided
-