Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.elasticbeanstalk.model;
  

Describes the properties of an environment.

  
  public class TerminateEnvironmentResult implements SerializableCloneable {

    
The name of this environment.

Constraints:
Length: 4 - 23

  
      private String environmentName;

    
The ID of this environment.
  
      private String environmentId;

    
The name of the application associated with this environment.

Constraints:
Length: 1 - 100

  
      private String applicationName;

    
The application version deployed in this environment.

Constraints:
Length: 1 - 100

  
      private String versionLabel;

    
The name of the SolutionStack deployed with this environment.

Constraints:
Length: 0 - 100

  
      private String solutionStackName;

    
The name of the configuration template used to originally launch this environment.

Constraints:
Length: 1 - 100

  
      private String templateName;

    
Describes this environment.

Constraints:
Length: 0 - 200

  
      private String description;

    
For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.
  
      private String endpointURL;

    
The URL to the CNAME for this environment.

Constraints:
Length: 1 - 255

  
      private String cNAME;

    
The creation date for this environment.
  
      private java.util.Date dateCreated;

    
The last modified date for this environment.
 
     private java.util.Date dateUpdated;

    
The current operational status of the environment:
  • Launching: Environment is in the process of initial deployment.
  • Updating: Environment is in the process of updating its configuration settings or application version.
  • Ready: Environment is available to have an action performed on it, such as update or terminate.
  • Terminating: Environment is in the shut-down process.
  • Terminated: Environment is not running.

Constraints:
Allowed Values: Launching, Updating, Ready, Terminating, Terminated

 
     private String status;

    
Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

true: There is an update in progress.

false: There are no updates currently in progress.

 
     private Boolean abortableOperationInProgress;

    
Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment: <enumValues> <value name="Red">

Red : Indicates the environment is not working. </value> <value name="Yellow">

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running. </value> <value name="Green">

Green: Indicates the environment is healthy and fully functional. </value> </enumValues>

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: 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 UpdateEnvironment or RestartEnvironement request.

Default: Grey

Constraints:
Allowed Values: Green, Yellow, Red, Grey

 
     private String health;

    
The description of the AWS resources used by this environment.
 
     private EnvironmentResourcesDescription resources;

    
Describes the current tier of this environment.
 
     private EnvironmentTier tier;

    
The name of this environment.

Constraints:
Length: 4 - 23

Returns:
The name of this environment.
 
     public String getEnvironmentName() {
         return ;
     }
    
    
The name of this environment.

Constraints:
Length: 4 - 23

Parameters:
environmentName The name of this environment.
 
     public void setEnvironmentName(String environmentName) {
         this. = environmentName;
     }
    
    
The name of this environment.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 4 - 23

Parameters:
environmentName The name of this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withEnvironmentName(String environmentName) {
         this. = environmentName;
         return this;
     }

    
The ID of this environment.

Returns:
The ID of this environment.
 
     public String getEnvironmentId() {
         return ;
     }
    
    
The ID of this environment.

Parameters:
environmentId The ID of this environment.
 
     public void setEnvironmentId(String environmentId) {
         this. = environmentId;
     }
    
    
The ID of this environment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
environmentId The ID of this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withEnvironmentId(String environmentId) {
         this. = environmentId;
         return this;
     }

    
The name of the application associated with this environment.

Constraints:
Length: 1 - 100

Returns:
The name of the application associated with this environment.
 
     public String getApplicationName() {
         return ;
     }
    
    
The name of the application associated with this environment.

Constraints:
Length: 1 - 100

Parameters:
applicationName The name of the application associated with this environment.
 
     public void setApplicationName(String applicationName) {
         this. = applicationName;
     }
    
    
The name of the application associated with this environment.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
applicationName The name of the application associated with this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withApplicationName(String applicationName) {
         this. = applicationName;
         return this;
     }

    
The application version deployed in this environment.

Constraints:
Length: 1 - 100

Returns:
The application version deployed in this environment.
 
     public String getVersionLabel() {
         return ;
     }
    
    
The application version deployed in this environment.

Constraints:
Length: 1 - 100

Parameters:
versionLabel The application version deployed in this environment.
 
     public void setVersionLabel(String versionLabel) {
         this. = versionLabel;
     }
    
    
The application version deployed in this environment.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
versionLabel The application version deployed in this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withVersionLabel(String versionLabel) {
         this. = versionLabel;
         return this;
     }

    
The name of the SolutionStack deployed with this environment.

Constraints:
Length: 0 - 100

Returns:
The name of the SolutionStack deployed with this environment.
 
     public String getSolutionStackName() {
         return ;
     }
    
    
The name of the SolutionStack deployed with this environment.

Constraints:
Length: 0 - 100

Parameters:
solutionStackName The name of the SolutionStack deployed with this environment.
 
     public void setSolutionStackName(String solutionStackName) {
         this. = solutionStackName;
     }
    
    
The name of the SolutionStack deployed with this environment.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 100

Parameters:
solutionStackName The name of the SolutionStack deployed with this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withSolutionStackName(String solutionStackName) {
         this. = solutionStackName;
         return this;
     }

    
The name of the configuration template used to originally launch this environment.

Constraints:
Length: 1 - 100

Returns:
The name of the configuration template used to originally launch this environment.
 
     public String getTemplateName() {
         return ;
     }
    
    
The name of the configuration template used to originally launch this environment.

Constraints:
Length: 1 - 100

Parameters:
templateName The name of the configuration template used to originally launch this environment.
 
     public void setTemplateName(String templateName) {
         this. = templateName;
     }
    
    
The name of the configuration template used to originally launch this environment.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
templateName The name of the configuration template used to originally launch this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withTemplateName(String templateName) {
         this. = templateName;
         return this;
     }

    
Describes this environment.

Constraints:
Length: 0 - 200

Returns:
Describes this environment.
 
     public String getDescription() {
         return ;
     }
    
    
Describes this environment.

Constraints:
Length: 0 - 200

Parameters:
description Describes this environment.
 
     public void setDescription(String description) {
         this. = description;
     }
    
    
Describes this environment.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 200

Parameters:
description Describes this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withDescription(String description) {
         this. = description;
         return this;
     }

    
For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.

Returns:
For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.
 
     public String getEndpointURL() {
         return ;
     }
    
    
For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.

Parameters:
endpointURL For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.
 
     public void setEndpointURL(String endpointURL) {
         this. = endpointURL;
     }
    
    
For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
endpointURL For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withEndpointURL(String endpointURL) {
         this. = endpointURL;
         return this;
     }

    
The URL to the CNAME for this environment.

Constraints:
Length: 1 - 255

Returns:
The URL to the CNAME for this environment.
 
     public String getCNAME() {
         return ;
     }
    
    
The URL to the CNAME for this environment.

Constraints:
Length: 1 - 255

Parameters:
cNAME The URL to the CNAME for this environment.
 
     public void setCNAME(String cNAME) {
         this. = cNAME;
     }
    
    
The URL to the CNAME for this environment.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255

Parameters:
cNAME The URL to the CNAME for this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withCNAME(String cNAME) {
         this. = cNAME;
         return this;
     }

    
The creation date for this environment.

Returns:
The creation date for this environment.
 
     public java.util.Date getDateCreated() {
         return ;
     }
    
    
The creation date for this environment.

Parameters:
dateCreated The creation date for this environment.
 
     public void setDateCreated(java.util.Date dateCreated) {
         this. = dateCreated;
     }
    
    
The creation date for this environment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dateCreated The creation date for this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withDateCreated(java.util.Date dateCreated) {
         this. = dateCreated;
         return this;
     }

    
The last modified date for this environment.

Returns:
The last modified date for this environment.
 
     public java.util.Date getDateUpdated() {
         return ;
     }
    
    
The last modified date for this environment.

Parameters:
dateUpdated The last modified date for this environment.
 
     public void setDateUpdated(java.util.Date dateUpdated) {
         this. = dateUpdated;
     }
    
    
The last modified date for this environment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dateUpdated The last modified date for this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withDateUpdated(java.util.Date dateUpdated) {
         this. = dateUpdated;
         return this;
     }

    
The current operational status of the environment:
  • Launching: Environment is in the process of initial deployment.
  • Updating: Environment is in the process of updating its configuration settings or application version.
  • Ready: Environment is available to have an action performed on it, such as update or terminate.
  • Terminating: Environment is in the shut-down process.
  • Terminated: Environment is not running.

Constraints:
Allowed Values: Launching, Updating, Ready, Terminating, Terminated

Returns:
The current operational status of the environment:
  • Launching: Environment is in the process of initial deployment.
  • Updating: Environment is in the process of updating its configuration settings or application version.
  • Ready: Environment is available to have an action performed on it, such as update or terminate.
  • Terminating: Environment is in the shut-down process.
  • Terminated: Environment is not running.
See also:
EnvironmentStatus
 
     public String getStatus() {
         return ;
     }
    
    
The current operational status of the environment:
  • Launching: Environment is in the process of initial deployment.
  • Updating: Environment is in the process of updating its configuration settings or application version.
  • Ready: Environment is available to have an action performed on it, such as update or terminate.
  • Terminating: Environment is in the shut-down process.
  • Terminated: Environment is not running.

Constraints:
Allowed Values: Launching, Updating, Ready, Terminating, Terminated

Parameters:
status The current operational status of the environment:
  • Launching: Environment is in the process of initial deployment.
  • Updating: Environment is in the process of updating its configuration settings or application version.
  • Ready: Environment is available to have an action performed on it, such as update or terminate.
  • Terminating: Environment is in the shut-down process.
  • Terminated: Environment is not running.
See also:
EnvironmentStatus
 
     public void setStatus(String status) {
         this. = status;
     }
    
    
The current operational status of the environment:
  • Launching: Environment is in the process of initial deployment.
  • Updating: Environment is in the process of updating its configuration settings or application version.
  • Ready: Environment is available to have an action performed on it, such as update or terminate.
  • Terminating: Environment is in the shut-down process.
  • Terminated: Environment is not running.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Launching, Updating, Ready, Terminating, Terminated

Parameters:
status The current operational status of the environment:
  • Launching: Environment is in the process of initial deployment.
  • Updating: Environment is in the process of updating its configuration settings or application version.
  • Ready: Environment is available to have an action performed on it, such as update or terminate.
  • Terminating: Environment is in the shut-down process.
  • Terminated: Environment is not running.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
EnvironmentStatus
 
     public TerminateEnvironmentResult withStatus(String status) {
         this. = status;
         return this;
     }

    
The current operational status of the environment:
  • Launching: Environment is in the process of initial deployment.
  • Updating: Environment is in the process of updating its configuration settings or application version.
  • Ready: Environment is available to have an action performed on it, such as update or terminate.
  • Terminating: Environment is in the shut-down process.
  • Terminated: Environment is not running.

Constraints:
Allowed Values: Launching, Updating, Ready, Terminating, Terminated

Parameters:
status The current operational status of the environment:
  • Launching: Environment is in the process of initial deployment.
  • Updating: Environment is in the process of updating its configuration settings or application version.
  • Ready: Environment is available to have an action performed on it, such as update or terminate.
  • Terminating: Environment is in the shut-down process.
  • Terminated: Environment is not running.
See also:
EnvironmentStatus
 
     public void setStatus(EnvironmentStatus status) {
         this. = status.toString();
     }
    
    
The current operational status of the environment:
  • Launching: Environment is in the process of initial deployment.
  • Updating: Environment is in the process of updating its configuration settings or application version.
  • Ready: Environment is available to have an action performed on it, such as update or terminate.
  • Terminating: Environment is in the shut-down process.
  • Terminated: Environment is not running.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Launching, Updating, Ready, Terminating, Terminated

Parameters:
status The current operational status of the environment:
  • Launching: Environment is in the process of initial deployment.
  • Updating: Environment is in the process of updating its configuration settings or application version.
  • Ready: Environment is available to have an action performed on it, such as update or terminate.
  • Terminating: Environment is in the shut-down process.
  • Terminated: Environment is not running.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
EnvironmentStatus
 
         this. = status.toString();
         return this;
     }

    
Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

true: There is an update in progress.

false: There are no updates currently in progress.

Returns:
Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

true: There is an update in progress.

false: There are no updates currently in progress.

 
         return ;
     }
    
    
Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

true: There is an update in progress.

false: There are no updates currently in progress.

Parameters:
abortableOperationInProgress Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

true: There is an update in progress.

false: There are no updates currently in progress.

 
     public void setAbortableOperationInProgress(Boolean abortableOperationInProgress) {
         this. = abortableOperationInProgress;
     }
    
    
Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

true: There is an update in progress.

false: There are no updates currently in progress.

Returns a reference to this object so that method calls can be chained together.

Parameters:
abortableOperationInProgress Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

true: There is an update in progress.

false: There are no updates currently in progress.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public TerminateEnvironmentResult withAbortableOperationInProgress(Boolean abortableOperationInProgress) {
         this. = abortableOperationInProgress;
         return this;
     }

    
Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

true: There is an update in progress.

false: There are no updates currently in progress.

Returns:
Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

true: There is an update in progress.

false: There are no updates currently in progress.

 
         return ;
     }

    
Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment: <enumValues> <value name="Red">

Red : Indicates the environment is not working. </value> <value name="Yellow">

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running. </value> <value name="Green">

Green: Indicates the environment is healthy and fully functional. </value> </enumValues>

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: 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 UpdateEnvironment or RestartEnvironement request.

Default: Grey

Constraints:
Allowed Values: Green, Yellow, Red, Grey

Returns:
Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment: <enumValues> <value name="Red">

Red : Indicates the environment is not working. </value> <value name="Yellow">

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running. </value> <value name="Green">

Green: Indicates the environment is healthy and fully functional. </value> </enumValues>

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: 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 UpdateEnvironment or RestartEnvironement request.

Default: Grey

See also:
EnvironmentHealth
 
     public String getHealth() {
         return ;
     }
    
    
Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment: <enumValues> <value name="Red">

Red : Indicates the environment is not working. </value> <value name="Yellow">

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running. </value> <value name="Green">

Green: Indicates the environment is healthy and fully functional. </value> </enumValues>

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: 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 UpdateEnvironment or RestartEnvironement request.

Default: Grey

Constraints:
Allowed Values: Green, Yellow, Red, Grey

Parameters:
health Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment: <enumValues> <value name="Red">

Red : Indicates the environment is not working. </value> <value name="Yellow">

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running. </value> <value name="Green">

Green: Indicates the environment is healthy and fully functional. </value> </enumValues>

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: 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 UpdateEnvironment or RestartEnvironement request.

Default: Grey

See also:
EnvironmentHealth
 
     public void setHealth(String health) {
         this. = health;
     }
    
    
Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment: <enumValues> <value name="Red">

Red : Indicates the environment is not working. </value> <value name="Yellow">

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running. </value> <value name="Green">

Green: Indicates the environment is healthy and fully functional. </value> </enumValues>

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: 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 UpdateEnvironment or RestartEnvironement request.

Default: Grey

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Green, Yellow, Red, Grey

Parameters:
health Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment: <enumValues> <value name="Red">

Red : Indicates the environment is not working. </value> <value name="Yellow">

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running. </value> <value name="Green">

Green: Indicates the environment is healthy and fully functional. </value> </enumValues>

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: 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 UpdateEnvironment or RestartEnvironement request.

Default: Grey

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
EnvironmentHealth
 
     public TerminateEnvironmentResult withHealth(String health) {
         this. = health;
         return this;
     }

    
Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment: <enumValues> <value name="Red">

Red : Indicates the environment is not working. </value> <value name="Yellow">

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running. </value> <value name="Green">

Green: Indicates the environment is healthy and fully functional. </value> </enumValues>

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: 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 UpdateEnvironment or RestartEnvironement request.

Default: Grey

Constraints:
Allowed Values: Green, Yellow, Red, Grey

Parameters:
health Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment: <enumValues> <value name="Red">

Red : Indicates the environment is not working. </value> <value name="Yellow">

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running. </value> <value name="Green">

Green: Indicates the environment is healthy and fully functional. </value> </enumValues>

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: 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 UpdateEnvironment or RestartEnvironement request.

Default: Grey

See also:
EnvironmentHealth
    public void setHealth(EnvironmentHealth health) {
        this. = health.toString();
    }
    
    
Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment: <enumValues> <value name="Red">

Red : Indicates the environment is not working. </value> <value name="Yellow">

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running. </value> <value name="Green">

Green: Indicates the environment is healthy and fully functional. </value> </enumValues>

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: 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 UpdateEnvironment or RestartEnvironement request.

Default: Grey

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Green, Yellow, Red, Grey

Parameters:
health Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment: <enumValues> <value name="Red">

Red : Indicates the environment is not working. </value> <value name="Yellow">

Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running. </value> <value name="Green">

Green: Indicates the environment is healthy and fully functional. </value> </enumValues>

  • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.
  • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.
  • Green: Indicates the environment is healthy and fully functional.
  • Grey: 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 UpdateEnvironment or RestartEnvironement request.

Default: Grey

Returns:
A reference to this updated object so that method calls can be chained together.
See also:
EnvironmentHealth
        this. = health.toString();
        return this;
    }

    
The description of the AWS resources used by this environment.

Returns:
The description of the AWS resources used by this environment.
        return ;
    }
    
    
The description of the AWS resources used by this environment.

Parameters:
resources The description of the AWS resources used by this environment.
    public void setResources(EnvironmentResourcesDescription resources) {
        this. = resources;
    }
    
    
The description of the AWS resources used by this environment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
resources The description of the AWS resources used by this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = resources;
        return this;
    }

    
Describes the current tier of this environment.

Returns:
Describes the current tier of this environment.
    public EnvironmentTier getTier() {
        return ;
    }
    
    
Describes the current tier of this environment.

Parameters:
tier Describes the current tier of this environment.
    public void setTier(EnvironmentTier tier) {
        this. = tier;
    }
    
    
Describes the current tier of this environment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tier Describes the current tier of this environment.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = tier;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getEnvironmentName() != nullsb.append("EnvironmentName: " + getEnvironmentName() + ",");
        if (getEnvironmentId() != nullsb.append("EnvironmentId: " + getEnvironmentId() + ",");
        if (getApplicationName() != nullsb.append("ApplicationName: " + getApplicationName() + ",");
        if (getVersionLabel() != nullsb.append("VersionLabel: " + getVersionLabel() + ",");
        if (getSolutionStackName() != nullsb.append("SolutionStackName: " + getSolutionStackName() + ",");
        if (getTemplateName() != nullsb.append("TemplateName: " + getTemplateName() + ",");
        if (getDescription() != nullsb.append("Description: " + getDescription() + ",");
        if (getEndpointURL() != nullsb.append("EndpointURL: " + getEndpointURL() + ",");
        if (getCNAME() != nullsb.append("CNAME: " + getCNAME() + ",");
        if (getDateCreated() != nullsb.append("DateCreated: " + getDateCreated() + ",");
        if (getDateUpdated() != nullsb.append("DateUpdated: " + getDateUpdated() + ",");
        if (getStatus() != nullsb.append("Status: " + getStatus() + ",");
        if (isAbortableOperationInProgress() != nullsb.append("AbortableOperationInProgress: " + isAbortableOperationInProgress() + ",");
        if (getHealth() != nullsb.append("Health: " + getHealth() + ",");
        if (getResources() != nullsb.append("Resources: " + getResources() + ",");
        if (getTier() != nullsb.append("Tier: " + getTier() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getEnvironmentName() == null) ? 0 : getEnvironmentName().hashCode()); 
        hashCode = prime * hashCode + ((getEnvironmentId() == null) ? 0 : getEnvironmentId().hashCode()); 
        hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); 
        hashCode = prime * hashCode + ((getVersionLabel() == null) ? 0 : getVersionLabel().hashCode()); 
        hashCode = prime * hashCode + ((getSolutionStackName() == null) ? 0 : getSolutionStackName().hashCode()); 
        hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode()); 
        hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
        hashCode = prime * hashCode + ((getEndpointURL() == null) ? 0 : getEndpointURL().hashCode()); 
        hashCode = prime * hashCode + ((getCNAME() == null) ? 0 : getCNAME().hashCode()); 
        hashCode = prime * hashCode + ((getDateCreated() == null) ? 0 : getDateCreated().hashCode()); 
        hashCode = prime * hashCode + ((getDateUpdated() == null) ? 0 : getDateUpdated().hashCode()); 
        hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); 
        hashCode = prime * hashCode + ((isAbortableOperationInProgress() == null) ? 0 : isAbortableOperationInProgress().hashCode()); 
        hashCode = prime * hashCode + ((getHealth() == null) ? 0 : getHealth().hashCode()); 
        hashCode = prime * hashCode + ((getResources() == null) ? 0 : getResources().hashCode()); 
        hashCode = prime * hashCode + ((getTier() == null) ? 0 : getTier().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof TerminateEnvironmentResult == falsereturn false;
        
        if (other.getEnvironmentName() == null ^ this.getEnvironmentName() == nullreturn false;
        if (other.getEnvironmentName() != null && other.getEnvironmentName().equals(this.getEnvironmentName()) == falsereturn false
        if (other.getEnvironmentId() == null ^ this.getEnvironmentId() == nullreturn false;
        if (other.getEnvironmentId() != null && other.getEnvironmentId().equals(this.getEnvironmentId()) == falsereturn false
        if (other.getApplicationName() == null ^ this.getApplicationName() == nullreturn false;
        if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == falsereturn false
        if (other.getVersionLabel() == null ^ this.getVersionLabel() == nullreturn false;
        if (other.getVersionLabel() != null && other.getVersionLabel().equals(this.getVersionLabel()) == falsereturn false
        if (other.getSolutionStackName() == null ^ this.getSolutionStackName() == nullreturn false;
        if (other.getSolutionStackName() != null && other.getSolutionStackName().equals(this.getSolutionStackName()) == falsereturn false
        if (other.getTemplateName() == null ^ this.getTemplateName() == nullreturn false;
        if (other.getTemplateName() != null && other.getTemplateName().equals(this.getTemplateName()) == falsereturn false
        if (other.getDescription() == null ^ this.getDescription() == nullreturn false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == falsereturn false
        if (other.getEndpointURL() == null ^ this.getEndpointURL() == nullreturn false;
        if (other.getEndpointURL() != null && other.getEndpointURL().equals(this.getEndpointURL()) == falsereturn false
        if (other.getCNAME() == null ^ this.getCNAME() == nullreturn false;
        if (other.getCNAME() != null && other.getCNAME().equals(this.getCNAME()) == falsereturn false
        if (other.getDateCreated() == null ^ this.getDateCreated() == nullreturn false;
        if (other.getDateCreated() != null && other.getDateCreated().equals(this.getDateCreated()) == falsereturn false
        if (other.getDateUpdated() == null ^ this.getDateUpdated() == nullreturn false;
        if (other.getDateUpdated() != null && other.getDateUpdated().equals(this.getDateUpdated()) == falsereturn false
        if (other.getStatus() == null ^ this.getStatus() == nullreturn false;
        if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == falsereturn false
        if (other.isAbortableOperationInProgress() == null ^ this.isAbortableOperationInProgress() == nullreturn false;
        if (other.isAbortableOperationInProgress() != null && other.isAbortableOperationInProgress().equals(this.isAbortableOperationInProgress()) == falsereturn false
        if (other.getHealth() == null ^ this.getHealth() == nullreturn false;
        if (other.getHealth() != null && other.getHealth().equals(this.getHealth()) == falsereturn false
        if (other.getResources() == null ^ this.getResources() == nullreturn false;
        if (other.getResources() != null && other.getResources().equals(this.getResources()) == falsereturn false
        if (other.getTier() == null ^ this.getTier() == nullreturn false;
        if (other.getTier() != null && other.getTier().equals(this.getTier()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (TerminateEnvironmentResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X