public static final class SubnetGroupProps.Builder
extends java.lang.Object
SubnetGroupProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubnetGroupProps |
build()
Builds the configured instance.
|
SubnetGroupProps.Builder |
description(java.lang.String description)
Sets the value of
SubnetGroupProps.getDescription() |
SubnetGroupProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
SubnetGroupProps.getRemovalPolicy() |
SubnetGroupProps.Builder |
subnetGroupName(java.lang.String subnetGroupName)
Sets the value of
SubnetGroupProps.getSubnetGroupName() |
SubnetGroupProps.Builder |
vpc(IVpc vpc)
Sets the value of
SubnetGroupProps.getVpc() |
SubnetGroupProps.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
Sets the value of
SubnetGroupProps.getVpcSubnets() |
public SubnetGroupProps.Builder vpc(IVpc vpc)
SubnetGroupProps.getVpc()
vpc
- The VPC to place the subnet group in. This parameter is required.this
public SubnetGroupProps.Builder description(java.lang.String description)
SubnetGroupProps.getDescription()
description
- Description of the subnet group.this
public SubnetGroupProps.Builder removalPolicy(RemovalPolicy removalPolicy)
SubnetGroupProps.getRemovalPolicy()
removalPolicy
- The removal policy to apply when the subnet group are removed from the stack or replaced during an update.this
public SubnetGroupProps.Builder subnetGroupName(java.lang.String subnetGroupName)
SubnetGroupProps.getSubnetGroupName()
subnetGroupName
- The name of the subnet group.this
public SubnetGroupProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
SubnetGroupProps.getVpcSubnets()
vpcSubnets
- Which subnets within the VPC to associate with this group.this
public SubnetGroupProps build()
SubnetGroupProps
java.lang.NullPointerException
- if any required attribute was not provided