Class ShutdownEventConfiguration

    • Constructor Detail

      • ShutdownEventConfiguration

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

        public int hashCode()
        Overrides:
        hashCode in class Object