Class SubnetGroup.Builder
java.lang.Object
software.amazon.awscdk.services.neptune.SubnetGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SubnetGroup>
- Enclosing class:
- SubnetGroup
@Stability(Experimental)
public static final class SubnetGroup.Builder
extends Object
implements software.amazon.jsii.Builder<SubnetGroup>
(experimental) A fluent builder for
SubnetGroup
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static SubnetGroup.Builder
description
(String description) (experimental) Description of the subnet group.removalPolicy
(RemovalPolicy removalPolicy) (experimental) The removal policy to apply when the subnet group are removed from the stack or replaced during an update.subnetGroupName
(String subnetGroupName) (experimental) The name of the subnet group.(experimental) The VPC to place the subnet group in.vpcSubnets
(SubnetSelection vpcSubnets) (experimental) Which subnets within the VPC to associate with this group.
-
Method Details
-
create
@Stability(Experimental) public static SubnetGroup.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
SubnetGroup.Builder
.
-
vpc
(experimental) The VPC to place the subnet group in.- Parameters:
vpc
- The VPC to place the subnet group in. This parameter is required.- Returns:
this
-
description
(experimental) Description of the subnet group.Default: - a name is generated
- Parameters:
description
- Description of the subnet group. This parameter is required.- Returns:
this
-
removalPolicy
(experimental) The removal policy to apply when the subnet group are removed from the stack or replaced during an update.Default: RemovalPolicy.DESTROY
- Parameters:
removalPolicy
- The removal policy to apply when the subnet group are removed from the stack or replaced during an update. This parameter is required.- Returns:
this
-
subnetGroupName
(experimental) The name of the subnet group.Default: - a name is generated
- Parameters:
subnetGroupName
- The name of the subnet group. This parameter is required.- Returns:
this
-
vpcSubnets
(experimental) Which subnets within the VPC to associate with this group.Default: - private subnets
- Parameters:
vpcSubnets
- Which subnets within the VPC to associate with this group. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SubnetGroup>
- Returns:
- a newly built instance of
SubnetGroup
.
-