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