public class LoadBalancerState
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the state of a load balancer.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
loadBalancerName
The name of the load balancer.
|
private java.lang.String |
state
One of the following load balancer states:
|
Constructor and Description |
---|
LoadBalancerState() |
Modifier and Type | Method and Description |
---|---|
LoadBalancerState |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLoadBalancerName()
The name of the load balancer.
|
java.lang.String |
getState()
One of the following load balancer states:
|
int |
hashCode() |
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
void |
setState(java.lang.String state)
One of the following load balancer states:
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LoadBalancerState |
withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
LoadBalancerState |
withState(java.lang.String state)
One of the following load balancer states:
|
private java.lang.String loadBalancerName
The name of the load balancer.
private java.lang.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.
public void setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public java.lang.String getLoadBalancerName()
The name of the load balancer.
public LoadBalancerState withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public void setState(java.lang.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.
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.
public java.lang.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.
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.
public LoadBalancerState withState(java.lang.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.
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.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public LoadBalancerState clone()
clone
in class java.lang.Object