All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.elasticbeanstalk.model.UpdateEnvironmentResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elastic Beanstalk module holds the client classes that are used for communicating with AWS Elastic Beanstalk Service

There is a newer version: 1.11.7
Show newest version
/*
 * Copyright 2010-2016 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;

import java.io.Serializable;

/**
 * 

* Describes the properties of an environment. *

*/ public class UpdateEnvironmentResult implements Serializable, Cloneable { /** *

* The name of this environment. *

*/ private String environmentName; /** *

* The ID of this environment. *

*/ private String environmentId; /** *

* The name of the application associated with this environment. *

*/ private String applicationName; /** *

* The application version deployed in this environment. *

*/ private String versionLabel; /** *

* The name of the SolutionStack deployed with this * environment. *

*/ private String solutionStackName; /** *

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

*/ private String templateName; /** *

* Describes this environment. *

*/ 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. *

*/ 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.
  • *
*/ 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: *

*
    *
  • 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 *

*/ private String health; /** *

* Returns the health status of the application running in your environment. * For more information, see Health Colors and Statuses. *

*/ private String healthStatus; /** *

* The description of the AWS resources used by this environment. *

*/ private EnvironmentResourcesDescription resources; /** *

* Describes the current tier of this environment. *

*/ private EnvironmentTier tier; /** *

* A list of links to other environments in the same group. *

*/ private com.amazonaws.internal.SdkInternalList environmentLinks; /** *

* The name of this environment. *

* * @param environmentName * The name of this environment. */ public void setEnvironmentName(String environmentName) { this.environmentName = environmentName; } /** *

* The name of this environment. *

* * @return The name of this environment. */ public String getEnvironmentName() { return this.environmentName; } /** *

* The name of this environment. *

* * @param environmentName * The name of this environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withEnvironmentName(String environmentName) { setEnvironmentName(environmentName); return this; } /** *

* The ID of this environment. *

* * @param environmentId * The ID of this environment. */ public void setEnvironmentId(String environmentId) { this.environmentId = environmentId; } /** *

* The ID of this environment. *

* * @return The ID of this environment. */ public String getEnvironmentId() { return this.environmentId; } /** *

* The ID of this environment. *

* * @param environmentId * The ID of this environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withEnvironmentId(String environmentId) { setEnvironmentId(environmentId); return this; } /** *

* The name of the application associated with this environment. *

* * @param applicationName * The name of the application associated with this environment. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** *

* The name of the application associated with this environment. *

* * @return The name of the application associated with this environment. */ public String getApplicationName() { return this.applicationName; } /** *

* The name of the application associated with this environment. *

* * @param applicationName * The name of the application associated with this environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** *

* The application version deployed in this environment. *

* * @param versionLabel * The application version deployed in this environment. */ public void setVersionLabel(String versionLabel) { this.versionLabel = versionLabel; } /** *

* The application version deployed in this environment. *

* * @return The application version deployed in this environment. */ public String getVersionLabel() { return this.versionLabel; } /** *

* The application version deployed in this environment. *

* * @param versionLabel * The application version deployed in this environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withVersionLabel(String versionLabel) { setVersionLabel(versionLabel); return this; } /** *

* The name of the SolutionStack deployed with this * environment. *

* * @param solutionStackName * The name of the SolutionStack deployed with this * environment. */ public void setSolutionStackName(String solutionStackName) { this.solutionStackName = solutionStackName; } /** *

* The name of the SolutionStack deployed with this * environment. *

* * @return The name of the SolutionStack deployed with this * environment. */ public String getSolutionStackName() { return this.solutionStackName; } /** *

* The name of the SolutionStack deployed with this * environment. *

* * @param solutionStackName * The name of the SolutionStack deployed with this * environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withSolutionStackName( String solutionStackName) { setSolutionStackName(solutionStackName); return this; } /** *

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

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

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

* * @return The name of the configuration template used to originally launch * this environment. */ public String getTemplateName() { return this.templateName; } /** *

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

* * @param templateName * The name of the configuration template used to originally launch * this environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withTemplateName(String templateName) { setTemplateName(templateName); return this; } /** *

* Describes this environment. *

* * @param description * Describes this environment. */ public void setDescription(String description) { this.description = description; } /** *

* Describes this environment. *

* * @return Describes this environment. */ public String getDescription() { return this.description; } /** *

* Describes this environment. *

* * @param description * Describes this environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withDescription(String description) { setDescription(description); return this; } /** *

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

* * @param 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 = endpointURL; } /** *

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

* * @return For load-balanced, autoscaling environments, the URL to the * LoadBalancer. For single-instance environments, the IP address of * the instance. */ public String getEndpointURL() { return this.endpointURL; } /** *

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

* * @param endpointURL * For load-balanced, autoscaling environments, the URL to the * LoadBalancer. For single-instance environments, the IP address of * the instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withEndpointURL(String endpointURL) { setEndpointURL(endpointURL); return this; } /** *

* The URL to the CNAME for this environment. *

* * @param cNAME * The URL to the CNAME for this environment. */ public void setCNAME(String cNAME) { this.cNAME = cNAME; } /** *

* The URL to the CNAME for this environment. *

* * @return The URL to the CNAME for this environment. */ public String getCNAME() { return this.cNAME; } /** *

* The URL to the CNAME for this environment. *

* * @param cNAME * The URL to the CNAME for this environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withCNAME(String cNAME) { setCNAME(cNAME); return this; } /** *

* The creation date for this environment. *

* * @param dateCreated * The creation date for this environment. */ public void setDateCreated(java.util.Date dateCreated) { this.dateCreated = dateCreated; } /** *

* The creation date for this environment. *

* * @return The creation date for this environment. */ public java.util.Date getDateCreated() { return this.dateCreated; } /** *

* The creation date for this environment. *

* * @param dateCreated * The creation date for this environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withDateCreated(java.util.Date dateCreated) { setDateCreated(dateCreated); return this; } /** *

* The last modified date for this environment. *

* * @param dateUpdated * The last modified date for this environment. */ public void setDateUpdated(java.util.Date dateUpdated) { this.dateUpdated = dateUpdated; } /** *

* The last modified date for this environment. *

* * @return The last modified date for this environment. */ public java.util.Date getDateUpdated() { return this.dateUpdated; } /** *

* The last modified date for this environment. *

* * @param dateUpdated * The last modified date for this environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withDateUpdated(java.util.Date dateUpdated) { setDateUpdated(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.
  • *
* * @param 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 EnvironmentStatus */ public void setStatus(String status) { this.status = 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.
    • *
    * * @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.
    • * @see EnvironmentStatus */ public String getStatus() { return 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.
      • *
      * * @param 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.
      • * @return Returns a reference to this object so that method calls can be * chained together. * @see EnvironmentStatus */ public UpdateEnvironmentResult withStatus(String status) { setStatus(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.
        • *
        * * @param 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 EnvironmentStatus */ public void setStatus(EnvironmentStatus status) { this.status = 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.
          • *
          * * @param 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.
          • * @return Returns a reference to this object so that method calls can be * chained together. * @see EnvironmentStatus */ public UpdateEnvironmentResult withStatus(EnvironmentStatus status) { setStatus(status); 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. *

            * * @param 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 = 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. *

            * * @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. */ public Boolean getAbortableOperationInProgress() { return 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. *

            * * @param 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. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withAbortableOperationInProgress( Boolean abortableOperationInProgress) { setAbortableOperationInProgress(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. *

            * * @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. */ public Boolean isAbortableOperationInProgress() { return this.abortableOperationInProgress; } /** *

            * Describes the health status of the environment. AWS Elastic Beanstalk * indicates the failure levels for a running environment: *

            *
              *
            • 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 *

            * * @param health * Describes the health status of the environment. AWS Elastic * Beanstalk indicates the failure levels for a running environment: *

            *
              *
            • 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 EnvironmentHealth */ public void setHealth(String health) { this.health = health; } /** *

            * Describes the health status of the environment. AWS Elastic Beanstalk * indicates the failure levels for a running environment: *

            *
              *
            • 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 *

            * * @return Describes the health status of the environment. AWS Elastic * Beanstalk indicates the failure levels for a running environment: *

            *
              *
            • 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 EnvironmentHealth */ public String getHealth() { return this.health; } /** *

            * Describes the health status of the environment. AWS Elastic Beanstalk * indicates the failure levels for a running environment: *

            *
              *
            • 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 *

            * * @param health * Describes the health status of the environment. AWS Elastic * Beanstalk indicates the failure levels for a running environment: *

            *
              *
            • 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 * @return Returns a reference to this object so that method calls can be * chained together. * @see EnvironmentHealth */ public UpdateEnvironmentResult withHealth(String health) { setHealth(health); return this; } /** *

            * Describes the health status of the environment. AWS Elastic Beanstalk * indicates the failure levels for a running environment: *

            *
              *
            • 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 *

            * * @param health * Describes the health status of the environment. AWS Elastic * Beanstalk indicates the failure levels for a running environment: *

            *
              *
            • 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 EnvironmentHealth */ public void setHealth(EnvironmentHealth health) { this.health = health.toString(); } /** *

            * Describes the health status of the environment. AWS Elastic Beanstalk * indicates the failure levels for a running environment: *

            *
              *
            • 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 *

            * * @param health * Describes the health status of the environment. AWS Elastic * Beanstalk indicates the failure levels for a running environment: *

            *
              *
            • 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 * @return Returns a reference to this object so that method calls can be * chained together. * @see EnvironmentHealth */ public UpdateEnvironmentResult withHealth(EnvironmentHealth health) { setHealth(health); return this; } /** *

            * Returns the health status of the application running in your environment. * For more information, see Health Colors and Statuses. *

            * * @param healthStatus * Returns the health status of the application running in your * environment. For more information, see Health Colors and Statuses. * @see EnvironmentHealthStatus */ public void setHealthStatus(String healthStatus) { this.healthStatus = healthStatus; } /** *

            * Returns the health status of the application running in your environment. * For more information, see Health Colors and Statuses. *

            * * @return Returns the health status of the application running in your * environment. For more information, see Health Colors and Statuses. * @see EnvironmentHealthStatus */ public String getHealthStatus() { return this.healthStatus; } /** *

            * Returns the health status of the application running in your environment. * For more information, see Health Colors and Statuses. *

            * * @param healthStatus * Returns the health status of the application running in your * environment. For more information, see Health Colors and Statuses. * @return Returns a reference to this object so that method calls can be * chained together. * @see EnvironmentHealthStatus */ public UpdateEnvironmentResult withHealthStatus(String healthStatus) { setHealthStatus(healthStatus); return this; } /** *

            * Returns the health status of the application running in your environment. * For more information, see Health Colors and Statuses. *

            * * @param healthStatus * Returns the health status of the application running in your * environment. For more information, see Health Colors and Statuses. * @see EnvironmentHealthStatus */ public void setHealthStatus(EnvironmentHealthStatus healthStatus) { this.healthStatus = healthStatus.toString(); } /** *

            * Returns the health status of the application running in your environment. * For more information, see Health Colors and Statuses. *

            * * @param healthStatus * Returns the health status of the application running in your * environment. For more information, see Health Colors and Statuses. * @return Returns a reference to this object so that method calls can be * chained together. * @see EnvironmentHealthStatus */ public UpdateEnvironmentResult withHealthStatus( EnvironmentHealthStatus healthStatus) { setHealthStatus(healthStatus); return this; } /** *

            * The description of the AWS resources used by this environment. *

            * * @param resources * The description of the AWS resources used by this environment. */ public void setResources(EnvironmentResourcesDescription resources) { this.resources = resources; } /** *

            * The description of the AWS resources used by this environment. *

            * * @return The description of the AWS resources used by this environment. */ public EnvironmentResourcesDescription getResources() { return this.resources; } /** *

            * The description of the AWS resources used by this environment. *

            * * @param resources * The description of the AWS resources used by this environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withResources( EnvironmentResourcesDescription resources) { setResources(resources); return this; } /** *

            * Describes the current tier of this environment. *

            * * @param tier * Describes the current tier of this environment. */ public void setTier(EnvironmentTier tier) { this.tier = tier; } /** *

            * Describes the current tier of this environment. *

            * * @return Describes the current tier of this environment. */ public EnvironmentTier getTier() { return this.tier; } /** *

            * Describes the current tier of this environment. *

            * * @param tier * Describes the current tier of this environment. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withTier(EnvironmentTier tier) { setTier(tier); return this; } /** *

            * A list of links to other environments in the same group. *

            * * @return A list of links to other environments in the same group. */ public java.util.List getEnvironmentLinks() { if (environmentLinks == null) { environmentLinks = new com.amazonaws.internal.SdkInternalList(); } return environmentLinks; } /** *

            * A list of links to other environments in the same group. *

            * * @param environmentLinks * A list of links to other environments in the same group. */ public void setEnvironmentLinks( java.util.Collection environmentLinks) { if (environmentLinks == null) { this.environmentLinks = null; return; } this.environmentLinks = new com.amazonaws.internal.SdkInternalList( environmentLinks); } /** *

            * A list of links to other environments in the same group. *

            *

            * NOTE: This method appends the values to the existing list (if * any). Use {@link #setEnvironmentLinks(java.util.Collection)} or * {@link #withEnvironmentLinks(java.util.Collection)} if you want to * override the existing values. *

            * * @param environmentLinks * A list of links to other environments in the same group. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withEnvironmentLinks( EnvironmentLink... environmentLinks) { if (this.environmentLinks == null) { setEnvironmentLinks(new com.amazonaws.internal.SdkInternalList( environmentLinks.length)); } for (EnvironmentLink ele : environmentLinks) { this.environmentLinks.add(ele); } return this; } /** *

            * A list of links to other environments in the same group. *

            * * @param environmentLinks * A list of links to other environments in the same group. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateEnvironmentResult withEnvironmentLinks( java.util.Collection environmentLinks) { setEnvironmentLinks(environmentLinks); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEnvironmentName() != null) sb.append("EnvironmentName: " + getEnvironmentName() + ","); if (getEnvironmentId() != null) sb.append("EnvironmentId: " + getEnvironmentId() + ","); if (getApplicationName() != null) sb.append("ApplicationName: " + getApplicationName() + ","); if (getVersionLabel() != null) sb.append("VersionLabel: " + getVersionLabel() + ","); if (getSolutionStackName() != null) sb.append("SolutionStackName: " + getSolutionStackName() + ","); if (getTemplateName() != null) sb.append("TemplateName: " + getTemplateName() + ","); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getEndpointURL() != null) sb.append("EndpointURL: " + getEndpointURL() + ","); if (getCNAME() != null) sb.append("CNAME: " + getCNAME() + ","); if (getDateCreated() != null) sb.append("DateCreated: " + getDateCreated() + ","); if (getDateUpdated() != null) sb.append("DateUpdated: " + getDateUpdated() + ","); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getAbortableOperationInProgress() != null) sb.append("AbortableOperationInProgress: " + getAbortableOperationInProgress() + ","); if (getHealth() != null) sb.append("Health: " + getHealth() + ","); if (getHealthStatus() != null) sb.append("HealthStatus: " + getHealthStatus() + ","); if (getResources() != null) sb.append("Resources: " + getResources() + ","); if (getTier() != null) sb.append("Tier: " + getTier() + ","); if (getEnvironmentLinks() != null) sb.append("EnvironmentLinks: " + getEnvironmentLinks()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateEnvironmentResult == false) return false; UpdateEnvironmentResult other = (UpdateEnvironmentResult) obj; if (other.getEnvironmentName() == null ^ this.getEnvironmentName() == null) return false; if (other.getEnvironmentName() != null && other.getEnvironmentName().equals(this.getEnvironmentName()) == false) return false; if (other.getEnvironmentId() == null ^ this.getEnvironmentId() == null) return false; if (other.getEnvironmentId() != null && other.getEnvironmentId().equals(this.getEnvironmentId()) == false) return false; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == false) return false; if (other.getVersionLabel() == null ^ this.getVersionLabel() == null) return false; if (other.getVersionLabel() != null && other.getVersionLabel().equals(this.getVersionLabel()) == false) return false; if (other.getSolutionStackName() == null ^ this.getSolutionStackName() == null) return false; if (other.getSolutionStackName() != null && other.getSolutionStackName().equals( this.getSolutionStackName()) == false) return false; if (other.getTemplateName() == null ^ this.getTemplateName() == null) return false; if (other.getTemplateName() != null && other.getTemplateName().equals(this.getTemplateName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getEndpointURL() == null ^ this.getEndpointURL() == null) return false; if (other.getEndpointURL() != null && other.getEndpointURL().equals(this.getEndpointURL()) == false) return false; if (other.getCNAME() == null ^ this.getCNAME() == null) return false; if (other.getCNAME() != null && other.getCNAME().equals(this.getCNAME()) == false) return false; if (other.getDateCreated() == null ^ this.getDateCreated() == null) return false; if (other.getDateCreated() != null && other.getDateCreated().equals(this.getDateCreated()) == false) return false; if (other.getDateUpdated() == null ^ this.getDateUpdated() == null) return false; if (other.getDateUpdated() != null && other.getDateUpdated().equals(this.getDateUpdated()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getAbortableOperationInProgress() == null ^ this.getAbortableOperationInProgress() == null) return false; if (other.getAbortableOperationInProgress() != null && other.getAbortableOperationInProgress().equals( this.getAbortableOperationInProgress()) == false) return false; if (other.getHealth() == null ^ this.getHealth() == null) return false; if (other.getHealth() != null && other.getHealth().equals(this.getHealth()) == false) return false; if (other.getHealthStatus() == null ^ this.getHealthStatus() == null) return false; if (other.getHealthStatus() != null && other.getHealthStatus().equals(this.getHealthStatus()) == false) return false; if (other.getResources() == null ^ this.getResources() == null) return false; if (other.getResources() != null && other.getResources().equals(this.getResources()) == false) return false; if (other.getTier() == null ^ this.getTier() == null) return false; if (other.getTier() != null && other.getTier().equals(this.getTier()) == false) return false; if (other.getEnvironmentLinks() == null ^ this.getEnvironmentLinks() == null) return false; if (other.getEnvironmentLinks() != null && other.getEnvironmentLinks().equals( this.getEnvironmentLinks()) == false) return false; return true; } @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 + ((getAbortableOperationInProgress() == null) ? 0 : getAbortableOperationInProgress().hashCode()); hashCode = prime * hashCode + ((getHealth() == null) ? 0 : getHealth().hashCode()); hashCode = prime * hashCode + ((getHealthStatus() == null) ? 0 : getHealthStatus() .hashCode()); hashCode = prime * hashCode + ((getResources() == null) ? 0 : getResources().hashCode()); hashCode = prime * hashCode + ((getTier() == null) ? 0 : getTier().hashCode()); hashCode = prime * hashCode + ((getEnvironmentLinks() == null) ? 0 : getEnvironmentLinks() .hashCode()); return hashCode; } @Override public UpdateEnvironmentResult clone() { try { return (UpdateEnvironmentResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy