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:
  • Constructor Details

    • LoadBalancerState

      public LoadBalancerState()
  • Method Details

    • 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:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public LoadBalancerState clone()
      Overrides:
      clone in class Object