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

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

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
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 application. *

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

* The name of the application. *

*/ private String applicationName; /** *

* User-defined description of the application. *

*/ private String description; /** *

* The date when the application was created. *

*/ private java.util.Date dateCreated; /** *

* The date when the application was last modified. *

*/ private java.util.Date dateUpdated; /** *

* The names of the versions for this application. *

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

* The names of the configuration templates associated with this * application. *

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

* The name of the application. *

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

* The name of the application. *

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

* The name of the application. *

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

* User-defined description of the application. *

* * @param description * User-defined description of the application. */ public void setDescription(String description) { this.description = description; } /** *

* User-defined description of the application. *

* * @return User-defined description of the application. */ public String getDescription() { return this.description; } /** *

* User-defined description of the application. *

* * @param description * User-defined description of the application. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplicationDescription withDescription(String description) { setDescription(description); return this; } /** *

* The date when the application was created. *

* * @param dateCreated * The date when the application was created. */ public void setDateCreated(java.util.Date dateCreated) { this.dateCreated = dateCreated; } /** *

* The date when the application was created. *

* * @return The date when the application was created. */ public java.util.Date getDateCreated() { return this.dateCreated; } /** *

* The date when the application was created. *

* * @param dateCreated * The date when the application was created. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplicationDescription withDateCreated(java.util.Date dateCreated) { setDateCreated(dateCreated); return this; } /** *

* The date when the application was last modified. *

* * @param dateUpdated * The date when the application was last modified. */ public void setDateUpdated(java.util.Date dateUpdated) { this.dateUpdated = dateUpdated; } /** *

* The date when the application was last modified. *

* * @return The date when the application was last modified. */ public java.util.Date getDateUpdated() { return this.dateUpdated; } /** *

* The date when the application was last modified. *

* * @param dateUpdated * The date when the application was last modified. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplicationDescription withDateUpdated(java.util.Date dateUpdated) { setDateUpdated(dateUpdated); return this; } /** *

* The names of the versions for this application. *

* * @return The names of the versions for this application. */ public java.util.List getVersions() { if (versions == null) { versions = new com.amazonaws.internal.SdkInternalList(); } return versions; } /** *

* The names of the versions for this application. *

* * @param versions * The names of the versions for this application. */ public void setVersions(java.util.Collection versions) { if (versions == null) { this.versions = null; return; } this.versions = new com.amazonaws.internal.SdkInternalList( versions); } /** *

* The names of the versions for this application. *

*

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

* * @param versions * The names of the versions for this application. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplicationDescription withVersions(String... versions) { if (this.versions == null) { setVersions(new com.amazonaws.internal.SdkInternalList( versions.length)); } for (String ele : versions) { this.versions.add(ele); } return this; } /** *

* The names of the versions for this application. *

* * @param versions * The names of the versions for this application. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplicationDescription withVersions( java.util.Collection versions) { setVersions(versions); return this; } /** *

* The names of the configuration templates associated with this * application. *

* * @return The names of the configuration templates associated with this * application. */ public java.util.List getConfigurationTemplates() { if (configurationTemplates == null) { configurationTemplates = new com.amazonaws.internal.SdkInternalList(); } return configurationTemplates; } /** *

* The names of the configuration templates associated with this * application. *

* * @param configurationTemplates * The names of the configuration templates associated with this * application. */ public void setConfigurationTemplates( java.util.Collection configurationTemplates) { if (configurationTemplates == null) { this.configurationTemplates = null; return; } this.configurationTemplates = new com.amazonaws.internal.SdkInternalList( configurationTemplates); } /** *

* The names of the configuration templates associated with this * application. *

*

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

* * @param configurationTemplates * The names of the configuration templates associated with this * application. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplicationDescription withConfigurationTemplates( String... configurationTemplates) { if (this.configurationTemplates == null) { setConfigurationTemplates(new com.amazonaws.internal.SdkInternalList( configurationTemplates.length)); } for (String ele : configurationTemplates) { this.configurationTemplates.add(ele); } return this; } /** *

* The names of the configuration templates associated with this * application. *

* * @param configurationTemplates * The names of the configuration templates associated with this * application. * @return Returns a reference to this object so that method calls can be * chained together. */ public ApplicationDescription withConfigurationTemplates( java.util.Collection configurationTemplates) { setConfigurationTemplates(configurationTemplates); 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 (getApplicationName() != null) sb.append("ApplicationName: " + getApplicationName() + ","); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getDateCreated() != null) sb.append("DateCreated: " + getDateCreated() + ","); if (getDateUpdated() != null) sb.append("DateUpdated: " + getDateUpdated() + ","); if (getVersions() != null) sb.append("Versions: " + getVersions() + ","); if (getConfigurationTemplates() != null) sb.append("ConfigurationTemplates: " + getConfigurationTemplates()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ApplicationDescription == false) return false; ApplicationDescription other = (ApplicationDescription) obj; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == 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.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.getVersions() == null ^ this.getVersions() == null) return false; if (other.getVersions() != null && other.getVersions().equals(this.getVersions()) == false) return false; if (other.getConfigurationTemplates() == null ^ this.getConfigurationTemplates() == null) return false; if (other.getConfigurationTemplates() != null && other.getConfigurationTemplates().equals( this.getConfigurationTemplates()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName() .hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDateCreated() == null) ? 0 : getDateCreated().hashCode()); hashCode = prime * hashCode + ((getDateUpdated() == null) ? 0 : getDateUpdated().hashCode()); hashCode = prime * hashCode + ((getVersions() == null) ? 0 : getVersions().hashCode()); hashCode = prime * hashCode + ((getConfigurationTemplates() == null) ? 0 : getConfigurationTemplates().hashCode()); return hashCode; } @Override public ApplicationDescription clone() { try { return (ApplicationDescription) 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