public class CreateLoadBalancerRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains the parameters for CreateLoadBalancer.
NOOP
Constructor and Description |
---|
CreateLoadBalancerRequest() |
Modifier and Type | Method and Description |
---|---|
CreateLoadBalancerRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getName()
The name of the load balancer.
|
String |
getScheme()
The nodes of an Internet-facing load balancer have public IP addresses.
|
List<String> |
getSecurityGroups()
The IDs of the security groups to assign to the load balancer.
|
List<String> |
getSubnets()
The IDs of the subnets to attach to the load balancer.
|
List<Tag> |
getTags()
One or more tags to assign to the load balancer.
|
int |
hashCode() |
void |
setName(String name)
The name of the load balancer.
|
void |
setScheme(LoadBalancerSchemeEnum scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
void |
setScheme(String scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
void |
setSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups to assign to the load balancer.
|
void |
setSubnets(Collection<String> subnets)
The IDs of the subnets to attach to the load balancer.
|
void |
setTags(Collection<Tag> tags)
One or more tags to assign to the load balancer.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateLoadBalancerRequest |
withName(String name)
The name of the load balancer.
|
CreateLoadBalancerRequest |
withScheme(LoadBalancerSchemeEnum scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
CreateLoadBalancerRequest |
withScheme(String scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
CreateLoadBalancerRequest |
withSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups to assign to the load balancer.
|
CreateLoadBalancerRequest |
withSecurityGroups(String... securityGroups)
The IDs of the security groups to assign to the load balancer.
|
CreateLoadBalancerRequest |
withSubnets(Collection<String> subnets)
The IDs of the subnets to attach to the load balancer.
|
CreateLoadBalancerRequest |
withSubnets(String... subnets)
The IDs of the subnets to attach to the load balancer.
|
CreateLoadBalancerRequest |
withTags(Collection<Tag> tags)
One or more tags to assign to the load balancer.
|
CreateLoadBalancerRequest |
withTags(Tag... tags)
One or more tags to assign to the load balancer.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name of the load balancer.
This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
name
- The name of the load balancer.
This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
public String getName()
The name of the load balancer.
This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
public CreateLoadBalancerRequest withName(String name)
The name of the load balancer.
This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
name
- The name of the load balancer.
This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
public List<String> getSubnets()
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify subnets from at least two Availability Zones.
public void setSubnets(Collection<String> subnets)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify subnets from at least two Availability Zones.
subnets
- The IDs of the subnets to attach to the load balancer. You can
specify only one subnet per Availability Zone. You must specify
subnets from at least two Availability Zones.public CreateLoadBalancerRequest withSubnets(String... subnets)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify subnets from at least two 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 subnets to attach to the load balancer. You can
specify only one subnet per Availability Zone. You must specify
subnets from at least two Availability Zones.public CreateLoadBalancerRequest withSubnets(Collection<String> subnets)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify subnets from at least two Availability Zones.
subnets
- The IDs of the subnets to attach to the load balancer. You can
specify only one subnet per Availability Zone. You must specify
subnets from at least two Availability Zones.public List<String> getSecurityGroups()
The IDs of the security groups to assign to the load balancer.
public void setSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups to assign to the load balancer.
securityGroups
- The IDs of the security groups to assign to the load balancer.public CreateLoadBalancerRequest withSecurityGroups(String... securityGroups)
The IDs of the security groups to assign to the load balancer.
NOTE: This method appends the values to the existing list (if
any). Use setSecurityGroups(java.util.Collection)
or
withSecurityGroups(java.util.Collection)
if you want to override
the existing values.
securityGroups
- The IDs of the security groups to assign to the load balancer.public CreateLoadBalancerRequest withSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups to assign to the load balancer.
securityGroups
- The IDs of the security groups to assign to the load balancer.public void setScheme(String scheme)
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the Internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
scheme
- The nodes of an Internet-facing load balancer have public IP
addresses. The DNS name of an Internet-facing load balancer is
publicly resolvable to the public IP addresses of the nodes.
Therefore, Internet-facing load balancers can route requests from
clients over the Internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
LoadBalancerSchemeEnum
public String getScheme()
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the Internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
LoadBalancerSchemeEnum
public CreateLoadBalancerRequest withScheme(String scheme)
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the Internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
scheme
- The nodes of an Internet-facing load balancer have public IP
addresses. The DNS name of an Internet-facing load balancer is
publicly resolvable to the public IP addresses of the nodes.
Therefore, Internet-facing load balancers can route requests from
clients over the Internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
LoadBalancerSchemeEnum
public void setScheme(LoadBalancerSchemeEnum scheme)
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the Internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
scheme
- The nodes of an Internet-facing load balancer have public IP
addresses. The DNS name of an Internet-facing load balancer is
publicly resolvable to the public IP addresses of the nodes.
Therefore, Internet-facing load balancers can route requests from
clients over the Internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
LoadBalancerSchemeEnum
public CreateLoadBalancerRequest withScheme(LoadBalancerSchemeEnum scheme)
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the Internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
scheme
- The nodes of an Internet-facing load balancer have public IP
addresses. The DNS name of an Internet-facing load balancer is
publicly resolvable to the public IP addresses of the nodes.
Therefore, Internet-facing load balancers can route requests from
clients over the Internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
LoadBalancerSchemeEnum
public List<Tag> getTags()
One or more tags to assign to the load balancer.
public void setTags(Collection<Tag> tags)
One or more tags to assign to the load balancer.
tags
- One or more tags to assign to the load balancer.public CreateLoadBalancerRequest withTags(Tag... tags)
One or more tags to assign to the load balancer.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- One or more tags to assign to the load balancer.public CreateLoadBalancerRequest withTags(Collection<Tag> tags)
One or more tags to assign to the load balancer.
tags
- One or more tags to assign to the load balancer.public String toString()
toString
in class Object
Object.toString()
public CreateLoadBalancerRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.