/** * Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure * levels for a running environment: <enumValues> <value name="Red"> * * <p><code>Red</code> : Indicates the environment is not working. </value> <value name="Yellow"> * * <p><code>Yellow</code>: Indicates that something is wrong, the application might not be * available, but the instances appear running. </value> <value name="Green"> * * <p><code>Green</code>: Indicates the environment is healthy and fully functional. </value> * </enumValues> * * <ul> * <li><code>Red</code>: Indicates the environment is not responsive. Occurs when three or more * consecutive failures occur for an environment. * <li><code>Yellow</code>: Indicates that something is wrong. Occurs when two consecutive * failures occur for an environment. * <li><code>Green</code>: Indicates the environment is healthy and fully functional. * <li><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>RestartEnvironement</code> request. * </ul> * * <p>Default: <code>Grey</code> * * <p>Returns a reference to this object so that method calls can be chained together. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>Green, Yellow, Red, Grey * * @param health Describes the health status of the environment. AWS Elastic Beanstalk indicates * the failure levels for a running environment: <enumValues> <value name="Red"> * <p><code>Red</code> : Indicates the environment is not working. </value> <value * name="Yellow"> * <p><code>Yellow</code>: Indicates that something is wrong, the application might not be * available, but the instances appear running. </value> <value name="Green"> * <p><code>Green</code>: Indicates the environment is healthy and fully functional. </value> * </enumValues> * <ul> * <li><code>Red</code>: Indicates the environment is not responsive. Occurs when three or * more consecutive failures occur for an environment. * <li><code>Yellow</code>: Indicates that something is wrong. Occurs when two consecutive * failures occur for an environment. * <li><code>Green</code>: Indicates the environment is healthy and fully functional. * <li><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>RestartEnvironement</code> request. * </ul> * <p>Default: <code>Grey</code> * @see EnvironmentHealth */ public TerminateEnvironmentResult withHealth(EnvironmentHealth health) { this.health = health.toString(); return this; }
/** * Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure * levels for a running environment: <enumValues> <value name="Red"> * * <p><code>Red</code> : Indicates the environment is not working. </value> <value name="Yellow"> * * <p><code>Yellow</code>: Indicates that something is wrong, the application might not be * available, but the instances appear running. </value> <value name="Green"> * * <p><code>Green</code>: Indicates the environment is healthy and fully functional. </value> * </enumValues> * * <ul> * <li><code>Red</code>: Indicates the environment is not responsive. Occurs when three or more * consecutive failures occur for an environment. * <li><code>Yellow</code>: Indicates that something is wrong. Occurs when two consecutive * failures occur for an environment. * <li><code>Green</code>: Indicates the environment is healthy and fully functional. * <li><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>RestartEnvironement</code> request. * </ul> * * <p>Default: <code>Grey</code> * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>Green, Yellow, Red, Grey * * @param health Describes the health status of the environment. AWS Elastic Beanstalk indicates * the failure levels for a running environment: <enumValues> <value name="Red"> * <p><code>Red</code> : Indicates the environment is not working. </value> <value * name="Yellow"> * <p><code>Yellow</code>: Indicates that something is wrong, the application might not be * available, but the instances appear running. </value> <value name="Green"> * <p><code>Green</code>: Indicates the environment is healthy and fully functional. </value> * </enumValues> * <ul> * <li><code>Red</code>: Indicates the environment is not responsive. Occurs when three or * more consecutive failures occur for an environment. * <li><code>Yellow</code>: Indicates that something is wrong. Occurs when two consecutive * failures occur for an environment. * <li><code>Green</code>: Indicates the environment is healthy and fully functional. * <li><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>RestartEnvironement</code> request. * </ul> * <p>Default: <code>Grey</code> * @see EnvironmentHealth */ public void setHealth(EnvironmentHealth health) { this.health = health.toString(); }