com.amazonaws.services.elasticloadbalancing.model
Class ConnectionDraining

java.lang.Object
  extended by com.amazonaws.services.elasticloadbalancing.model.ConnectionDraining
All Implemented Interfaces:
Serializable

public class ConnectionDraining
extends Object
implements Serializable

The ConnectionDraining data type.

See Also:
Serialized Form

Constructor Summary
ConnectionDraining()
           
 
Method Summary
 boolean equals(Object obj)
           
 Boolean getEnabled()
          Specifies whether connection draining is enabled for the load balancer.
 Integer getTimeout()
          Specifies the maximum time (in seconds) to keep the existing connections open before deregistering the instances.
 int hashCode()
           
 Boolean isEnabled()
          Specifies whether connection draining is enabled for the load balancer.
 void setEnabled(Boolean enabled)
          Specifies whether connection draining is enabled for the load balancer.
 void setTimeout(Integer timeout)
          Specifies the maximum time (in seconds) to keep the existing connections open before deregistering the instances.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ConnectionDraining withEnabled(Boolean enabled)
          Specifies whether connection draining is enabled for the load balancer.
 ConnectionDraining withTimeout(Integer timeout)
          Specifies the maximum time (in seconds) to keep the existing connections open before deregistering the instances.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionDraining

public ConnectionDraining()
Method Detail

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.

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.

withEnabled

public ConnectionDraining withEnabled(Boolean enabled)
Specifies whether connection draining is enabled for the load balancer.

Returns a reference to this object so that method calls can be chained together.

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

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.

getTimeout

public Integer getTimeout()
Specifies the maximum time (in seconds) to keep the existing connections open before deregistering the instances.

Returns:
Specifies the maximum time (in seconds) to keep the existing connections open before deregistering the instances.

setTimeout

public void setTimeout(Integer timeout)
Specifies the maximum time (in seconds) to keep the existing connections open before deregistering the instances.

Parameters:
timeout - Specifies the maximum time (in seconds) to keep the existing connections open before deregistering the instances.

withTimeout

public ConnectionDraining withTimeout(Integer timeout)
Specifies the maximum time (in seconds) to keep the existing connections open before deregistering the instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
timeout - Specifies the maximum time (in seconds) to keep the existing connections open before deregistering the instances.
Returns:
A reference to this updated 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

equals

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


Copyright © 2016. All rights reserved.