Class ElasticLoadBalancer
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.ElasticLoadBalancer
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ElasticLoadBalancer extends Object implements Serializable, Cloneable
Describes an Elastic Load Balancing instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElasticLoadBalancer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElasticLoadBalancer
clone()
boolean
equals(Object obj)
List<String>
getAvailabilityZones()
A list of Availability Zones.String
getDnsName()
The instance's public DNS name.List<String>
getEc2InstanceIds()
A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.String
getElasticLoadBalancerName()
The Elastic Load Balancing instance's name.String
getLayerId()
The ID of the layer that the instance is attached to.String
getRegion()
The instance's AWS region.String
getStackId()
The ID of the stack that the instance is associated with.List<String>
getSubnetIds()
A list of subnet IDs, if the stack is running in a VPC.String
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
setRegion(String region)
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
setVpcId(String vpcId)
The VPC ID.String
toString()
Returns a string representation of this object; useful for testing and debugging.ElasticLoadBalancer
withAvailabilityZones(String... availabilityZones)
A list of Availability Zones.ElasticLoadBalancer
withAvailabilityZones(Collection<String> availabilityZones)
A list of Availability Zones.ElasticLoadBalancer
withDnsName(String dnsName)
The instance's public DNS name.ElasticLoadBalancer
withEc2InstanceIds(String... ec2InstanceIds)
A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.ElasticLoadBalancer
withEc2InstanceIds(Collection<String> ec2InstanceIds)
A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.ElasticLoadBalancer
withElasticLoadBalancerName(String elasticLoadBalancerName)
The Elastic Load Balancing instance's name.ElasticLoadBalancer
withLayerId(String layerId)
The ID of the layer that the instance is attached to.ElasticLoadBalancer
withRegion(String region)
The instance's AWS region.ElasticLoadBalancer
withStackId(String stackId)
The ID of the stack that the instance is associated with.ElasticLoadBalancer
withSubnetIds(String... subnetIds)
A list of subnet IDs, if the stack is running in a VPC.ElasticLoadBalancer
withSubnetIds(Collection<String> subnetIds)
A list of subnet IDs, if the stack is running in a VPC.ElasticLoadBalancer
withVpcId(String vpcId)
The VPC ID.
-
-
-
Method Detail
-
setElasticLoadBalancerName
public void setElasticLoadBalancerName(String elasticLoadBalancerName)
The Elastic Load Balancing instance's name.
- Parameters:
elasticLoadBalancerName
- The Elastic Load Balancing instance's name.
-
getElasticLoadBalancerName
public String getElasticLoadBalancerName()
The Elastic Load Balancing instance's name.
- Returns:
- The Elastic Load Balancing instance's name.
-
withElasticLoadBalancerName
public ElasticLoadBalancer withElasticLoadBalancerName(String elasticLoadBalancerName)
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
public void setRegion(String region)
The instance's AWS region.
- Parameters:
region
- The instance's AWS region.
-
getRegion
public String getRegion()
The instance's AWS region.
- Returns:
- The instance's AWS region.
-
withRegion
public ElasticLoadBalancer withRegion(String region)
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
public void setDnsName(String dnsName)
The instance's public DNS name.
- Parameters:
dnsName
- The instance's public DNS name.
-
getDnsName
public String getDnsName()
The instance's public DNS name.
- Returns:
- The instance's public DNS name.
-
withDnsName
public ElasticLoadBalancer withDnsName(String dnsName)
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
public void setStackId(String stackId)
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
public String 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
public ElasticLoadBalancer withStackId(String stackId)
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
public void setLayerId(String layerId)
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
public String 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
public ElasticLoadBalancer withLayerId(String layerId)
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
public void setVpcId(String vpcId)
The VPC ID.
- Parameters:
vpcId
- The VPC ID.
-
getVpcId
public String getVpcId()
The VPC ID.
- Returns:
- The VPC ID.
-
withVpcId
public ElasticLoadBalancer withVpcId(String vpcId)
The VPC ID.
- Parameters:
vpcId
- The VPC ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAvailabilityZones
public List<String> getAvailabilityZones()
A list of Availability Zones.
- Returns:
- A list of Availability Zones.
-
setAvailabilityZones
public void setAvailabilityZones(Collection<String> availabilityZones)
A list of Availability Zones.
- Parameters:
availabilityZones
- A list of Availability Zones.
-
withAvailabilityZones
public ElasticLoadBalancer withAvailabilityZones(String... availabilityZones)
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
public ElasticLoadBalancer withAvailabilityZones(Collection<String> availabilityZones)
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
public List<String> 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
public void setSubnetIds(Collection<String> subnetIds)
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
public ElasticLoadBalancer withSubnetIds(String... subnetIds)
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
public ElasticLoadBalancer withSubnetIds(Collection<String> subnetIds)
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
public List<String> 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
public void setEc2InstanceIds(Collection<String> ec2InstanceIds)
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
public ElasticLoadBalancer withEc2InstanceIds(String... ec2InstanceIds)
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
public ElasticLoadBalancer withEc2InstanceIds(Collection<String> ec2InstanceIds)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ElasticLoadBalancer clone()
-
-