/* * 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; /** *

* Describes the possible values for a configuration option. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ConfigurationOptionDescription implements Serializable, Cloneable { /** *

* A unique namespace identifying the option's associated AWS resource. *

*/ private String namespace; /** *

* The name of the configuration option. *

*/ private String name; /** *

* The default value for this configuration option. *

*/ private String defaultValue; /** *

* An indication of which action is required if the value for this configuration option changes: *

* */ private String changeSeverity; /** *

* An indication of whether the user defined this configuration option: *

* *

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

*

* Valid Values: true | false *

*/ private Boolean userDefined; /** *

* An indication of which type of values this option has and whether it is allowable to select one or more than one * of the possible values: *

* */ private String valueType; /** *

* If specified, values for the configuration option are selected from this list. *

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

* If specified, the configuration option must be a numeric value greater than this value. *

*/ private Integer minValue; /** *

* If specified, the configuration option must be a numeric value less than this value. *

*/ private Integer maxValue; /** *

* If specified, the configuration option must be a string value no longer than this value. *

*/ private Integer maxLength; /** *

* If specified, the configuration option must be a string value that satisfies this regular expression. *

*/ private OptionRestrictionRegex regex; /** *

* A unique namespace identifying the option's associated AWS resource. *

* * @param namespace * A unique namespace identifying the option's associated AWS resource. */ public void setNamespace(String namespace) { this.namespace = namespace; } /** *

* A unique namespace identifying the option's associated AWS resource. *

* * @return A unique namespace identifying the option's associated AWS resource. */ public String getNamespace() { return this.namespace; } /** *

* A unique namespace identifying the option's associated AWS resource. *

* * @param namespace * A unique namespace identifying the option's associated AWS resource. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigurationOptionDescription withNamespace(String namespace) { setNamespace(namespace); return this; } /** *

* The name of the configuration option. *

* * @param name * The name of the configuration option. */ public void setName(String name) { this.name = name; } /** *

* The name of the configuration option. *

* * @return The name of the configuration option. */ public String getName() { return this.name; } /** *

* The name of the configuration option. *

* * @param name * The name of the configuration option. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigurationOptionDescription withName(String name) { setName(name); return this; } /** *

* The default value for this configuration option. *

* * @param defaultValue * The default value for this configuration option. */ public void setDefaultValue(String defaultValue) { this.defaultValue = defaultValue; } /** *

* The default value for this configuration option. *

* * @return The default value for this configuration option. */ public String getDefaultValue() { return this.defaultValue; } /** *

* The default value for this configuration option. *

* * @param defaultValue * The default value for this configuration option. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigurationOptionDescription withDefaultValue(String defaultValue) { setDefaultValue(defaultValue); return this; } /** *

* An indication of which action is required if the value for this configuration option changes: *

* * * @param changeSeverity * An indication of which action is required if the value for this configuration option changes:

*