@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SetSubnetsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SetSubnetsRequest() |
Modifier and Type | Method and Description |
---|---|
SetSubnetsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getIpAddressType()
[Application Load Balancers] The IP address type.
|
String |
getLoadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
|
List<SubnetMapping> |
getSubnetMappings()
The IDs of the public subnets.
|
List<String> |
getSubnets()
The IDs of the public subnets.
|
int |
hashCode() |
void |
setIpAddressType(String ipAddressType)
[Application Load Balancers] The IP address type.
|
void |
setLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
|
void |
setSubnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the public subnets.
|
void |
setSubnets(Collection<String> subnets)
The IDs of the public subnets.
|
String |
toString()
Returns a string representation of this object.
|
SetSubnetsRequest |
withIpAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The IP address type.
|
SetSubnetsRequest |
withIpAddressType(String ipAddressType)
[Application Load Balancers] The IP address type.
|
SetSubnetsRequest |
withLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
|
SetSubnetsRequest |
withSubnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the public subnets.
|
SetSubnetsRequest |
withSubnetMappings(SubnetMapping... subnetMappings)
The IDs of the public subnets.
|
SetSubnetsRequest |
withSubnets(Collection<String> subnets)
The IDs of the public subnets.
|
SetSubnetsRequest |
withSubnets(String... subnets)
The IDs of the public subnets.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer.public String getLoadBalancerArn()
The Amazon Resource Name (ARN) of the load balancer.
public SetSubnetsRequest withLoadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer.public List<String> getSubnets()
The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
public void setSubnets(Collection<String> subnets)
The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
subnets
- The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify
either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
public SetSubnetsRequest withSubnets(String... subnets)
The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
NOTE: This method appends the values to the existing list (if any). Use
setSubnets(java.util.Collection)
or withSubnets(java.util.Collection)
if you want to override
the existing values.
subnets
- The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify
either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
public SetSubnetsRequest withSubnets(Collection<String> subnets)
The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
subnets
- The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify
either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
public List<SubnetMapping> getSubnetMappings()
The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
public void setSubnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
subnetMappings
- The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify
either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
public SetSubnetsRequest withSubnetMappings(SubnetMapping... subnetMappings)
The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetMappings(java.util.Collection)
or withSubnetMappings(java.util.Collection)
if you want
to override the existing values.
subnetMappings
- The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify
either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
public SetSubnetsRequest withSubnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
subnetMappings
- The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify
either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Application Load Balancers on Outposts] You must specify one Outpost subnet.
[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.
[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.
public void setIpAddressType(String ipAddressType)
[Application Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6 addresses).
[Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values
are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses). You can’t
specify dualstack
for a load balancer with a UDP or TCP_UDP listener.
[Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values
are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
ipAddressType
- [Application Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and
dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6
addresses).
[Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible
values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses). You can’t specify dualstack
for a load balancer with a UDP or TCP_UDP listener.
[Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible
values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses).
IpAddressType
public String getIpAddressType()
[Application Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6 addresses).
[Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values
are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses). You can’t
specify dualstack
for a load balancer with a UDP or TCP_UDP listener.
[Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values
are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
ipv4
(for only
IPv4 addresses), dualstack
(for IPv4 and IPv6 addresses), and
dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6
addresses).
[Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The
possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses). You can’t specify dualstack
for a load balancer with a UDP or TCP_UDP listener.
[Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The
possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses).
IpAddressType
public SetSubnetsRequest withIpAddressType(String ipAddressType)
[Application Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6 addresses).
[Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values
are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses). You can’t
specify dualstack
for a load balancer with a UDP or TCP_UDP listener.
[Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values
are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
ipAddressType
- [Application Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and
dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6
addresses).
[Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible
values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses). You can’t specify dualstack
for a load balancer with a UDP or TCP_UDP listener.
[Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible
values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses).
IpAddressType
public SetSubnetsRequest withIpAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6 addresses).
[Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values
are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses). You can’t
specify dualstack
for a load balancer with a UDP or TCP_UDP listener.
[Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values
are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6 addresses).
ipAddressType
- [Application Load Balancers] The IP address type. The possible values are ipv4
(for only IPv4
addresses), dualstack
(for IPv4 and IPv6 addresses), and
dualstack-without-public-ipv4
(for IPv6 only public addresses, with private IPv4 and IPv6
addresses).
[Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible
values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses). You can’t specify dualstack
for a load balancer with a UDP or TCP_UDP listener.
[Gateway Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible
values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses).
IpAddressType
public String toString()
toString
in class Object
Object.toString()
public SetSubnetsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()