public static final class VpcSubnetGroup.Builder
extends java.lang.Object
VpcSubnetGroup
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VpcSubnetGroup |
build()
Builds the configured instance.
|
VpcSubnetGroup.Builder |
name(java.lang.String name)
Sets the value of
VpcSubnetGroup.getName() |
VpcSubnetGroup.Builder |
subnets(java.util.List<? extends VpcSubnet> subnets)
Sets the value of
VpcSubnetGroup.getSubnets() |
VpcSubnetGroup.Builder |
type(VpcSubnetGroupType type)
Sets the value of
VpcSubnetGroup.getType() |
public VpcSubnetGroup.Builder name(java.lang.String name)
VpcSubnetGroup.getName()
name
- The name of the subnet group, determined by looking at the tags of of the subnets that belong to it. This parameter is required.this
public VpcSubnetGroup.Builder subnets(java.util.List<? extends VpcSubnet> subnets)
VpcSubnetGroup.getSubnets()
subnets
- The subnets that are part of this group. This parameter is required.
There is no condition that the subnets have to be symmetric
in the group.this
public VpcSubnetGroup.Builder type(VpcSubnetGroupType type)
VpcSubnetGroup.getType()
type
- The type of the subnet group. This parameter is required.this
public VpcSubnetGroup build()
VpcSubnetGroup
java.lang.NullPointerException
- if any required attribute was not provided