Class LoadBalancerState

    • Constructor Detail

      • LoadBalancerState

        public LoadBalancerState()
    • Method Detail

      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object