
com.amazonaws.services.opsworks.model.CreateAppRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-opsworks Show documentation
/*
* Copyright 2011-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.opsworks.model;
import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
*/
public class CreateAppRequest extends com.amazonaws.AmazonWebServiceRequest
implements Serializable, Cloneable {
/**
*
* The stack ID.
*
*/
private String stackId;
/**
*
* The app's short name.
*
*/
private String shortname;
/**
*
* The app name.
*
*/
private String name;
/**
*
* A description of the app.
*
*/
private String description;
/**
*
* The app's data source.
*
*/
private com.amazonaws.internal.SdkInternalList dataSources;
/**
*
* The app type. Each supported type is associated with a particular layer.
* For example, PHP applications are associated with a PHP layer. AWS
* OpsWorks deploys an application to those instances that are members of
* the corresponding layer. If your app isn't one of the standard types, or
* you prefer to implement your own Deploy recipes, specify
* other
.
*
*/
private String type;
/**
*
* A Source
object that specifies the app repository.
*
*/
private Source appSource;
/**
*
* The app virtual host settings, with multiple domains separated by commas.
* For example: 'www.example.com, example.com'
*
*/
private com.amazonaws.internal.SdkInternalList domains;
/**
*
* Whether to enable SSL for the app.
*
*/
private Boolean enableSsl;
/**
*
* An SslConfiguration
object with the SSL configuration.
*
*/
private SslConfiguration sslConfiguration;
/**
*
* One or more user-defined key/value pairs to be added to the stack
* attributes.
*
*/
private com.amazonaws.internal.SdkInternalMap attributes;
/**
*
* An array of EnvironmentVariable
objects that specify
* environment variables to be associated with the app. After you deploy the
* app, these variables are defined on the associated app server instance.
* For more information, see Environment Variables.
*
*
* There is no specific limit on the number of environment variables.
* However, the size of the associated data structure - which includes the
* variables' names, values, and protected flag values - cannot exceed 10 KB
* (10240 Bytes). This limit should accommodate most if not all use cases.
* Exceeding it will cause an exception with the message,
* "Environment: is too large (maximum is 10KB)."
*
*
*
* This parameter is supported only by Chef 11.10 stacks. If you have
* specified one or more environment variables, you cannot modify the
* stack's Chef version.
*
*
*/
private com.amazonaws.internal.SdkInternalList environment;
/**
*
* The stack ID.
*
*
* @param stackId
* The stack ID.
*/
public void setStackId(String stackId) {
this.stackId = stackId;
}
/**
*
* The stack ID.
*
*
* @return The stack ID.
*/
public String getStackId() {
return this.stackId;
}
/**
*
* The stack ID.
*
*
* @param stackId
* The stack ID.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withStackId(String stackId) {
setStackId(stackId);
return this;
}
/**
*
* The app's short name.
*
*
* @param shortname
* The app's short name.
*/
public void setShortname(String shortname) {
this.shortname = shortname;
}
/**
*
* The app's short name.
*
*
* @return The app's short name.
*/
public String getShortname() {
return this.shortname;
}
/**
*
* The app's short name.
*
*
* @param shortname
* The app's short name.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withShortname(String shortname) {
setShortname(shortname);
return this;
}
/**
*
* The app name.
*
*
* @param name
* The app name.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The app name.
*
*
* @return The app name.
*/
public String getName() {
return this.name;
}
/**
*
* The app name.
*
*
* @param name
* The app name.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withName(String name) {
setName(name);
return this;
}
/**
*
* A description of the app.
*
*
* @param description
* A description of the app.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A description of the app.
*
*
* @return A description of the app.
*/
public String getDescription() {
return this.description;
}
/**
*
* A description of the app.
*
*
* @param description
* A description of the app.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The app's data source.
*
*
* @return The app's data source.
*/
public java.util.List getDataSources() {
if (dataSources == null) {
dataSources = new com.amazonaws.internal.SdkInternalList();
}
return dataSources;
}
/**
*
* The app's data source.
*
*
* @param dataSources
* The app's data source.
*/
public void setDataSources(java.util.Collection dataSources) {
if (dataSources == null) {
this.dataSources = null;
return;
}
this.dataSources = new com.amazonaws.internal.SdkInternalList(
dataSources);
}
/**
*
* The app's data source.
*
*
* NOTE: This method appends the values to the existing list (if
* any). Use {@link #setDataSources(java.util.Collection)} or
* {@link #withDataSources(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param dataSources
* The app's data source.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withDataSources(DataSource... dataSources) {
if (this.dataSources == null) {
setDataSources(new com.amazonaws.internal.SdkInternalList(
dataSources.length));
}
for (DataSource ele : dataSources) {
this.dataSources.add(ele);
}
return this;
}
/**
*
* The app's data source.
*
*
* @param dataSources
* The app's data source.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withDataSources(
java.util.Collection dataSources) {
setDataSources(dataSources);
return this;
}
/**
*
* The app type. Each supported type is associated with a particular layer.
* For example, PHP applications are associated with a PHP layer. AWS
* OpsWorks deploys an application to those instances that are members of
* the corresponding layer. If your app isn't one of the standard types, or
* you prefer to implement your own Deploy recipes, specify
* other
.
*
*
* @param type
* The app type. Each supported type is associated with a particular
* layer. For example, PHP applications are associated with a PHP
* layer. AWS OpsWorks deploys an application to those instances that
* are members of the corresponding layer. If your app isn't one of
* the standard types, or you prefer to implement your own Deploy
* recipes, specify other
.
* @see AppType
*/
public void setType(String type) {
this.type = type;
}
/**
*
* The app type. Each supported type is associated with a particular layer.
* For example, PHP applications are associated with a PHP layer. AWS
* OpsWorks deploys an application to those instances that are members of
* the corresponding layer. If your app isn't one of the standard types, or
* you prefer to implement your own Deploy recipes, specify
* other
.
*
*
* @return The app type. Each supported type is associated with a particular
* layer. For example, PHP applications are associated with a PHP
* layer. AWS OpsWorks deploys an application to those instances
* that are members of the corresponding layer. If your app isn't
* one of the standard types, or you prefer to implement your own
* Deploy recipes, specify other
.
* @see AppType
*/
public String getType() {
return this.type;
}
/**
*
* The app type. Each supported type is associated with a particular layer.
* For example, PHP applications are associated with a PHP layer. AWS
* OpsWorks deploys an application to those instances that are members of
* the corresponding layer. If your app isn't one of the standard types, or
* you prefer to implement your own Deploy recipes, specify
* other
.
*
*
* @param type
* The app type. Each supported type is associated with a particular
* layer. For example, PHP applications are associated with a PHP
* layer. AWS OpsWorks deploys an application to those instances that
* are members of the corresponding layer. If your app isn't one of
* the standard types, or you prefer to implement your own Deploy
* recipes, specify other
.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see AppType
*/
public CreateAppRequest withType(String type) {
setType(type);
return this;
}
/**
*
* The app type. Each supported type is associated with a particular layer.
* For example, PHP applications are associated with a PHP layer. AWS
* OpsWorks deploys an application to those instances that are members of
* the corresponding layer. If your app isn't one of the standard types, or
* you prefer to implement your own Deploy recipes, specify
* other
.
*
*
* @param type
* The app type. Each supported type is associated with a particular
* layer. For example, PHP applications are associated with a PHP
* layer. AWS OpsWorks deploys an application to those instances that
* are members of the corresponding layer. If your app isn't one of
* the standard types, or you prefer to implement your own Deploy
* recipes, specify other
.
* @see AppType
*/
public void setType(AppType type) {
this.type = type.toString();
}
/**
*
* The app type. Each supported type is associated with a particular layer.
* For example, PHP applications are associated with a PHP layer. AWS
* OpsWorks deploys an application to those instances that are members of
* the corresponding layer. If your app isn't one of the standard types, or
* you prefer to implement your own Deploy recipes, specify
* other
.
*
*
* @param type
* The app type. Each supported type is associated with a particular
* layer. For example, PHP applications are associated with a PHP
* layer. AWS OpsWorks deploys an application to those instances that
* are members of the corresponding layer. If your app isn't one of
* the standard types, or you prefer to implement your own Deploy
* recipes, specify other
.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see AppType
*/
public CreateAppRequest withType(AppType type) {
setType(type);
return this;
}
/**
*
* A Source
object that specifies the app repository.
*
*
* @param appSource
* A Source
object that specifies the app repository.
*/
public void setAppSource(Source appSource) {
this.appSource = appSource;
}
/**
*
* A Source
object that specifies the app repository.
*
*
* @return A Source
object that specifies the app repository.
*/
public Source getAppSource() {
return this.appSource;
}
/**
*
* A Source
object that specifies the app repository.
*
*
* @param appSource
* A Source
object that specifies the app repository.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withAppSource(Source appSource) {
setAppSource(appSource);
return this;
}
/**
*
* The app virtual host settings, with multiple domains separated by commas.
* For example: 'www.example.com, example.com'
*
*
* @return The app virtual host settings, with multiple domains separated by
* commas. For example: 'www.example.com, example.com'
*/
public java.util.List getDomains() {
if (domains == null) {
domains = new com.amazonaws.internal.SdkInternalList();
}
return domains;
}
/**
*
* The app virtual host settings, with multiple domains separated by commas.
* For example: 'www.example.com, example.com'
*
*
* @param domains
* The app virtual host settings, with multiple domains separated by
* commas. For example: 'www.example.com, example.com'
*/
public void setDomains(java.util.Collection domains) {
if (domains == null) {
this.domains = null;
return;
}
this.domains = new com.amazonaws.internal.SdkInternalList(
domains);
}
/**
*
* The app virtual host settings, with multiple domains separated by commas.
* For example: 'www.example.com, example.com'
*
*
* NOTE: This method appends the values to the existing list (if
* any). Use {@link #setDomains(java.util.Collection)} or
* {@link #withDomains(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param domains
* The app virtual host settings, with multiple domains separated by
* commas. For example: 'www.example.com, example.com'
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withDomains(String... domains) {
if (this.domains == null) {
setDomains(new com.amazonaws.internal.SdkInternalList(
domains.length));
}
for (String ele : domains) {
this.domains.add(ele);
}
return this;
}
/**
*
* The app virtual host settings, with multiple domains separated by commas.
* For example: 'www.example.com, example.com'
*
*
* @param domains
* The app virtual host settings, with multiple domains separated by
* commas. For example: 'www.example.com, example.com'
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withDomains(java.util.Collection domains) {
setDomains(domains);
return this;
}
/**
*
* Whether to enable SSL for the app.
*
*
* @param enableSsl
* Whether to enable SSL for the app.
*/
public void setEnableSsl(Boolean enableSsl) {
this.enableSsl = enableSsl;
}
/**
*
* Whether to enable SSL for the app.
*
*
* @return Whether to enable SSL for the app.
*/
public Boolean getEnableSsl() {
return this.enableSsl;
}
/**
*
* Whether to enable SSL for the app.
*
*
* @param enableSsl
* Whether to enable SSL for the app.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withEnableSsl(Boolean enableSsl) {
setEnableSsl(enableSsl);
return this;
}
/**
*
* Whether to enable SSL for the app.
*
*
* @return Whether to enable SSL for the app.
*/
public Boolean isEnableSsl() {
return this.enableSsl;
}
/**
*
* An SslConfiguration
object with the SSL configuration.
*
*
* @param sslConfiguration
* An SslConfiguration
object with the SSL
* configuration.
*/
public void setSslConfiguration(SslConfiguration sslConfiguration) {
this.sslConfiguration = sslConfiguration;
}
/**
*
* An SslConfiguration
object with the SSL configuration.
*
*
* @return An SslConfiguration
object with the SSL
* configuration.
*/
public SslConfiguration getSslConfiguration() {
return this.sslConfiguration;
}
/**
*
* An SslConfiguration
object with the SSL configuration.
*
*
* @param sslConfiguration
* An SslConfiguration
object with the SSL
* configuration.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withSslConfiguration(
SslConfiguration sslConfiguration) {
setSslConfiguration(sslConfiguration);
return this;
}
/**
*
* One or more user-defined key/value pairs to be added to the stack
* attributes.
*
*
* @return One or more user-defined key/value pairs to be added to the stack
* attributes.
*/
public java.util.Map getAttributes() {
if (attributes == null) {
attributes = new com.amazonaws.internal.SdkInternalMap();
}
return attributes;
}
/**
*
* One or more user-defined key/value pairs to be added to the stack
* attributes.
*
*
* @param attributes
* One or more user-defined key/value pairs to be added to the stack
* attributes.
*/
public void setAttributes(java.util.Map attributes) {
this.attributes = attributes == null ? null
: new com.amazonaws.internal.SdkInternalMap(
attributes);
}
/**
*
* One or more user-defined key/value pairs to be added to the stack
* attributes.
*
*
* @param attributes
* One or more user-defined key/value pairs to be added to the stack
* attributes.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withAttributes(
java.util.Map attributes) {
setAttributes(attributes);
return this;
}
public CreateAppRequest addAttributesEntry(String key, String value) {
if (null == this.attributes) {
this.attributes = new com.amazonaws.internal.SdkInternalMap();
}
if (this.attributes.containsKey(key))
throw new IllegalArgumentException("Duplicated keys ("
+ key.toString() + ") are provided.");
this.attributes.put(key, value);
return this;
}
/**
* Removes all the entries added into Attributes. <p> Returns a reference
* to this object so that method calls can be chained together.
*/
public CreateAppRequest clearAttributesEntries() {
this.attributes = null;
return this;
}
/**
*
* An array of EnvironmentVariable
objects that specify
* environment variables to be associated with the app. After you deploy the
* app, these variables are defined on the associated app server instance.
* For more information, see Environment Variables.
*
*
* There is no specific limit on the number of environment variables.
* However, the size of the associated data structure - which includes the
* variables' names, values, and protected flag values - cannot exceed 10 KB
* (10240 Bytes). This limit should accommodate most if not all use cases.
* Exceeding it will cause an exception with the message,
* "Environment: is too large (maximum is 10KB)."
*
*
*
* This parameter is supported only by Chef 11.10 stacks. If you have
* specified one or more environment variables, you cannot modify the
* stack's Chef version.
*
*
*
* @return An array of EnvironmentVariable
objects that specify
* environment variables to be associated with the app. After you
* deploy the app, these variables are defined on the associated app
* server instance. For more information, see Environment Variables.
*
* There is no specific limit on the number of environment
* variables. However, the size of the associated data structure -
* which includes the variables' names, values, and protected flag
* values - cannot exceed 10 KB (10240 Bytes). This limit should
* accommodate most if not all use cases. Exceeding it will cause an
* exception with the message,
* "Environment: is too large (maximum is 10KB)."
*
*
*
* This parameter is supported only by Chef 11.10 stacks. If you
* have specified one or more environment variables, you cannot
* modify the stack's Chef version.
*
*/
public java.util.List getEnvironment() {
if (environment == null) {
environment = new com.amazonaws.internal.SdkInternalList();
}
return environment;
}
/**
*
* An array of EnvironmentVariable
objects that specify
* environment variables to be associated with the app. After you deploy the
* app, these variables are defined on the associated app server instance.
* For more information, see Environment Variables.
*
*
* There is no specific limit on the number of environment variables.
* However, the size of the associated data structure - which includes the
* variables' names, values, and protected flag values - cannot exceed 10 KB
* (10240 Bytes). This limit should accommodate most if not all use cases.
* Exceeding it will cause an exception with the message,
* "Environment: is too large (maximum is 10KB)."
*
*
*
* This parameter is supported only by Chef 11.10 stacks. If you have
* specified one or more environment variables, you cannot modify the
* stack's Chef version.
*
*
*
* @param environment
* An array of EnvironmentVariable
objects that specify
* environment variables to be associated with the app. After you
* deploy the app, these variables are defined on the associated app
* server instance. For more information, see Environment Variables.
*
* There is no specific limit on the number of environment variables.
* However, the size of the associated data structure - which
* includes the variables' names, values, and protected flag values -
* cannot exceed 10 KB (10240 Bytes). This limit should accommodate
* most if not all use cases. Exceeding it will cause an exception
* with the message, "Environment: is too large (maximum is 10KB)."
*
*
*
* This parameter is supported only by Chef 11.10 stacks. If you have
* specified one or more environment variables, you cannot modify the
* stack's Chef version.
*
*/
public void setEnvironment(
java.util.Collection environment) {
if (environment == null) {
this.environment = null;
return;
}
this.environment = new com.amazonaws.internal.SdkInternalList(
environment);
}
/**
*
* An array of EnvironmentVariable
objects that specify
* environment variables to be associated with the app. After you deploy the
* app, these variables are defined on the associated app server instance.
* For more information, see Environment Variables.
*
*
* There is no specific limit on the number of environment variables.
* However, the size of the associated data structure - which includes the
* variables' names, values, and protected flag values - cannot exceed 10 KB
* (10240 Bytes). This limit should accommodate most if not all use cases.
* Exceeding it will cause an exception with the message,
* "Environment: is too large (maximum is 10KB)."
*
*
*
* This parameter is supported only by Chef 11.10 stacks. If you have
* specified one or more environment variables, you cannot modify the
* stack's Chef version.
*
*
*
* NOTE: This method appends the values to the existing list (if
* any). Use {@link #setEnvironment(java.util.Collection)} or
* {@link #withEnvironment(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param environment
* An array of EnvironmentVariable
objects that specify
* environment variables to be associated with the app. After you
* deploy the app, these variables are defined on the associated app
* server instance. For more information, see Environment Variables.
*
* There is no specific limit on the number of environment variables.
* However, the size of the associated data structure - which
* includes the variables' names, values, and protected flag values -
* cannot exceed 10 KB (10240 Bytes). This limit should accommodate
* most if not all use cases. Exceeding it will cause an exception
* with the message, "Environment: is too large (maximum is 10KB)."
*
*
*
* This parameter is supported only by Chef 11.10 stacks. If you have
* specified one or more environment variables, you cannot modify the
* stack's Chef version.
*
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withEnvironment(EnvironmentVariable... environment) {
if (this.environment == null) {
setEnvironment(new com.amazonaws.internal.SdkInternalList(
environment.length));
}
for (EnvironmentVariable ele : environment) {
this.environment.add(ele);
}
return this;
}
/**
*
* An array of EnvironmentVariable
objects that specify
* environment variables to be associated with the app. After you deploy the
* app, these variables are defined on the associated app server instance.
* For more information, see Environment Variables.
*
*
* There is no specific limit on the number of environment variables.
* However, the size of the associated data structure - which includes the
* variables' names, values, and protected flag values - cannot exceed 10 KB
* (10240 Bytes). This limit should accommodate most if not all use cases.
* Exceeding it will cause an exception with the message,
* "Environment: is too large (maximum is 10KB)."
*
*
*
* This parameter is supported only by Chef 11.10 stacks. If you have
* specified one or more environment variables, you cannot modify the
* stack's Chef version.
*
*
*
* @param environment
* An array of EnvironmentVariable
objects that specify
* environment variables to be associated with the app. After you
* deploy the app, these variables are defined on the associated app
* server instance. For more information, see Environment Variables.
*
* There is no specific limit on the number of environment variables.
* However, the size of the associated data structure - which
* includes the variables' names, values, and protected flag values -
* cannot exceed 10 KB (10240 Bytes). This limit should accommodate
* most if not all use cases. Exceeding it will cause an exception
* with the message, "Environment: is too large (maximum is 10KB)."
*
*
*
* This parameter is supported only by Chef 11.10 stacks. If you have
* specified one or more environment variables, you cannot modify the
* stack's Chef version.
*
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateAppRequest withEnvironment(
java.util.Collection environment) {
setEnvironment(environment);
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 (getStackId() != null)
sb.append("StackId: " + getStackId() + ",");
if (getShortname() != null)
sb.append("Shortname: " + getShortname() + ",");
if (getName() != null)
sb.append("Name: " + getName() + ",");
if (getDescription() != null)
sb.append("Description: " + getDescription() + ",");
if (getDataSources() != null)
sb.append("DataSources: " + getDataSources() + ",");
if (getType() != null)
sb.append("Type: " + getType() + ",");
if (getAppSource() != null)
sb.append("AppSource: " + getAppSource() + ",");
if (getDomains() != null)
sb.append("Domains: " + getDomains() + ",");
if (getEnableSsl() != null)
sb.append("EnableSsl: " + getEnableSsl() + ",");
if (getSslConfiguration() != null)
sb.append("SslConfiguration: " + getSslConfiguration() + ",");
if (getAttributes() != null)
sb.append("Attributes: " + getAttributes() + ",");
if (getEnvironment() != null)
sb.append("Environment: " + getEnvironment());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateAppRequest == false)
return false;
CreateAppRequest other = (CreateAppRequest) obj;
if (other.getStackId() == null ^ this.getStackId() == null)
return false;
if (other.getStackId() != null
&& other.getStackId().equals(this.getStackId()) == false)
return false;
if (other.getShortname() == null ^ this.getShortname() == null)
return false;
if (other.getShortname() != null
&& other.getShortname().equals(this.getShortname()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null
&& other.getName().equals(this.getName()) == 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.getDataSources() == null ^ this.getDataSources() == null)
return false;
if (other.getDataSources() != null
&& other.getDataSources().equals(this.getDataSources()) == false)
return false;
if (other.getType() == null ^ this.getType() == null)
return false;
if (other.getType() != null
&& other.getType().equals(this.getType()) == false)
return false;
if (other.getAppSource() == null ^ this.getAppSource() == null)
return false;
if (other.getAppSource() != null
&& other.getAppSource().equals(this.getAppSource()) == false)
return false;
if (other.getDomains() == null ^ this.getDomains() == null)
return false;
if (other.getDomains() != null
&& other.getDomains().equals(this.getDomains()) == false)
return false;
if (other.getEnableSsl() == null ^ this.getEnableSsl() == null)
return false;
if (other.getEnableSsl() != null
&& other.getEnableSsl().equals(this.getEnableSsl()) == false)
return false;
if (other.getSslConfiguration() == null
^ this.getSslConfiguration() == null)
return false;
if (other.getSslConfiguration() != null
&& other.getSslConfiguration().equals(
this.getSslConfiguration()) == false)
return false;
if (other.getAttributes() == null ^ this.getAttributes() == null)
return false;
if (other.getAttributes() != null
&& other.getAttributes().equals(this.getAttributes()) == false)
return false;
if (other.getEnvironment() == null ^ this.getEnvironment() == null)
return false;
if (other.getEnvironment() != null
&& other.getEnvironment().equals(this.getEnvironment()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode
+ ((getStackId() == null) ? 0 : getStackId().hashCode());
hashCode = prime * hashCode
+ ((getShortname() == null) ? 0 : getShortname().hashCode());
hashCode = prime * hashCode
+ ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime
* hashCode
+ ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime
* hashCode
+ ((getDataSources() == null) ? 0 : getDataSources().hashCode());
hashCode = prime * hashCode
+ ((getType() == null) ? 0 : getType().hashCode());
hashCode = prime * hashCode
+ ((getAppSource() == null) ? 0 : getAppSource().hashCode());
hashCode = prime * hashCode
+ ((getDomains() == null) ? 0 : getDomains().hashCode());
hashCode = prime * hashCode
+ ((getEnableSsl() == null) ? 0 : getEnableSsl().hashCode());
hashCode = prime
* hashCode
+ ((getSslConfiguration() == null) ? 0 : getSslConfiguration()
.hashCode());
hashCode = prime * hashCode
+ ((getAttributes() == null) ? 0 : getAttributes().hashCode());
hashCode = prime
* hashCode
+ ((getEnvironment() == null) ? 0 : getEnvironment().hashCode());
return hashCode;
}
@Override
public CreateAppRequest clone() {
return (CreateAppRequest) super.clone();
}
}