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

com.amazonaws.services.elasticbeanstalk.model.CreateConfigurationTemplateRequest 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 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.elasticbeanstalk.model;

import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Request to create a configuration template. *

*/ public class CreateConfigurationTemplateRequest extends AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the application to associate with this configuration * template. If no application is found with this name, AWS Elastic * Beanstalk returns an InvalidParameterValue error. *

*/ private String applicationName; /** *

* The name of the configuration template. *

*

* Constraint: This name must be unique per application. *

*

* Default: If a configuration template already exists with this name, AWS * Elastic Beanstalk returns an InvalidParameterValue error. *

*/ private String templateName; /** *

* The name of the solution stack used by this configuration. The solution * stack specifies the operating system, architecture, and application * server for a configuration template. It determines the set of * configuration options as well as the possible and default values. *

*

* Use ListAvailableSolutionStacks to obtain a list of available * solution stacks. *

*

* A solution stack name or a source configuration parameter must be * specified, otherwise AWS Elastic Beanstalk returns an * InvalidParameterValue error. *

*

* If a solution stack name is not specified and the source configuration * parameter is specified, AWS Elastic Beanstalk uses the same solution * stack as the source configuration template. *

*/ private String solutionStackName; /** *

* If specified, AWS Elastic Beanstalk uses the configuration values from * the specified configuration template to create a new configuration. *

*

* Values specified in the OptionSettings parameter of this * call overrides any values obtained from the * SourceConfiguration. *

*

* If no configuration template is found, returns an * InvalidParameterValue error. *

*

* Constraint: If both the solution stack name parameter and the source * configuration parameters are specified, the solution stack of the source * configuration template must match the specified solution stack name or * else AWS Elastic Beanstalk returns an * InvalidParameterCombination error. *

*/ private SourceConfiguration sourceConfiguration; /** *

* The ID of the environment used with this configuration template. *

*/ private String environmentId; /** *

* Describes this configuration. *

*/ private String description; /** *

* If specified, AWS Elastic Beanstalk sets the specified configuration * option to the requested value. The new value overrides the value obtained * from the solution stack or the source configuration template. *

*/ private com.amazonaws.internal.SdkInternalList optionSettings; /** * Default constructor for CreateConfigurationTemplateRequest object. * Callers should use the setter or fluent setter (with...) methods to * initialize the object after creating it. */ public CreateConfigurationTemplateRequest() { } /** * Constructs a new CreateConfigurationTemplateRequest object. Callers * should use the setter or fluent setter (with...) methods to initialize * any additional object members. * * @param applicationName * The name of the application to associate with this configuration * template. If no application is found with this name, AWS Elastic * Beanstalk returns an InvalidParameterValue error. * @param templateName * The name of the configuration template.

*

* Constraint: This name must be unique per application. *

*

* Default: If a configuration template already exists with this * name, AWS Elastic Beanstalk returns an * InvalidParameterValue error. */ public CreateConfigurationTemplateRequest(String applicationName, String templateName) { setApplicationName(applicationName); setTemplateName(templateName); } /** *

* The name of the application to associate with this configuration * template. If no application is found with this name, AWS Elastic * Beanstalk returns an InvalidParameterValue error. *

* * @param applicationName * The name of the application to associate with this configuration * template. If no application is found with this name, AWS Elastic * Beanstalk returns an InvalidParameterValue error. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** *

* The name of the application to associate with this configuration * template. If no application is found with this name, AWS Elastic * Beanstalk returns an InvalidParameterValue error. *

* * @return The name of the application to associate with this configuration * template. If no application is found with this name, AWS Elastic * Beanstalk returns an InvalidParameterValue error. */ public String getApplicationName() { return this.applicationName; } /** *

* The name of the application to associate with this configuration * template. If no application is found with this name, AWS Elastic * Beanstalk returns an InvalidParameterValue error. *

* * @param applicationName * The name of the application to associate with this configuration * template. If no application is found with this name, AWS Elastic * Beanstalk returns an InvalidParameterValue error. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreateConfigurationTemplateRequest withApplicationName( String applicationName) { setApplicationName(applicationName); return this; } /** *

* The name of the configuration template. *

*

* Constraint: This name must be unique per application. *

*

* Default: If a configuration template already exists with this name, AWS * Elastic Beanstalk returns an InvalidParameterValue error. *

* * @param templateName * The name of the configuration template.

*

* Constraint: This name must be unique per application. *

*

* Default: If a configuration template already exists with this * name, AWS Elastic Beanstalk returns an * InvalidParameterValue error. */ public void setTemplateName(String templateName) { this.templateName = templateName; } /** *

* The name of the configuration template. *

*

* Constraint: This name must be unique per application. *

*

* Default: If a configuration template already exists with this name, AWS * Elastic Beanstalk returns an InvalidParameterValue error. *

* * @return The name of the configuration template.

*

* Constraint: This name must be unique per application. *

*

* Default: If a configuration template already exists with this * name, AWS Elastic Beanstalk returns an * InvalidParameterValue error. */ public String getTemplateName() { return this.templateName; } /** *

* The name of the configuration template. *

*

* Constraint: This name must be unique per application. *

*

* Default: If a configuration template already exists with this name, AWS * Elastic Beanstalk returns an InvalidParameterValue error. *

* * @param templateName * The name of the configuration template.

*

* Constraint: This name must be unique per application. *

*

* Default: If a configuration template already exists with this * name, AWS Elastic Beanstalk returns an * InvalidParameterValue error. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreateConfigurationTemplateRequest withTemplateName( String templateName) { setTemplateName(templateName); return this; } /** *

* The name of the solution stack used by this configuration. The solution * stack specifies the operating system, architecture, and application * server for a configuration template. It determines the set of * configuration options as well as the possible and default values. *

*

* Use ListAvailableSolutionStacks to obtain a list of available * solution stacks. *

*

* A solution stack name or a source configuration parameter must be * specified, otherwise AWS Elastic Beanstalk returns an * InvalidParameterValue error. *

*

* If a solution stack name is not specified and the source configuration * parameter is specified, AWS Elastic Beanstalk uses the same solution * stack as the source configuration template. *

* * @param solutionStackName * The name of the solution stack used by this configuration. The * solution stack specifies the operating system, architecture, and * application server for a configuration template. It determines the * set of configuration options as well as the possible and default * values.

*

* Use ListAvailableSolutionStacks to obtain a list of * available solution stacks. *

*

* A solution stack name or a source configuration parameter must be * specified, otherwise AWS Elastic Beanstalk returns an * InvalidParameterValue error. *

*

* If a solution stack name is not specified and the source * configuration parameter is specified, AWS Elastic Beanstalk uses * the same solution stack as the source configuration template. */ public void setSolutionStackName(String solutionStackName) { this.solutionStackName = solutionStackName; } /** *

* The name of the solution stack used by this configuration. The solution * stack specifies the operating system, architecture, and application * server for a configuration template. It determines the set of * configuration options as well as the possible and default values. *

*

* Use ListAvailableSolutionStacks to obtain a list of available * solution stacks. *

*

* A solution stack name or a source configuration parameter must be * specified, otherwise AWS Elastic Beanstalk returns an * InvalidParameterValue error. *

*

* If a solution stack name is not specified and the source configuration * parameter is specified, AWS Elastic Beanstalk uses the same solution * stack as the source configuration template. *

* * @return The name of the solution stack used by this configuration. The * solution stack specifies the operating system, architecture, and * application server for a configuration template. It determines * the set of configuration options as well as the possible and * default values.

*

* Use ListAvailableSolutionStacks to obtain a list of * available solution stacks. *

*

* A solution stack name or a source configuration parameter must be * specified, otherwise AWS Elastic Beanstalk returns an * InvalidParameterValue error. *

*

* If a solution stack name is not specified and the source * configuration parameter is specified, AWS Elastic Beanstalk uses * the same solution stack as the source configuration template. */ public String getSolutionStackName() { return this.solutionStackName; } /** *

* The name of the solution stack used by this configuration. The solution * stack specifies the operating system, architecture, and application * server for a configuration template. It determines the set of * configuration options as well as the possible and default values. *

*

* Use ListAvailableSolutionStacks to obtain a list of available * solution stacks. *

*

* A solution stack name or a source configuration parameter must be * specified, otherwise AWS Elastic Beanstalk returns an * InvalidParameterValue error. *

*

* If a solution stack name is not specified and the source configuration * parameter is specified, AWS Elastic Beanstalk uses the same solution * stack as the source configuration template. *

* * @param solutionStackName * The name of the solution stack used by this configuration. The * solution stack specifies the operating system, architecture, and * application server for a configuration template. It determines the * set of configuration options as well as the possible and default * values.

*

* Use ListAvailableSolutionStacks to obtain a list of * available solution stacks. *

*

* A solution stack name or a source configuration parameter must be * specified, otherwise AWS Elastic Beanstalk returns an * InvalidParameterValue error. *

*

* If a solution stack name is not specified and the source * configuration parameter is specified, AWS Elastic Beanstalk uses * the same solution stack as the source configuration template. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreateConfigurationTemplateRequest withSolutionStackName( String solutionStackName) { setSolutionStackName(solutionStackName); return this; } /** *

* If specified, AWS Elastic Beanstalk uses the configuration values from * the specified configuration template to create a new configuration. *

*

* Values specified in the OptionSettings parameter of this * call overrides any values obtained from the * SourceConfiguration. *

*

* If no configuration template is found, returns an * InvalidParameterValue error. *

*

* Constraint: If both the solution stack name parameter and the source * configuration parameters are specified, the solution stack of the source * configuration template must match the specified solution stack name or * else AWS Elastic Beanstalk returns an * InvalidParameterCombination error. *

* * @param sourceConfiguration * If specified, AWS Elastic Beanstalk uses the configuration values * from the specified configuration template to create a new * configuration.

*

* Values specified in the OptionSettings parameter of * this call overrides any values obtained from the * SourceConfiguration. *

*

* If no configuration template is found, returns an * InvalidParameterValue error. *

*

* Constraint: If both the solution stack name parameter and the * source configuration parameters are specified, the solution stack * of the source configuration template must match the specified * solution stack name or else AWS Elastic Beanstalk returns an * InvalidParameterCombination error. */ public void setSourceConfiguration(SourceConfiguration sourceConfiguration) { this.sourceConfiguration = sourceConfiguration; } /** *

* If specified, AWS Elastic Beanstalk uses the configuration values from * the specified configuration template to create a new configuration. *

*

* Values specified in the OptionSettings parameter of this * call overrides any values obtained from the * SourceConfiguration. *

*

* If no configuration template is found, returns an * InvalidParameterValue error. *

*

* Constraint: If both the solution stack name parameter and the source * configuration parameters are specified, the solution stack of the source * configuration template must match the specified solution stack name or * else AWS Elastic Beanstalk returns an * InvalidParameterCombination error. *

* * @return If specified, AWS Elastic Beanstalk uses the configuration values * from the specified configuration template to create a new * configuration.

*

* Values specified in the OptionSettings parameter of * this call overrides any values obtained from the * SourceConfiguration. *

*

* If no configuration template is found, returns an * InvalidParameterValue error. *

*

* Constraint: If both the solution stack name parameter and the * source configuration parameters are specified, the solution stack * of the source configuration template must match the specified * solution stack name or else AWS Elastic Beanstalk returns an * InvalidParameterCombination error. */ public SourceConfiguration getSourceConfiguration() { return this.sourceConfiguration; } /** *

* If specified, AWS Elastic Beanstalk uses the configuration values from * the specified configuration template to create a new configuration. *

*

* Values specified in the OptionSettings parameter of this * call overrides any values obtained from the * SourceConfiguration. *

*

* If no configuration template is found, returns an * InvalidParameterValue error. *

*

* Constraint: If both the solution stack name parameter and the source * configuration parameters are specified, the solution stack of the source * configuration template must match the specified solution stack name or * else AWS Elastic Beanstalk returns an * InvalidParameterCombination error. *

* * @param sourceConfiguration * If specified, AWS Elastic Beanstalk uses the configuration values * from the specified configuration template to create a new * configuration.

*

* Values specified in the OptionSettings parameter of * this call overrides any values obtained from the * SourceConfiguration. *

*

* If no configuration template is found, returns an * InvalidParameterValue error. *

*

* Constraint: If both the solution stack name parameter and the * source configuration parameters are specified, the solution stack * of the source configuration template must match the specified * solution stack name or else AWS Elastic Beanstalk returns an * InvalidParameterCombination error. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreateConfigurationTemplateRequest withSourceConfiguration( SourceConfiguration sourceConfiguration) { setSourceConfiguration(sourceConfiguration); return this; } /** *

* The ID of the environment used with this configuration template. *

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

* The ID of the environment used with this configuration template. *

* * @return The ID of the environment used with this configuration template. */ public String getEnvironmentId() { return this.environmentId; } /** *

* The ID of the environment used with this configuration template. *

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

* Describes this configuration. *

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

* Describes this configuration. *

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

* Describes this configuration. *

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

* If specified, AWS Elastic Beanstalk sets the specified configuration * option to the requested value. The new value overrides the value obtained * from the solution stack or the source configuration template. *

* * @return If specified, AWS Elastic Beanstalk sets the specified * configuration option to the requested value. The new value * overrides the value obtained from the solution stack or the * source configuration template. */ public java.util.List getOptionSettings() { if (optionSettings == null) { optionSettings = new com.amazonaws.internal.SdkInternalList(); } return optionSettings; } /** *

* If specified, AWS Elastic Beanstalk sets the specified configuration * option to the requested value. The new value overrides the value obtained * from the solution stack or the source configuration template. *

* * @param optionSettings * If specified, AWS Elastic Beanstalk sets the specified * configuration option to the requested value. The new value * overrides the value obtained from the solution stack or the source * configuration template. */ public void setOptionSettings( java.util.Collection optionSettings) { if (optionSettings == null) { this.optionSettings = null; return; } this.optionSettings = new com.amazonaws.internal.SdkInternalList( optionSettings); } /** *

* If specified, AWS Elastic Beanstalk sets the specified configuration * option to the requested value. The new value overrides the value obtained * from the solution stack or the source configuration template. *

*

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

* * @param optionSettings * If specified, AWS Elastic Beanstalk sets the specified * configuration option to the requested value. The new value * overrides the value obtained from the solution stack or the source * configuration template. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreateConfigurationTemplateRequest withOptionSettings( ConfigurationOptionSetting... optionSettings) { if (this.optionSettings == null) { setOptionSettings(new com.amazonaws.internal.SdkInternalList( optionSettings.length)); } for (ConfigurationOptionSetting ele : optionSettings) { this.optionSettings.add(ele); } return this; } /** *

* If specified, AWS Elastic Beanstalk sets the specified configuration * option to the requested value. The new value overrides the value obtained * from the solution stack or the source configuration template. *

* * @param optionSettings * If specified, AWS Elastic Beanstalk sets the specified * configuration option to the requested value. The new value * overrides the value obtained from the solution stack or the source * configuration template. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreateConfigurationTemplateRequest withOptionSettings( java.util.Collection optionSettings) { setOptionSettings(optionSettings); 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 (getTemplateName() != null) sb.append("TemplateName: " + getTemplateName() + ","); if (getSolutionStackName() != null) sb.append("SolutionStackName: " + getSolutionStackName() + ","); if (getSourceConfiguration() != null) sb.append("SourceConfiguration: " + getSourceConfiguration() + ","); if (getEnvironmentId() != null) sb.append("EnvironmentId: " + getEnvironmentId() + ","); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getOptionSettings() != null) sb.append("OptionSettings: " + getOptionSettings()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateConfigurationTemplateRequest == false) return false; CreateConfigurationTemplateRequest other = (CreateConfigurationTemplateRequest) obj; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == 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.getSolutionStackName() == null ^ this.getSolutionStackName() == null) return false; if (other.getSolutionStackName() != null && other.getSolutionStackName().equals( this.getSolutionStackName()) == false) return false; if (other.getSourceConfiguration() == null ^ this.getSourceConfiguration() == null) return false; if (other.getSourceConfiguration() != null && other.getSourceConfiguration().equals( this.getSourceConfiguration()) == 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.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getOptionSettings() == null ^ this.getOptionSettings() == null) return false; if (other.getOptionSettings() != null && other.getOptionSettings().equals(this.getOptionSettings()) == 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 + ((getTemplateName() == null) ? 0 : getTemplateName() .hashCode()); hashCode = prime * hashCode + ((getSolutionStackName() == null) ? 0 : getSolutionStackName().hashCode()); hashCode = prime * hashCode + ((getSourceConfiguration() == null) ? 0 : getSourceConfiguration().hashCode()); hashCode = prime * hashCode + ((getEnvironmentId() == null) ? 0 : getEnvironmentId() .hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getOptionSettings() == null) ? 0 : getOptionSettings() .hashCode()); return hashCode; } @Override public CreateConfigurationTemplateRequest clone() { return (CreateConfigurationTemplateRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy