@Generated(value="software.amazon.awssdk:codegen") public final class LoadBalancerState extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LoadBalancerState.Builder,LoadBalancerState>
Describes the state of a Classic Load Balancer.
If you specify a load balancer when creating the Auto Scaling group, the state of the load balancer is
InService
.
If you attach a load balancer to an existing Auto Scaling group, the initial state is Adding
. The state
transitions to Added
after all instances in the group are registered with the load balancer. If Elastic
Load Balancing health checks are enabled for the load balancer, the state transitions to InService
after
at least one instance in the group passes the health check. If EC2 health checks are enabled instead, the load
balancer remains in the Added
state.
Modifier and Type | Class and Description |
---|---|
static interface |
LoadBalancerState.Builder |
Modifier and Type | Method and Description |
---|---|
static LoadBalancerState.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
loadBalancerName()
The name of the load balancer.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LoadBalancerState.Builder> |
serializableBuilderClass() |
String |
state()
One of the following load balancer states:
|
LoadBalancerState.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String loadBalancerName()
The name of the load balancer.
public final 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 in the group 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.
Removed
- All instances in the group are deregistered from the load balancer.
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 in the group 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.
Removed
- All instances in the group are deregistered from the load balancer.
public LoadBalancerState.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<LoadBalancerState.Builder,LoadBalancerState>
public static LoadBalancerState.Builder builder()
public static Class<? extends LoadBalancerState.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.