|
|||||||
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 load balancer.
After the call has completed successfully, a new load balancer is created with a unique Domain Name Service (DNS) name. The DNS name includes the name of the AWS region in which the load balance was created. For example, if your load balancer was created in the United States, the DNS name might end with either of the following:
For information about the AWS regions supported by Elastic Load Balancing, see Regions and Endpoints .
You can create up to 20 load balancers per region per account.
Elastic Load Balancing supports load balancing your Amazon EC2 instances launched within any one of the following platforms:
For information on creating and managing your load balancers in EC2-Classic, see Deploy Elastic Load Balancing in Amazon EC2-Classic .
For information on creating and managing your load balancers in EC2-VPC, see Deploy Elastic Load Balancing in Amazon VPC .
AmazonElasticLoadBalancing.createLoadBalancer(CreateLoadBalancerRequest)
,
Serialized FormConstructor Summary | |
---|---|
CreateLoadBalancerRequest()
Default constructor for a new CreateLoadBalancerRequest object. |
|
CreateLoadBalancerRequest(java.lang.String loadBalancerName)
Constructs a new CreateLoadBalancerRequest object. |
|
CreateLoadBalancerRequest(java.lang.String loadBalancerName,
java.util.List<Listener> listeners,
java.util.List<java.lang.String> availabilityZones)
Constructs a new CreateLoadBalancerRequest object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List<java.lang.String> |
getAvailabilityZones()
A list of Availability Zones. |
java.util.List<Listener> |
getListeners()
A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol. |
java.lang.String |
getLoadBalancerName()
The name associated with the load balancer. |
java.lang.String |
getScheme()
The type of a load balancer. |
java.util.List<java.lang.String> |
getSecurityGroups()
The security groups to assign to your load balancer within your VPC. |
java.util.List<java.lang.String> |
getSubnets()
A list of subnet IDs in your VPC to attach to your load balancer. |
int |
hashCode()
|
void |
setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
A list of Availability Zones. |
void |
setListeners(java.util.Collection<Listener> listeners)
A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol. |
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the load balancer. |
void |
setScheme(java.lang.String scheme)
The type of a load balancer. |
void |
setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The security groups to assign to your load balancer within your VPC. |
void |
setSubnets(java.util.Collection<java.lang.String> subnets)
A list of subnet IDs in your VPC to attach to your load balancer. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateLoadBalancerRequest |
withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
A list of Availability Zones. |
CreateLoadBalancerRequest |
withAvailabilityZones(java.lang.String... availabilityZones)
A list of Availability Zones. |
CreateLoadBalancerRequest |
withListeners(java.util.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(java.lang.String loadBalancerName)
The name associated with the load balancer. |
CreateLoadBalancerRequest |
withScheme(java.lang.String scheme)
The type of a load balancer. |
CreateLoadBalancerRequest |
withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The security groups to assign to your load balancer within your VPC. |
CreateLoadBalancerRequest |
withSecurityGroups(java.lang.String... securityGroups)
The security groups to assign to your load balancer within your VPC. |
CreateLoadBalancerRequest |
withSubnets(java.util.Collection<java.lang.String> subnets)
A list of subnet IDs in your VPC to attach to your load balancer. |
CreateLoadBalancerRequest |
withSubnets(java.lang.String... subnets)
A list of subnet IDs in your VPC to attach to your load balancer. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateLoadBalancerRequest()
public CreateLoadBalancerRequest(java.lang.String loadBalancerName)
loadBalancerName
- The name associated with the load balancer.
The name must be unique within your set of load balancers.public CreateLoadBalancerRequest(java.lang.String loadBalancerName, java.util.List<Listener> listeners, java.util.List<java.lang.String> availabilityZones)
loadBalancerName
- The name associated with the load balancer.
The name must be unique within your set of load balancers.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 load balancer. Traffic will be equally distributed across all zones.
You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.
Method Detail |
---|
public java.lang.String getLoadBalancerName()
public void setLoadBalancerName(java.lang.String loadBalancerName)
loadBalancerName
- The name associated with the load balancer. The name must be unique
within your set of load balancers.public CreateLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name associated with the load balancer. The name must be unique
within your set of load balancers.
public java.util.List<Listener> getListeners()
public void setListeners(java.util.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(java.util.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 java.util.List<java.lang.String> getAvailabilityZones()
At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the load balancer. Traffic will be equally distributed across all zones.
You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.
At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the load balancer. Traffic will be equally distributed across all zones.
You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.
public void setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the load balancer. Traffic will be equally distributed across all zones.
You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.
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 load balancer. Traffic will be equally distributed across all zones.
You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.
public CreateLoadBalancerRequest withAvailabilityZones(java.lang.String... availabilityZones)
At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the load balancer. Traffic will be equally distributed across all zones.
You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.
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 load balancer. Traffic will be equally distributed across all zones.
You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.
public CreateLoadBalancerRequest withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region as the load balancer. Traffic will be equally distributed across all zones.
You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.
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 load balancer. Traffic will be equally distributed across all zones.
You can later add more Availability Zones after the creation of the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.
public java.util.List<java.lang.String> getSubnets()
public void setSubnets(java.util.Collection<java.lang.String> subnets)
subnets
- A list of subnet IDs in your VPC to attach to your load balancer.
Specify one subnet per Availability Zone.public CreateLoadBalancerRequest withSubnets(java.lang.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 load balancer.
Specify one subnet per Availability Zone.
public CreateLoadBalancerRequest withSubnets(java.util.Collection<java.lang.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 load balancer.
Specify one subnet per Availability Zone.
public java.util.List<java.lang.String> getSecurityGroups()
public void setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
securityGroups
- The security groups to assign to your load balancer within your VPC.public CreateLoadBalancerRequest withSecurityGroups(java.lang.String... securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The security groups to assign to your load balancer within your VPC.
public CreateLoadBalancerRequest withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The security groups to assign to your load balancer within your VPC.
public java.lang.String getScheme()
By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more informationabout Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers.
Specify the value
This option is only available for load balancers created within
EC2-VPC. internal
for this option to create an internal load
balancer with a DNS name that resolves to private IP addresses.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more informationabout Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers.
Specify the value
This option is only available for load balancers created within
EC2-VPC. internal
for this option to create an internal load
balancer with a DNS name that resolves to private IP addresses.
public void setScheme(java.lang.String scheme)
By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more informationabout Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers.
Specify the value
This option is only available for load balancers created within
EC2-VPC. internal
for this option to create an internal load
balancer with a DNS name that resolves to private IP addresses.
scheme
- The type of a load balancer. By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more informationabout Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers.
Specify the value
This option is only available for load balancers created within
EC2-VPC. internal
for this option to create an internal load
balancer with a DNS name that resolves to private IP addresses.
public CreateLoadBalancerRequest withScheme(java.lang.String scheme)
By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more informationabout Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers.
Specify the value
This option is only available for load balancers created within
EC2-VPC. internal
for this option to create an internal load
balancer with a DNS name that resolves to private IP addresses.
Returns a reference to this object so that method calls can be chained together.
scheme
- The type of a load balancer. By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more informationabout Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers.
Specify the value
This option is only available for load balancers created within
EC2-VPC. internal
for this option to create an internal load
balancer with a DNS name that resolves to private IP addresses.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |