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 ElasticLoadBalancerclone()booleanequals(Object obj)List<String>getAvailabilityZones()A list of Availability Zones.StringgetDnsName()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.StringgetElasticLoadBalancerName()The Elastic Load Balancing instance's name.StringgetLayerId()The ID of the layer that the instance is attached to.StringgetRegion()The instance's AWS region.StringgetStackId()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.StringgetVpcId()The VPC ID.inthashCode()voidsetAvailabilityZones(Collection<String> availabilityZones)A list of Availability Zones.voidsetDnsName(String dnsName)The instance's public DNS name.voidsetEc2InstanceIds(Collection<String> ec2InstanceIds)A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.voidsetElasticLoadBalancerName(String elasticLoadBalancerName)The Elastic Load Balancing instance's name.voidsetLayerId(String layerId)The ID of the layer that the instance is attached to.voidsetRegion(String region)The instance's AWS region.voidsetStackId(String stackId)The ID of the stack that the instance is associated with.voidsetSubnetIds(Collection<String> subnetIds)A list of subnet IDs, if the stack is running in a VPC.voidsetVpcId(String vpcId)The VPC ID.StringtoString()Returns a string representation of this object; useful for testing and debugging.ElasticLoadBalancerwithAvailabilityZones(String... availabilityZones)A list of Availability Zones.ElasticLoadBalancerwithAvailabilityZones(Collection<String> availabilityZones)A list of Availability Zones.ElasticLoadBalancerwithDnsName(String dnsName)The instance's public DNS name.ElasticLoadBalancerwithEc2InstanceIds(String... ec2InstanceIds)A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.ElasticLoadBalancerwithEc2InstanceIds(Collection<String> ec2InstanceIds)A list of the EC2 instances that the Elastic Load Balancing instance is managing traffic for.ElasticLoadBalancerwithElasticLoadBalancerName(String elasticLoadBalancerName)The Elastic Load Balancing instance's name.ElasticLoadBalancerwithLayerId(String layerId)The ID of the layer that the instance is attached to.ElasticLoadBalancerwithRegion(String region)The instance's AWS region.ElasticLoadBalancerwithStackId(String stackId)The ID of the stack that the instance is associated with.ElasticLoadBalancerwithSubnetIds(String... subnetIds)A list of subnet IDs, if the stack is running in a VPC.ElasticLoadBalancerwithSubnetIds(Collection<String> subnetIds)A list of subnet IDs, if the stack is running in a VPC.ElasticLoadBalancerwithVpcId(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ElasticLoadBalancer clone()
-
-