@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 |
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 |
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 |
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 must specify subnets from at least two Availability Zones. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
public void setSubnets(Collection<String> subnets)
The IDs of the public subnets. You must specify subnets from at least two Availability Zones. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
subnets
- The IDs of the public subnets. You must specify subnets from at least two Availability Zones. You can
specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.public SetSubnetsRequest withSubnets(String... subnets)
The IDs of the public subnets. You must specify subnets from at least two Availability Zones. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
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 must specify subnets from at least two Availability Zones. You can
specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.public SetSubnetsRequest withSubnets(Collection<String> subnets)
The IDs of the public subnets. You must specify subnets from at least two Availability Zones. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
subnets
- The IDs of the public subnets. You must specify subnets from at least two Availability Zones. You can
specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.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.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. If you need static IP addresses for your internet-facing load balancer, you can specify one Elastic IP address per subnet. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. If you need static IP addresses for your internet-facing load balancer, you can specify one Elastic IP address per subnet. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet.
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.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. If you need static IP addresses for your internet-facing load balancer, you can specify one Elastic IP address per subnet. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet.
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.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. If you need static IP addresses for your internet-facing load balancer, you can specify one Elastic IP address per subnet. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet.
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.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. If you need static IP addresses for your internet-facing load balancer, you can specify one Elastic IP address per subnet. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet.
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.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. If you need static IP addresses for your internet-facing load balancer, you can specify one Elastic IP address per subnet. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet.
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.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. If you need static IP addresses for your internet-facing load balancer, you can specify one Elastic IP address per subnet. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet.
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.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. If you need static IP addresses for your internet-facing load balancer, you can specify one Elastic IP address per subnet. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet.
public String toString()
toString
in class Object
Object.toString()
public SetSubnetsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()