Class LoadBalancerState

    • Method Detail

      • loadBalancerName

        public final String loadBalancerName()

        The name of the load balancer.

        Returns:
        The name of the load balancer.
      • state

        public final String state()

        One of the following load balancer states:

        • Adding - The Auto Scaling instances are being registered with the load balancer.

        • Added - All Auto Scaling instances are registered with the load balancer.

        • InService - At least one Auto Scaling instance passed an ELB health check.

        • Removing - The Auto Scaling 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.

        • Removed - All Auto Scaling instances are deregistered from the load balancer.

        Returns:
        One of the following load balancer states:

        • Adding - The Auto Scaling instances are being registered with the load balancer.

        • Added - All Auto Scaling instances are registered with the load balancer.

        • InService - At least one Auto Scaling instance passed an ELB health check.

        • Removing - The Auto Scaling 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.

        • Removed - All Auto Scaling instances are deregistered from the load balancer.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)