Class ElasticLoadBalancer
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an Elastic Load Balancing instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A list of Availability Zones.The instance's public DNS name.A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.The Elastic Load Balancing instance's name.The ID of the layer that the instance is attached to.The instance's AWS region.The ID of the stack that the instance is associated with.A list of subnet IDs, if the stack is running in a VPC.getVpcId()
The VPC ID.int
hashCode()
void
setAvailabilityZones
(Collection<String> availabilityZones) A list of Availability Zones.void
setDnsName
(String dnsName) The instance's public DNS name.void
setEc2InstanceIds
(Collection<String> ec2InstanceIds) A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.void
setElasticLoadBalancerName
(String elasticLoadBalancerName) The Elastic Load Balancing instance's name.void
setLayerId
(String layerId) The ID of the layer that the instance is attached to.void
The instance's AWS region.void
setStackId
(String stackId) The ID of the stack that the instance is associated with.void
setSubnetIds
(Collection<String> subnetIds) A list of subnet IDs, if the stack is running in a VPC.void
The VPC ID.toString()
Returns a string representation of this object; useful for testing and debugging.withAvailabilityZones
(String... availabilityZones) A list of Availability Zones.withAvailabilityZones
(Collection<String> availabilityZones) A list of Availability Zones.withDnsName
(String dnsName) The instance's public DNS name.withEc2InstanceIds
(String... ec2InstanceIds) A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.withEc2InstanceIds
(Collection<String> ec2InstanceIds) A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.withElasticLoadBalancerName
(String elasticLoadBalancerName) The Elastic Load Balancing instance's name.withLayerId
(String layerId) The ID of the layer that the instance is attached to.withRegion
(String region) The instance's AWS region.withStackId
(String stackId) The ID of the stack that the instance is associated with.withSubnetIds
(String... subnetIds) A list of subnet IDs, if the stack is running in a VPC.withSubnetIds
(Collection<String> subnetIds) A list of subnet IDs, if the stack is running in a VPC.The VPC ID.
-
Constructor Details
-
ElasticLoadBalancer
public ElasticLoadBalancer()
-
-
Method Details
-
setElasticLoadBalancerName
The Elastic Load Balancing instance's name.
- Parameters:
elasticLoadBalancerName
- The Elastic Load Balancing instance's name.
-
getElasticLoadBalancerName
The Elastic Load Balancing instance's name.
- Returns:
- The Elastic Load Balancing instance's name.
-
withElasticLoadBalancerName
The Elastic Load Balancing instance's name.
- Parameters:
elasticLoadBalancerName
- The Elastic Load Balancing instance's name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRegion
The instance's AWS region.
- Parameters:
region
- The instance's AWS region.
-
getRegion
The instance's AWS region.
- Returns:
- The instance's AWS region.
-
withRegion
The instance's AWS region.
- Parameters:
region
- The instance's AWS region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDnsName
The instance's public DNS name.
- Parameters:
dnsName
- The instance's public DNS name.
-
getDnsName
The instance's public DNS name.
- Returns:
- The instance's public DNS name.
-
withDnsName
The instance's public DNS name.
- Parameters:
dnsName
- The instance's public DNS name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackId
The ID of the stack that the instance is associated with.
- Parameters:
stackId
- The ID of the stack that the instance is associated with.
-
getStackId
The ID of the stack that the instance is associated with.
- Returns:
- The ID of the stack that the instance is associated with.
-
withStackId
The ID of the stack that the instance is associated with.
- Parameters:
stackId
- The ID of the stack that the instance is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLayerId
The ID of the layer that the instance is attached to.
- Parameters:
layerId
- The ID of the layer that the instance is attached to.
-
getLayerId
The ID of the layer that the instance is attached to.
- Returns:
- The ID of the layer that the instance is attached to.
-
withLayerId
The ID of the layer that the instance is attached to.
- Parameters:
layerId
- The ID of the layer that the instance is attached to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcId
The VPC ID.
- Parameters:
vpcId
- The VPC ID.
-
getVpcId
The VPC ID.
- Returns:
- The VPC ID.
-
withVpcId
The VPC ID.
- Parameters:
vpcId
- The VPC ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAvailabilityZones
A list of Availability Zones.
- Returns:
- A list of Availability Zones.
-
setAvailabilityZones
A list of Availability Zones.
- Parameters:
availabilityZones
- A list of Availability Zones.
-
withAvailabilityZones
A list of Availability Zones.
NOTE: This method appends the values to the existing list (if any). Use
setAvailabilityZones(java.util.Collection)
orwithAvailabilityZones(java.util.Collection)
if you want to override the existing values.- Parameters:
availabilityZones
- A list of Availability Zones.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAvailabilityZones
A list of Availability Zones.
- Parameters:
availabilityZones
- A list of Availability Zones.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSubnetIds
A list of subnet IDs, if the stack is running in a VPC.
- Returns:
- A list of subnet IDs, if the stack is running in a VPC.
-
setSubnetIds
A list of subnet IDs, if the stack is running in a VPC.
- Parameters:
subnetIds
- A list of subnet IDs, if the stack is running in a VPC.
-
withSubnetIds
A list of subnet IDs, if the stack is running in a VPC.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)
orwithSubnetIds(java.util.Collection)
if you want to override the existing values.- Parameters:
subnetIds
- A list of subnet IDs, if the stack is running in a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSubnetIds
A list of subnet IDs, if the stack is running in a VPC.
- Parameters:
subnetIds
- A list of subnet IDs, if the stack is running in a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEc2InstanceIds
A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.
- Returns:
- A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.
-
setEc2InstanceIds
A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.
- Parameters:
ec2InstanceIds
- A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.
-
withEc2InstanceIds
A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.
NOTE: This method appends the values to the existing list (if any). Use
setEc2InstanceIds(java.util.Collection)
orwithEc2InstanceIds(java.util.Collection)
if you want to override the existing values.- Parameters:
ec2InstanceIds
- A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEc2InstanceIds
A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.
- Parameters:
ec2InstanceIds
- A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-