@Stability(value=Experimental) public static final class SubnetSelection.Builder extends Object implements software.amazon.jsii.Builder<SubnetSelection>
SubnetSelection
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubnetSelection.Builder |
availabilityZones(List<String> availabilityZones)
Sets the value of
SubnetSelection.getAvailabilityZones() |
SubnetSelection |
build()
Builds the configured instance.
|
SubnetSelection.Builder |
onePerAz(Boolean onePerAz)
Sets the value of
SubnetSelection.getOnePerAz() |
SubnetSelection.Builder |
subnetFilters(List<? extends SubnetFilter> subnetFilters)
Sets the value of
SubnetSelection.getSubnetFilters() |
SubnetSelection.Builder |
subnetGroupName(String subnetGroupName)
Sets the value of
SubnetSelection.getSubnetGroupName() |
SubnetSelection.Builder |
subnets(List<? extends ISubnet> subnets)
Sets the value of
SubnetSelection.getSubnets() |
SubnetSelection.Builder |
subnetType(SubnetType subnetType)
Sets the value of
SubnetSelection.getSubnetType() |
@Stability(value=Experimental) public SubnetSelection.Builder availabilityZones(List<String> availabilityZones)
SubnetSelection.getAvailabilityZones()
availabilityZones
- Select subnets only in the given AZs.this
@Stability(value=Experimental) public SubnetSelection.Builder onePerAz(Boolean onePerAz)
SubnetSelection.getOnePerAz()
onePerAz
- If true, return at most one subnet per AZ.this
@Stability(value=Experimental) public SubnetSelection.Builder subnetFilters(List<? extends SubnetFilter> subnetFilters)
SubnetSelection.getSubnetFilters()
subnetFilters
- List of provided subnet filters.this
@Stability(value=Experimental) public SubnetSelection.Builder subnetGroupName(String subnetGroupName)
SubnetSelection.getSubnetGroupName()
subnetGroupName
- Select the subnet group with the given name.
Select the subnet group with the given name. This only needs
to be used if you have multiple subnet groups of the same type
and you need to distinguish between them. Otherwise, prefer
subnetType
.
This field does not select individual subnets, it selects all subnets that
share the given subnet group name. This is the name supplied in
subnetConfiguration
.
At most one of subnetType
and subnetGroupName
can be supplied.
this
@Stability(value=Experimental) public SubnetSelection.Builder subnets(List<? extends ISubnet> subnets)
SubnetSelection.getSubnets()
subnets
- Explicitly select individual subnets.
Use this if you don't want to automatically use all subnets in
a group, but have a need to control selection down to
individual subnets.
Cannot be specified together with subnetType
or subnetGroupName
.
this
@Stability(value=Experimental) public SubnetSelection.Builder subnetType(SubnetType subnetType)
SubnetSelection.getSubnetType()
subnetType
- Select all subnets of the given type.
At most one of subnetType
and subnetGroupName
can be supplied.this
@Stability(value=Experimental) public SubnetSelection build()
build
in interface software.amazon.jsii.Builder<SubnetSelection>
SubnetSelection
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.