public DeploymentReadyOption withActionOnTimeout(String actionOnTimeout) {
        setActionOnTimeout(actionOnTimeout);
        return this;
    }
<p>
Information about when to reroute traffic from an original environment to a replacement environment in a
blue/green deployment.
</p>
<ul>
<li>
<p>
CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision
is installed on the instances in the replacement environment.
</p>
</li>
<li>
<p>
STOP_DEPLOYMENT: Do not register new instances with a load balancer unless traffic rerouting is started using
<a>ContinueDeployment</a>. If traffic rerouting is not started before the end of the specified wait period, the
deployment status is changed to Stopped.
</p>
</li>
</ul>

@param actionOnTimeout
       Information about when to reroute traffic from an original environment to a replacement environment in a
       blue/green deployment.</p>
       <ul>
       <li>
       <p>
       CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application
       revision is installed on the instances in the replacement environment.
       </p>
       </li>
       <li>
       <p>
       STOP_DEPLOYMENT: Do not register new instances with a load balancer unless traffic rerouting is started
       using <a>ContinueDeployment</a>. If traffic rerouting is not started before the end of the specified wait
       period, the deployment status is changed to Stopped.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see DeploymentReadyAction
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/DeploymentReadyOption.java