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

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

Go to download

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

There is a newer version: 1.11.7
Show newest version
/*
 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights
 * Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 *
 *  http://aws.amazon.com/apache2.0
 *
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */

package com.amazonaws.services.elasticbeanstalk.model;

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

/**
 * 

* The result message containing the options for the specified solution stack. *

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

* The name of the application associated with the configuration template to * update. *

*

* If no application is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. *

*/ private String applicationName; /** *

* The name of the configuration template to update. *

*

* If no configuration template is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. *

*/ private String templateName; /** *

* A new description for the configuration. *

*/ private String description; /** *

* A list of configuration option settings to update with the new specified * option value. *

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

* A list of configuration options to remove from the configuration set. *

*

* Constraint: You can remove only UserDefined configuration * options. *

*/ private com.amazonaws.internal.SdkInternalList optionsToRemove; /** * Default constructor for UpdateConfigurationTemplateRequest object. * Callers should use the setter or fluent setter (with...) methods to * initialize the object after creating it. */ public UpdateConfigurationTemplateRequest() { } /** * Constructs a new UpdateConfigurationTemplateRequest object. Callers * should use the setter or fluent setter (with...) methods to initialize * any additional object members. * * @param applicationName * The name of the application associated with the configuration * template to update.

*

* If no application is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. * @param templateName * The name of the configuration template to update. *

*

* If no configuration template is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. */ public UpdateConfigurationTemplateRequest(String applicationName, String templateName) { setApplicationName(applicationName); setTemplateName(templateName); } /** *

* The name of the application associated with the configuration template to * update. *

*

* If no application is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. *

* * @param applicationName * The name of the application associated with the configuration * template to update.

*

* If no application is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** *

* The name of the application associated with the configuration template to * update. *

*

* If no application is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. *

* * @return The name of the application associated with the configuration * template to update.

*

* If no application is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. */ public String getApplicationName() { return this.applicationName; } /** *

* The name of the application associated with the configuration template to * update. *

*

* If no application is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. *

* * @param applicationName * The name of the application associated with the configuration * template to update.

*

* If no application is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateConfigurationTemplateRequest withApplicationName( String applicationName) { setApplicationName(applicationName); return this; } /** *

* The name of the configuration template to update. *

*

* If no configuration template is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. *

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

*

* If no configuration template is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. */ public void setTemplateName(String templateName) { this.templateName = templateName; } /** *

* The name of the configuration template to update. *

*

* If no configuration template is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. *

* * @return The name of the configuration template to update.

*

* If no configuration template is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. */ public String getTemplateName() { return this.templateName; } /** *

* The name of the configuration template to update. *

*

* If no configuration template is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. *

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

*

* If no configuration template is found with this name, * UpdateConfigurationTemplate returns an * InvalidParameterValue error. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateConfigurationTemplateRequest withTemplateName( String templateName) { setTemplateName(templateName); return this; } /** *

* A new description for the configuration. *

* * @param description * A new description for the configuration. */ public void setDescription(String description) { this.description = description; } /** *

* A new description for the configuration. *

* * @return A new description for the configuration. */ public String getDescription() { return this.description; } /** *

* A new description for the configuration. *

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

* A list of configuration option settings to update with the new specified * option value. *

* * @return A list of configuration option settings to update with the new * specified option value. */ public java.util.List getOptionSettings() { if (optionSettings == null) { optionSettings = new com.amazonaws.internal.SdkInternalList(); } return optionSettings; } /** *

* A list of configuration option settings to update with the new specified * option value. *

* * @param optionSettings * A list of configuration option settings to update with the new * specified option value. */ public void setOptionSettings( java.util.Collection optionSettings) { if (optionSettings == null) { this.optionSettings = null; return; } this.optionSettings = new com.amazonaws.internal.SdkInternalList( optionSettings); } /** *

* A list of configuration option settings to update with the new specified * option value. *

*

* 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 * A list of configuration option settings to update with the new * specified option value. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateConfigurationTemplateRequest 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; } /** *

* A list of configuration option settings to update with the new specified * option value. *

* * @param optionSettings * A list of configuration option settings to update with the new * specified option value. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateConfigurationTemplateRequest withOptionSettings( java.util.Collection optionSettings) { setOptionSettings(optionSettings); return this; } /** *

* A list of configuration options to remove from the configuration set. *

*

* Constraint: You can remove only UserDefined configuration * options. *

* * @return A list of configuration options to remove from the configuration * set.

*

* Constraint: You can remove only UserDefined * configuration options. */ public java.util.List getOptionsToRemove() { if (optionsToRemove == null) { optionsToRemove = new com.amazonaws.internal.SdkInternalList(); } return optionsToRemove; } /** *

* A list of configuration options to remove from the configuration set. *

*

* Constraint: You can remove only UserDefined configuration * options. *

* * @param optionsToRemove * A list of configuration options to remove from the configuration * set.

*

* Constraint: You can remove only UserDefined * configuration options. */ public void setOptionsToRemove( java.util.Collection optionsToRemove) { if (optionsToRemove == null) { this.optionsToRemove = null; return; } this.optionsToRemove = new com.amazonaws.internal.SdkInternalList( optionsToRemove); } /** *

* A list of configuration options to remove from the configuration set. *

*

* Constraint: You can remove only UserDefined configuration * options. *

*

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

* * @param optionsToRemove * A list of configuration options to remove from the configuration * set.

*

* Constraint: You can remove only UserDefined * configuration options. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateConfigurationTemplateRequest withOptionsToRemove( OptionSpecification... optionsToRemove) { if (this.optionsToRemove == null) { setOptionsToRemove(new com.amazonaws.internal.SdkInternalList( optionsToRemove.length)); } for (OptionSpecification ele : optionsToRemove) { this.optionsToRemove.add(ele); } return this; } /** *

* A list of configuration options to remove from the configuration set. *

*

* Constraint: You can remove only UserDefined configuration * options. *

* * @param optionsToRemove * A list of configuration options to remove from the configuration * set.

*

* Constraint: You can remove only UserDefined * configuration options. * @return Returns a reference to this object so that method calls can be * chained together. */ public UpdateConfigurationTemplateRequest withOptionsToRemove( java.util.Collection optionsToRemove) { setOptionsToRemove(optionsToRemove); 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 (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getOptionSettings() != null) sb.append("OptionSettings: " + getOptionSettings() + ","); if (getOptionsToRemove() != null) sb.append("OptionsToRemove: " + getOptionsToRemove()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateConfigurationTemplateRequest == false) return false; UpdateConfigurationTemplateRequest other = (UpdateConfigurationTemplateRequest) 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.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; if (other.getOptionsToRemove() == null ^ this.getOptionsToRemove() == null) return false; if (other.getOptionsToRemove() != null && other.getOptionsToRemove().equals(this.getOptionsToRemove()) == 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 + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getOptionSettings() == null) ? 0 : getOptionSettings() .hashCode()); hashCode = prime * hashCode + ((getOptionsToRemove() == null) ? 0 : getOptionsToRemove() .hashCode()); return hashCode; } @Override public UpdateConfigurationTemplateRequest clone() { return (UpdateConfigurationTemplateRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy