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

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

/*
 * Copyright 2010-2014 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 EnvironmentDescription implements Serializable { /** * 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; /** * Describes the health status of the environment. AWS Elastic Beanstalk * indicates the failure levels for a running environment: *

Red : Indicates the environment is * not working.

Yellow: * Indicates that something is wrong, the application might not be * available, but the instances appear running.

Green: Indicates the environment is * healthy and fully functional.

  • * 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
* * @return The name of this environment. */ public String getEnvironmentName() { return environmentName; } /** * The name of this environment. *

* Constraints:
* Length: 4 - 23
* * @param environmentName The name of this environment. */ public void setEnvironmentName(String environmentName) { this.environmentName = environmentName; } /** * The name of this environment. *

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

* Constraints:
* Length: 4 - 23
* * @param environmentName The name of this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withEnvironmentName(String environmentName) { this.environmentName = environmentName; return this; } /** * The ID of this environment. * * @return The ID of this environment. */ public String getEnvironmentId() { return environmentId; } /** * 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. *

* Returns a reference to this object so that method calls can be chained together. * * @param environmentId The ID of this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withEnvironmentId(String environmentId) { this.environmentId = environmentId; return this; } /** * The name of the application associated with this environment. *

* Constraints:
* Length: 1 - 100
* * @return The name of the application associated with this environment. */ public String getApplicationName() { return applicationName; } /** * The name of the application associated with this environment. *

* Constraints:
* Length: 1 - 100
* * @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. *

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

* Constraints:
* Length: 1 - 100
* * @param applicationName The name of the application associated with this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withApplicationName(String applicationName) { this.applicationName = applicationName; return this; } /** * The application version deployed in this environment. *

* Constraints:
* Length: 1 - 100
* * @return The application version deployed in this environment. */ public String getVersionLabel() { return versionLabel; } /** * The application version deployed in this environment. *

* Constraints:
* Length: 1 - 100
* * @param versionLabel The application version deployed in this environment. */ public void setVersionLabel(String versionLabel) { this.versionLabel = 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
* * @param versionLabel The application version deployed in this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withVersionLabel(String versionLabel) { this.versionLabel = versionLabel; return this; } /** * The name of the SolutionStack deployed with this * environment. *

* Constraints:
* Length: 0 - 100
* * @return The name of the SolutionStack deployed with this * environment. */ public String getSolutionStackName() { return solutionStackName; } /** * The name of the SolutionStack deployed with this * environment. *

* Constraints:
* Length: 0 - 100
* * @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. *

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

* Constraints:
* Length: 0 - 100
* * @param solutionStackName The name of the SolutionStack deployed with this * environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withSolutionStackName(String solutionStackName) { this.solutionStackName = solutionStackName; return this; } /** * The name of the configuration template used to originally launch this * environment. *

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

* Constraints:
* Length: 1 - 100
* * @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. *

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

* Constraints:
* Length: 1 - 100
* * @param templateName The name of the configuration template used to originally launch this * environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withTemplateName(String templateName) { this.templateName = templateName; return this; } /** * Describes this environment. *

* Constraints:
* Length: 0 - 200
* * @return Describes this environment. */ public String getDescription() { return description; } /** * Describes this environment. *

* Constraints:
* Length: 0 - 200
* * @param description Describes this environment. */ public void setDescription(String description) { this.description = description; } /** * Describes this environment. *

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

* Constraints:
* Length: 0 - 200
* * @param description Describes this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withDescription(String description) { this.description = description; return this; } /** * 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 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. */ 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. *

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

* Constraints:
* Length: 1 - 255
* * @return The URL to the CNAME for this environment. */ public String getCNAME() { return cNAME; } /** * The URL to the CNAME for this environment. *

* Constraints:
* Length: 1 - 255
* * @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. *

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

* Constraints:
* Length: 1 - 255
* * @param cNAME The URL to the CNAME for this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withCNAME(String cNAME) { this.cNAME = cNAME; return this; } /** * The creation date for this environment. * * @return The creation date for this environment. */ public java.util.Date getDateCreated() { return dateCreated; } /** * 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. *

* Returns a reference to this object so that method calls can be chained together. * * @param dateCreated The creation date for this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withDateCreated(java.util.Date dateCreated) { this.dateCreated = dateCreated; return this; } /** * The last modified date for this environment. * * @return The last modified date for this environment. */ public java.util.Date getDateUpdated() { return dateUpdated; } /** * 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. *

* Returns a reference to this object so that method calls can be chained together. * * @param dateUpdated The last modified date for this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withDateUpdated(java.util.Date dateUpdated) { this.dateUpdated = 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 * * @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 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.
  • *
*

* Constraints:
* Allowed Values: Launching, Updating, Ready, Terminating, Terminated * * @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.
  • *
*

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

* Constraints:
* Allowed Values: Launching, Updating, Ready, Terminating, Terminated * * @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 A reference to this updated object so that method calls can be chained * together. * * @see EnvironmentStatus */ public EnvironmentDescription withStatus(String status) { this.status = 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 * * @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.
  • *
*

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

* Constraints:
* Allowed Values: Launching, Updating, Ready, Terminating, Terminated * * @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 A reference to this updated object so that method calls can be chained * together. * * @see EnvironmentStatus */ public EnvironmentDescription withStatus(EnvironmentStatus status) { this.status = status.toString(); 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 working.

Yellow: * Indicates that something is wrong, the application might not be * available, but the instances appear running.

Green: Indicates the environment is * healthy and fully functional.

  • * 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 * * @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 working.

Yellow: * Indicates that something is wrong, the application might not be * available, but the instances appear running.

Green: Indicates the environment is * healthy and fully functional.

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

Yellow: * Indicates that something is wrong, the application might not be * available, but the instances appear running.

Green: Indicates the environment is * healthy and fully functional.

  • * 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 * * @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 working.

Yellow: * Indicates that something is wrong, the application might not be * available, but the instances appear running.

Green: Indicates the environment is * healthy and fully functional.

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

Yellow: * Indicates that something is wrong, the application might not be * available, but the instances appear running.

Green: Indicates the environment is * healthy and fully functional.

  • * 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 * * @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 working.

Yellow: * Indicates that something is wrong, the application might not be * available, but the instances appear running.

Green: Indicates the environment is * healthy and fully functional.

  • * 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 A reference to this updated object so that method calls can be chained * together. * * @see EnvironmentHealth */ public EnvironmentDescription withHealth(String health) { this.health = 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 working.

Yellow: * Indicates that something is wrong, the application might not be * available, but the instances appear running.

Green: Indicates the environment is * healthy and fully functional.

  • * 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 * * @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 working.

Yellow: * Indicates that something is wrong, the application might not be * available, but the instances appear running.

Green: Indicates the environment is * healthy and fully functional.

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

Yellow: * Indicates that something is wrong, the application might not be * available, but the instances appear running.

Green: Indicates the environment is * healthy and fully functional.

  • * 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 * * @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 working.

Yellow: * Indicates that something is wrong, the application might not be * available, but the instances appear running.

Green: Indicates the environment is * healthy and fully functional.

  • * 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 A reference to this updated object so that method calls can be chained * together. * * @see EnvironmentHealth */ public EnvironmentDescription withHealth(EnvironmentHealth health) { this.health = health.toString(); return this; } /** * 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 resources; } /** * 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. *

* Returns a reference to this object so that method calls can be chained together. * * @param resources The description of the AWS resources used by this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withResources(EnvironmentResourcesDescription resources) { this.resources = resources; return this; } /** * Describes the current tier of this environment. * * @return Describes the current tier of this environment. */ public EnvironmentTier getTier() { return tier; } /** * 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. *

* Returns a reference to this object so that method calls can be chained together. * * @param tier Describes the current tier of this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public EnvironmentDescription withTier(EnvironmentTier tier) { this.tier = tier; 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 (getHealth() != null) sb.append("Health: " + getHealth() + ","); if (getResources() != null) sb.append("Resources: " + getResources() + ","); if (getTier() != null) sb.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 + ((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 == obj) return true; if (obj == null) return false; if (obj instanceof EnvironmentDescription == false) return false; EnvironmentDescription other = (EnvironmentDescription)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.getHealth() == null ^ this.getHealth() == null) return false; if (other.getHealth() != null && other.getHealth().equals(this.getHealth()) == 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; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy