Class ConnectionDraining

java.lang.Object
com.amazonaws.services.elasticloadbalancing.model.ConnectionDraining
All Implemented Interfaces:
Serializable, Cloneable

public class ConnectionDraining extends Object implements Serializable, Cloneable

Information about the ConnectionDraining attribute.

See Also:
  • Constructor Details

    • ConnectionDraining

      public ConnectionDraining()
  • Method Details

    • setEnabled

      public void setEnabled(Boolean enabled)

      Specifies whether connection draining is enabled for the load balancer.

      Parameters:
      enabled - Specifies whether connection draining is enabled for the load balancer.
    • getEnabled

      public Boolean getEnabled()

      Specifies whether connection draining is enabled for the load balancer.

      Returns:
      Specifies whether connection draining is enabled for the load balancer.
    • withEnabled

      public ConnectionDraining withEnabled(Boolean enabled)

      Specifies whether connection draining is enabled for the load balancer.

      Parameters:
      enabled - Specifies whether connection draining is enabled for the load balancer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isEnabled

      public Boolean isEnabled()

      Specifies whether connection draining is enabled for the load balancer.

      Returns:
      Specifies whether connection draining is enabled for the load balancer.
    • setTimeout

      public void setTimeout(Integer timeout)

      The maximum time, in seconds, to keep the existing connections open before deregistering the instances.

      Parameters:
      timeout - The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
    • getTimeout

      public Integer getTimeout()

      The maximum time, in seconds, to keep the existing connections open before deregistering the instances.

      Returns:
      The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
    • withTimeout

      public ConnectionDraining withTimeout(Integer timeout)

      The maximum time, in seconds, to keep the existing connections open before deregistering the instances.

      Parameters:
      timeout - The maximum time, in seconds, to keep the existing connections open 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 ConnectionDraining clone()
      Overrides:
      clone in class Object