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:
  • Constructor Details

    • ShutdownEventConfiguration

      public ShutdownEventConfiguration()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Overrides:
      clone in class Object