public static final class SelectedSubnets.Builder
extends java.lang.Object
SelectedSubnets
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SelectedSubnets.Builder |
availabilityZones(java.util.List<java.lang.String> availabilityZones)
Sets the value of
SelectedSubnets.getAvailabilityZones() |
SelectedSubnets |
build()
Builds the configured instance.
|
SelectedSubnets.Builder |
hasPublic(java.lang.Boolean hasPublic)
Sets the value of
SelectedSubnets.getHasPublic() |
SelectedSubnets.Builder |
internetConnectivityEstablished(IDependable internetConnectivityEstablished)
Sets the value of
SelectedSubnets.getInternetConnectivityEstablished() |
SelectedSubnets.Builder |
isPendingLookup(java.lang.Boolean isPendingLookup)
Sets the value of
SelectedSubnets.getIsPendingLookup() |
SelectedSubnets.Builder |
subnetIds(java.util.List<java.lang.String> subnetIds)
Sets the value of
SelectedSubnets.getSubnetIds() |
SelectedSubnets.Builder |
subnets(java.util.List<? extends ISubnet> subnets)
Sets the value of
SelectedSubnets.getSubnets() |
public SelectedSubnets.Builder availabilityZones(java.util.List<java.lang.String> availabilityZones)
SelectedSubnets.getAvailabilityZones()
availabilityZones
- The respective AZs of each subnet. This parameter is required.this
public SelectedSubnets.Builder hasPublic(java.lang.Boolean hasPublic)
SelectedSubnets.getHasPublic()
hasPublic
- Whether any of the given subnets are from the VPC's public subnets. This parameter is required.this
public SelectedSubnets.Builder internetConnectivityEstablished(IDependable internetConnectivityEstablished)
SelectedSubnets.getInternetConnectivityEstablished()
internetConnectivityEstablished
- Dependency representing internet connectivity for these subnets. This parameter is required.this
public SelectedSubnets.Builder subnetIds(java.util.List<java.lang.String> subnetIds)
SelectedSubnets.getSubnetIds()
subnetIds
- The subnet IDs. This parameter is required.this
public SelectedSubnets.Builder subnets(java.util.List<? extends ISubnet> subnets)
SelectedSubnets.getSubnets()
subnets
- Selected subnet objects. This parameter is required.this
public SelectedSubnets.Builder isPendingLookup(java.lang.Boolean isPendingLookup)
SelectedSubnets.getIsPendingLookup()
isPendingLookup
- The subnet selection is not actually real yet.
If this value is true, don't validate anything about the subnets. The count
or identities are not known yet, and the validation will most likely fail
which will prevent a successful lookup.this
public SelectedSubnets build()
SelectedSubnets
java.lang.NullPointerException
- if any required attribute was not provided