|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elasticloadbalancing.model.CreateLoadBalancerRequest
public class CreateLoadBalancerRequest
Container for the parameters to the CreateLoadBalancer operation
.
Creates a new LoadBalancer.
After the call has completed successfully, a new LoadBalancer is created; however, it will not be usable until at least one instance has been registered. When the LoadBalancer creation is completed, the client can check whether or not it is usable by using the DescribeInstanceHealth API. The LoadBalancer is usable as soon as any registered instance is InService .
NOTE: Currently, the client's quota of LoadBalancers is limited to ten per Region.
NOTE: LoadBalancer DNS names vary depending on the Region they're created in. For LoadBalancers created in the United States, the DNS name ends with: us-east-1.elb.amazonaws.com (for the US Standard Region) us-west-1.elb.amazonaws.com (for the Northern California Region) For LoadBalancers created in the EU (Ireland) Region, the DNS name ends with: eu-west-1.elb.amazonaws.com
AmazonElasticLoadBalancing.createLoadBalancer(CreateLoadBalancerRequest)
Constructor Summary | |
---|---|
CreateLoadBalancerRequest()
Default constructor for a new CreateLoadBalancerRequest object. |
|
CreateLoadBalancerRequest(String loadBalancerName)
Constructs a new CreateLoadBalancerRequest object. |
|
CreateLoadBalancerRequest(String loadBalancerName,
List<Listener> listeners,
List<String> availabilityZones)
Constructs a new CreateLoadBalancerRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
List<String> |
getAvailabilityZones()
A list of Availability Zones. |
List<Listener> |
getListeners()
A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol. |
String |
getLoadBalancerName()
The name associated with the LoadBalancer. |
String |
getScheme()
The type of a LoadBalancer. |
List<String> |
getSecurityGroups()
The security groups assigned to your LoadBalancer within your VPC. |
List<String> |
getSubnets()
A list of subnet IDs in your VPC to attach to your LoadBalancer. |
int |
hashCode()
|
void |
setAvailabilityZones(Collection<String> availabilityZones)
A list of Availability Zones. |
void |
setListeners(Collection<Listener> listeners)
A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol. |
void |
setLoadBalancerName(String loadBalancerName)
The name associated with the LoadBalancer. |
void |
setScheme(String scheme)
The type of a LoadBalancer. |
void |
setSecurityGroups(Collection<String> securityGroups)
The security groups assigned to your LoadBalancer within your VPC. |
void |
setSubnets(Collection<String> subnets)
A list of subnet IDs in your VPC to attach to your LoadBalancer. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateLoadBalancerRequest |
withAvailabilityZones(Collection<String> availabilityZones)
A list of Availability Zones. |
CreateLoadBalancerRequest |
withAvailabilityZones(String... availabilityZones)
A list of Availability Zones. |
CreateLoadBalancerRequest |
withListeners(Collection<Listener> listeners)
A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol. |
CreateLoadBalancerRequest |
withListeners(Listener... listeners)
A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol. |
CreateLoadBalancerRequest |
withLoadBalancerName(String loadBalancerName)
The name associated with the LoadBalancer. |
CreateLoadBalancerRequest |
withScheme(String scheme)
The type of a LoadBalancer. |
CreateLoadBalancerRequest |
withSecurityGroups(Collection<String> securityGroups)
The security groups assigned to your LoadBalancer within your VPC. |
CreateLoadBalancerRequest |
withSecurityGroups(String... securityGroups)
The security groups assigned to your LoadBalancer within your VPC. |
CreateLoadBalancerRequest |
withSubnets(Collection<String> subnets)
A list of subnet IDs in your VPC to attach to your LoadBalancer. |
CreateLoadBalancerRequest |
withSubnets(String... subnets)
A list of subnet IDs in your VPC to attach to your LoadBalancer. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateLoadBalancerRequest()
public CreateLoadBalancerRequest(String loadBalancerName)
loadBalancerName
- The name associated with the LoadBalancer. The
name must be unique within your set of LoadBalancers.public CreateLoadBalancerRequest(String loadBalancerName, List<Listener> listeners, List<String> availabilityZones)
loadBalancerName
- The name associated with the LoadBalancer. The
name must be unique within your set of LoadBalancers.listeners
- A list of the following tuples: LoadBalancerPort,
InstancePort, and Protocol.availabilityZones
- A list of Availability Zones. At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.
This list can be modified after the creation of the LoadBalancer.
Method Detail |
---|
public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name associated with the LoadBalancer. The name must be unique
within your set of LoadBalancers.public CreateLoadBalancerRequest withLoadBalancerName(String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name associated with the LoadBalancer. The name must be unique
within your set of LoadBalancers.
public List<Listener> getListeners()
public void setListeners(Collection<Listener> listeners)
listeners
- A list of the following tuples: LoadBalancerPort, InstancePort, and
Protocol.public CreateLoadBalancerRequest withListeners(Listener... listeners)
Returns a reference to this object so that method calls can be chained together.
listeners
- A list of the following tuples: LoadBalancerPort, InstancePort, and
Protocol.
public CreateLoadBalancerRequest withListeners(Collection<Listener> listeners)
Returns a reference to this object so that method calls can be chained together.
listeners
- A list of the following tuples: LoadBalancerPort, InstancePort, and
Protocol.
public List<String> getAvailabilityZones()
At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.
This list can be modified after the creation of the LoadBalancer.
At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.
This list can be modified after the creation of the LoadBalancer.
public void setAvailabilityZones(Collection<String> availabilityZones)
At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.
This list can be modified after the creation of the LoadBalancer.
availabilityZones
- A list of Availability Zones. At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.
This list can be modified after the creation of the LoadBalancer.
public CreateLoadBalancerRequest withAvailabilityZones(String... availabilityZones)
At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.
This list can be modified after the creation of the LoadBalancer.
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- A list of Availability Zones. At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.
This list can be modified after the creation of the LoadBalancer.
public CreateLoadBalancerRequest withAvailabilityZones(Collection<String> availabilityZones)
At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.
This list can be modified after the creation of the LoadBalancer.
Returns a reference to this object so that method calls can be chained together.
availabilityZones
- A list of Availability Zones. At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the LoadBalancer. Traffic will be equally distributed across all zones.
This list can be modified after the creation of the LoadBalancer.
public List<String> getSubnets()
public void setSubnets(Collection<String> subnets)
subnets
- A list of subnet IDs in your VPC to attach to your LoadBalancer.public CreateLoadBalancerRequest withSubnets(String... subnets)
Returns a reference to this object so that method calls can be chained together.
subnets
- A list of subnet IDs in your VPC to attach to your LoadBalancer.
public CreateLoadBalancerRequest withSubnets(Collection<String> subnets)
Returns a reference to this object so that method calls can be chained together.
subnets
- A list of subnet IDs in your VPC to attach to your LoadBalancer.
public List<String> getSecurityGroups()
public void setSecurityGroups(Collection<String> securityGroups)
securityGroups
- The security groups assigned to your LoadBalancer within your VPC.public CreateLoadBalancerRequest withSecurityGroups(String... securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The security groups assigned to your LoadBalancer within your VPC.
public CreateLoadBalancerRequest withSecurityGroups(Collection<String> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The security groups assigned to your LoadBalancer within your VPC.
public String getScheme()
public void setScheme(String scheme)
scheme
- The type of a LoadBalancer. This option is only available for
LoadBalancers attached to a Amazon VPC. By default, Elastic Load
Balancer creates an internet-facing load balancer with publicly
resolvable DNS name that resolves to public IP addresses. Specify the
value internal for this option to create an internal load
balancer with a DNS name that resolves to private IP addresses.public CreateLoadBalancerRequest withScheme(String scheme)
Returns a reference to this object so that method calls can be chained together.
scheme
- The type of a LoadBalancer. This option is only available for
LoadBalancers attached to a Amazon VPC. By default, Elastic Load
Balancer creates an internet-facing load balancer with publicly
resolvable DNS name that resolves to public IP addresses. Specify the
value internal for this option to create an internal load
balancer with a DNS name that resolves to private IP addresses.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |