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 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ShutdownEventConfiguration clone()
-
-