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 void setExecutionTimeout(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 Integer getExecutionTimeout()
The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.
public ShutdownEventConfiguration withExecutionTimeout(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(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 Boolean getDelayUntilElbConnectionsDrained()
Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
public ShutdownEventConfiguration withDelayUntilElbConnectionsDrained(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 Boolean isDelayUntilElbConnectionsDrained()
Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
public String toString()
toString
in class Object
Object.toString()
public ShutdownEventConfiguration clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.