public class LoadBalancerTargetGroupState extends Object implements Serializable, Cloneable
Describes the state of a target group.
If you attach a target group to an existing Auto Scaling group, the initial
state is Adding. The state transitions to Added
after all Auto Scaling instances are registered with the target group. If ELB
health checks are enabled, the state transitions to InService
after at least one Auto Scaling instance passes the health check. If EC2
health checks are enabled instead, the target group remains in the
Added state.
| Constructor and Description |
|---|
LoadBalancerTargetGroupState() |
| Modifier and Type | Method and Description |
|---|---|
LoadBalancerTargetGroupState |
clone() |
boolean |
equals(Object obj) |
String |
getLoadBalancerTargetGroupARN()
The Amazon Resource Name (ARN) of the target group.
|
String |
getState()
The state of the target group.
|
int |
hashCode() |
void |
setLoadBalancerTargetGroupARN(String loadBalancerTargetGroupARN)
The Amazon Resource Name (ARN) of the target group.
|
void |
setState(String state)
The state of the target group.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LoadBalancerTargetGroupState |
withLoadBalancerTargetGroupARN(String loadBalancerTargetGroupARN)
The Amazon Resource Name (ARN) of the target group.
|
LoadBalancerTargetGroupState |
withState(String state)
The state of the target group.
|
public void setLoadBalancerTargetGroupARN(String loadBalancerTargetGroupARN)
The Amazon Resource Name (ARN) of the target group.
loadBalancerTargetGroupARN - The Amazon Resource Name (ARN) of the target group.public String getLoadBalancerTargetGroupARN()
The Amazon Resource Name (ARN) of the target group.
public LoadBalancerTargetGroupState withLoadBalancerTargetGroupARN(String loadBalancerTargetGroupARN)
The Amazon Resource Name (ARN) of the target group.
loadBalancerTargetGroupARN - The Amazon Resource Name (ARN) of the target group.public void setState(String state)
The state of the target group.
Adding - The Auto Scaling instances are being registered
with the target group.
Added - All Auto Scaling instances are registered with the
target group.
InService - At least one Auto Scaling instance passed an ELB
health check.
Removing - The Auto Scaling instances are being deregistered
from the target group. If connection draining is enabled, Elastic Load
Balancing waits for in-flight requests to complete before deregistering
the instances.
Removed - All Auto Scaling instances are deregistered from
the target group.
state - The state of the target group.
Adding - The Auto Scaling instances are being
registered with the target group.
Added - All Auto Scaling instances are registered
with the target group.
InService - At least one Auto Scaling instance passed
an ELB health check.
Removing - The Auto Scaling instances are being
deregistered from the target group. If connection draining is
enabled, Elastic Load Balancing waits for in-flight requests to
complete before deregistering the instances.
Removed - All Auto Scaling instances are deregistered
from the target group.
public String getState()
The state of the target group.
Adding - The Auto Scaling instances are being registered
with the target group.
Added - All Auto Scaling instances are registered with the
target group.
InService - At least one Auto Scaling instance passed an ELB
health check.
Removing - The Auto Scaling instances are being deregistered
from the target group. If connection draining is enabled, Elastic Load
Balancing waits for in-flight requests to complete before deregistering
the instances.
Removed - All Auto Scaling instances are deregistered from
the target group.
Adding - The Auto Scaling instances are being
registered with the target group.
Added - All Auto Scaling instances are registered
with the target group.
InService - At least one Auto Scaling instance
passed an ELB health check.
Removing - The Auto Scaling instances are being
deregistered from the target group. If connection draining is
enabled, Elastic Load Balancing waits for in-flight requests to
complete before deregistering the instances.
Removed - All Auto Scaling instances are
deregistered from the target group.
public LoadBalancerTargetGroupState withState(String state)
The state of the target group.
Adding - The Auto Scaling instances are being registered
with the target group.
Added - All Auto Scaling instances are registered with the
target group.
InService - At least one Auto Scaling instance passed an ELB
health check.
Removing - The Auto Scaling instances are being deregistered
from the target group. If connection draining is enabled, Elastic Load
Balancing waits for in-flight requests to complete before deregistering
the instances.
Removed - All Auto Scaling instances are deregistered from
the target group.
state - The state of the target group.
Adding - The Auto Scaling instances are being
registered with the target group.
Added - All Auto Scaling instances are registered
with the target group.
InService - At least one Auto Scaling instance passed
an ELB health check.
Removing - The Auto Scaling instances are being
deregistered from the target group. If connection draining is
enabled, Elastic Load Balancing waits for in-flight requests to
complete before deregistering the instances.
Removed - All Auto Scaling instances are deregistered
from the target group.
public String toString()
toString in class ObjectObject.toString()public LoadBalancerTargetGroupState clone()
Copyright © 2016. All rights reserved.