public class ShutdownEventConfiguration
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The Shutdown event configuration.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
delayUntilElbConnectionsDrained
Whether to enable Elastic Load Balancing connection draining.
|
private java.lang.Integer |
executionTimeout
The time, in seconds, that AWS OpsWorks will wait after triggering a
Shutdown event before shutting down an instance.
|
Constructor and Description |
---|
ShutdownEventConfiguration() |
Modifier and Type | Method and Description |
---|---|
ShutdownEventConfiguration |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getDelayUntilElbConnectionsDrained()
Whether to enable Elastic Load Balancing connection draining.
|
java.lang.Integer |
getExecutionTimeout()
The time, in seconds, that AWS OpsWorks will wait after triggering a
Shutdown event before shutting down an instance.
|
int |
hashCode() |
java.lang.Boolean |
isDelayUntilElbConnectionsDrained()
Whether to enable Elastic Load Balancing connection draining.
|
void |
setDelayUntilElbConnectionsDrained(java.lang.Boolean delayUntilElbConnectionsDrained)
Whether to enable Elastic Load Balancing connection draining.
|
void |
setExecutionTimeout(java.lang.Integer executionTimeout)
The time, in seconds, that AWS OpsWorks will wait after triggering a
Shutdown event before shutting down an instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ShutdownEventConfiguration |
withDelayUntilElbConnectionsDrained(java.lang.Boolean delayUntilElbConnectionsDrained)
Whether to enable Elastic Load Balancing connection draining.
|
ShutdownEventConfiguration |
withExecutionTimeout(java.lang.Integer executionTimeout)
The time, in seconds, that AWS OpsWorks will wait after triggering a
Shutdown event before shutting down an instance.
|
private java.lang.Integer executionTimeout
The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.
private java.lang.Boolean delayUntilElbConnectionsDrained
Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
public void setExecutionTimeout(java.lang.Integer executionTimeout)
The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.
executionTimeout
- The time, in seconds, that AWS OpsWorks will wait after triggering
a Shutdown event before shutting down an instance.public java.lang.Integer getExecutionTimeout()
The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.
public ShutdownEventConfiguration withExecutionTimeout(java.lang.Integer executionTimeout)
The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.
executionTimeout
- The time, in seconds, that AWS OpsWorks will wait after triggering
a Shutdown event before shutting down an instance.public void setDelayUntilElbConnectionsDrained(java.lang.Boolean delayUntilElbConnectionsDrained)
Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
delayUntilElbConnectionsDrained
- Whether to enable Elastic Load Balancing connection draining. For
more information, see Connection Drainingpublic java.lang.Boolean getDelayUntilElbConnectionsDrained()
Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
public ShutdownEventConfiguration withDelayUntilElbConnectionsDrained(java.lang.Boolean delayUntilElbConnectionsDrained)
Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
delayUntilElbConnectionsDrained
- Whether to enable Elastic Load Balancing connection draining. For
more information, see Connection Drainingpublic java.lang.Boolean isDelayUntilElbConnectionsDrained()
Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ShutdownEventConfiguration clone()
clone
in class java.lang.Object