@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsElbLoadBalancerConnectionDraining extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the connection draining configuration for the load balancer.
Constructor and Description |
---|
AwsElbLoadBalancerConnectionDraining() |
Modifier and Type | Method and Description |
---|---|
AwsElbLoadBalancerConnectionDraining |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnabled()
Indicates whether connection draining is enabled for the load balancer.
|
Integer |
getTimeout()
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
|
int |
hashCode() |
Boolean |
isEnabled()
Indicates whether connection draining is enabled for the load balancer.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnabled(Boolean enabled)
Indicates whether connection draining is enabled for the load balancer.
|
void |
setTimeout(Integer timeout)
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
|
String |
toString()
Returns a string representation of this object.
|
AwsElbLoadBalancerConnectionDraining |
withEnabled(Boolean enabled)
Indicates whether connection draining is enabled for the load balancer.
|
AwsElbLoadBalancerConnectionDraining |
withTimeout(Integer timeout)
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
|
public AwsElbLoadBalancerConnectionDraining()
public void setEnabled(Boolean enabled)
Indicates whether connection draining is enabled for the load balancer.
enabled
- Indicates whether connection draining is enabled for the load balancer.public Boolean getEnabled()
Indicates whether connection draining is enabled for the load balancer.
public AwsElbLoadBalancerConnectionDraining withEnabled(Boolean enabled)
Indicates whether connection draining is enabled for the load balancer.
enabled
- Indicates whether connection draining is enabled for the load balancer.public Boolean isEnabled()
Indicates whether connection draining is enabled for the load balancer.
public void setTimeout(Integer timeout)
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
timeout
- The maximum time, in seconds, to keep the existing connections open before deregistering the instances.public Integer getTimeout()
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
public AwsElbLoadBalancerConnectionDraining withTimeout(Integer timeout)
The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
timeout
- The maximum time, in seconds, to keep the existing connections open before deregistering the instances.public String toString()
toString
in class Object
Object.toString()
public AwsElbLoadBalancerConnectionDraining clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.