public UpdateEnvironmentResult withHealth(String health) {
        setHealth(health);
        return this;
    }
<p>
Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running
environment:
</p>
<ul>
<li>
<p>
<code>Red</code>: Indicates the environment is not responsive. Occurs when three or more consecutive failures
occur for an environment.
</p>
</li>
<li>
<p>
<code>Yellow</code>: Indicates that something is wrong. Occurs when two consecutive failures occur for an
environment.
</p>
</li>
<li>
<p>
<code>Green</code>: Indicates the environment is healthy and fully functional.
</p>
</li>
<li>
<p>
<code>Grey</code>: Default health for a new environment. The environment is not fully launched and health checks
have not started or health checks are suspended during an <code>UpdateEnvironment</code> or
<code>RestartEnvironment</code> request.
</p>
</li>
</ul>
<p>
Default: <code>Grey</code>
</p>

@param health
       Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a
       running environment:</p>
       <ul>
       <li>
       <p>
       <code>Red</code>: Indicates the environment is not responsive. Occurs when three or more consecutive
       failures occur for an environment.
       </p>
       </li>
       <li>
       <p>
       <code>Yellow</code>: Indicates that something is wrong. Occurs when two consecutive failures occur for an
       environment.
       </p>
       </li>
       <li>
       <p>
       <code>Green</code>: Indicates the environment is healthy and fully functional.
       </p>
       </li>
       <li>
       <p>
       <code>Grey</code>: Default health for a new environment. The environment is not fully launched and health
       checks have not started or health checks are suspended during an <code>UpdateEnvironment</code> or
       <code>RestartEnvironment</code> request.
       </p>
       </li>
       </ul>
       <p>
       Default: <code>Grey</code>
@return Returns a reference to this object so that method calls can be chained together.
@see EnvironmentHealth
aws-java-sdk-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/UpdateEnvironmentResult.java