Class LoadBalancerState
- java.lang.Object
-
- com.amazonaws.services.autoscaling.model.LoadBalancerState
-
- All Implemented Interfaces:
Serializable,Cloneable
public class LoadBalancerState extends Object implements Serializable, Cloneable
Describes the state of a load balancer.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoadBalancerState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBalancerStateclone()booleanequals(Object obj)StringgetLoadBalancerName()The name of the load balancer.StringgetState()One of the following load balancer states:inthashCode()voidsetLoadBalancerName(String loadBalancerName)The name of the load balancer.voidsetState(String state)One of the following load balancer states:StringtoString()Returns a string representation of this object; useful for testing and debugging.LoadBalancerStatewithLoadBalancerName(String loadBalancerName)The name of the load balancer.LoadBalancerStatewithState(String state)One of the following load balancer states:
-
-
-
Method Detail
-
setLoadBalancerName
public void setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
- Parameters:
loadBalancerName- The name of the load balancer.
-
getLoadBalancerName
public String getLoadBalancerName()
The name of the load balancer.
- Returns:
- The name of the load balancer.
-
withLoadBalancerName
public LoadBalancerState withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
- Parameters:
loadBalancerName- The name of the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
One of the following load balancer states:
-
Adding- The instances in the group are being registered with the load balancer. -
Added- All instances in the group are registered with the load balancer. -
InService- At least one instance in the group passed an ELB health check. -
Removing- The instances are being deregistered from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances.
- Parameters:
state- One of the following load balancer states:-
Adding- The instances in the group are being registered with the load balancer. -
Added- All instances in the group are registered with the load balancer. -
InService- At least one instance in the group passed an ELB health check. -
Removing- The instances are being deregistered from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances.
-
-
-
getState
public String getState()
One of the following load balancer states:
-
Adding- The instances in the group are being registered with the load balancer. -
Added- All instances in the group are registered with the load balancer. -
InService- At least one instance in the group passed an ELB health check. -
Removing- The instances are being deregistered from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances.
- Returns:
- One of the following load balancer states:
-
Adding- The instances in the group are being registered with the load balancer. -
Added- All instances in the group are registered with the load balancer. -
InService- At least one instance in the group passed an ELB health check. -
Removing- The instances are being deregistered from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances.
-
-
-
withState
public LoadBalancerState withState(String state)
One of the following load balancer states:
-
Adding- The instances in the group are being registered with the load balancer. -
Added- All instances in the group are registered with the load balancer. -
InService- At least one instance in the group passed an ELB health check. -
Removing- The instances are being deregistered from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances.
- Parameters:
state- One of the following load balancer states:-
Adding- The instances in the group are being registered with the load balancer. -
Added- All instances in the group are registered with the load balancer. -
InService- At least one instance in the group passed an ELB health check. -
Removing- The instances are being deregistered from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances.
-
- 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 LoadBalancerState clone()
-
-