/* * Copyright 2018-2023 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 javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* A list of validation messages for a specified configuration template. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ValidateConfigurationSettingsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The name of the application that the configuration template or environment belongs to. *
*/ private String applicationName; /** ** The name of the configuration template to validate the settings against. *
** Condition: You cannot specify both this and an environment name. *
*/ private String templateName; /** ** The name of the environment to validate the settings against. *
** Condition: You cannot specify both this and a configuration template name. *
*/ private String environmentName; /** ** A list of the options and desired values to evaluate. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the application that the configuration template or environment belongs to. *
* * @param applicationName * The name of the application that the configuration template or environment belongs to. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** ** The name of the application that the configuration template or environment belongs to. *
* * @return The name of the application that the configuration template or environment belongs to. */ public String getApplicationName() { return this.applicationName; } /** ** The name of the application that the configuration template or environment belongs to. *
* * @param applicationName * The name of the application that the configuration template or environment belongs to. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateConfigurationSettingsRequest withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** ** The name of the configuration template to validate the settings against. *
** Condition: You cannot specify both this and an environment name. *
* * @param templateName * The name of the configuration template to validate the settings against. ** Condition: You cannot specify both this and an environment name. */ public void setTemplateName(String templateName) { this.templateName = templateName; } /** *
* The name of the configuration template to validate the settings against. *
** Condition: You cannot specify both this and an environment name. *
* * @return The name of the configuration template to validate the settings against. ** Condition: You cannot specify both this and an environment name. */ public String getTemplateName() { return this.templateName; } /** *
* The name of the configuration template to validate the settings against. *
** Condition: You cannot specify both this and an environment name. *
* * @param templateName * The name of the configuration template to validate the settings against. ** Condition: You cannot specify both this and an environment name. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateConfigurationSettingsRequest withTemplateName(String templateName) { setTemplateName(templateName); return this; } /** *
* The name of the environment to validate the settings against. *
** Condition: You cannot specify both this and a configuration template name. *
* * @param environmentName * The name of the environment to validate the settings against. ** Condition: You cannot specify both this and a configuration template name. */ public void setEnvironmentName(String environmentName) { this.environmentName = environmentName; } /** *
* The name of the environment to validate the settings against. *
** Condition: You cannot specify both this and a configuration template name. *
* * @return The name of the environment to validate the settings against. ** Condition: You cannot specify both this and a configuration template name. */ public String getEnvironmentName() { return this.environmentName; } /** *
* The name of the environment to validate the settings against. *
** Condition: You cannot specify both this and a configuration template name. *
* * @param environmentName * The name of the environment to validate the settings against. ** Condition: You cannot specify both this and a configuration template name. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateConfigurationSettingsRequest withEnvironmentName(String environmentName) { setEnvironmentName(environmentName); return this; } /** *
* A list of the options and desired values to evaluate. *
* * @return A list of the options and desired values to evaluate. */ public java.util.List* A list of the options and desired values to evaluate. *
* * @param optionSettings * A list of the options and desired values to evaluate. */ public void setOptionSettings(java.util.Collection* A list of the options and desired values to evaluate. *
** 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 the options and desired values to evaluate. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateConfigurationSettingsRequest withOptionSettings(ConfigurationOptionSetting... optionSettings) { if (this.optionSettings == null) { setOptionSettings(new com.amazonaws.internal.SdkInternalList* A list of the options and desired values to evaluate. *
* * @param optionSettings * A list of the options and desired values to evaluate. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidateConfigurationSettingsRequest withOptionSettings(java.util.Collection