Class ShutdownEventConfiguration
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.ShutdownEventConfiguration
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ShutdownEventConfiguration extends Object implements Serializable, Cloneable
The Shutdown event configuration.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShutdownEventConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShutdownEventConfigurationclone()booleanequals(Object obj)BooleangetDelayUntilElbConnectionsDrained()Whether to enable Elastic Load Balancing connection draining.IntegergetExecutionTimeout()The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.inthashCode()BooleanisDelayUntilElbConnectionsDrained()Whether to enable Elastic Load Balancing connection draining.voidsetDelayUntilElbConnectionsDrained(Boolean delayUntilElbConnectionsDrained)Whether to enable Elastic Load Balancing connection draining.voidsetExecutionTimeout(Integer executionTimeout)The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.StringtoString()Returns a string representation of this object; useful for testing and debugging.ShutdownEventConfigurationwithDelayUntilElbConnectionsDrained(Boolean delayUntilElbConnectionsDrained)Whether to enable Elastic Load Balancing connection draining.ShutdownEventConfigurationwithExecutionTimeout(Integer executionTimeout)The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.
-
-
-
Method Detail
-
setExecutionTimeout
public void setExecutionTimeout(Integer executionTimeout)
The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.
- Parameters:
executionTimeout- The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.
-
getExecutionTimeout
public Integer getExecutionTimeout()
The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.
- Returns:
- The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.
-
withExecutionTimeout
public ShutdownEventConfiguration withExecutionTimeout(Integer executionTimeout)
The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.
- Parameters:
executionTimeout- The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown event before shutting down an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDelayUntilElbConnectionsDrained
public void setDelayUntilElbConnectionsDrained(Boolean delayUntilElbConnectionsDrained)
Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
- Parameters:
delayUntilElbConnectionsDrained- Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
-
getDelayUntilElbConnectionsDrained
public Boolean getDelayUntilElbConnectionsDrained()
Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
- Returns:
- Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
-
withDelayUntilElbConnectionsDrained
public ShutdownEventConfiguration withDelayUntilElbConnectionsDrained(Boolean delayUntilElbConnectionsDrained)
Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
- Parameters:
delayUntilElbConnectionsDrained- Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDelayUntilElbConnectionsDrained
public Boolean isDelayUntilElbConnectionsDrained()
Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
- Returns:
- Whether to enable Elastic Load Balancing connection draining. For more information, see Connection Draining
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ShutdownEventConfiguration clone()
-
-