AWS SDK for C++  0.14.3
AWS SDK for C++
ConfigurationOptionDescription.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace ElasticBeanstalk
33 {
34 namespace Model
35 {
36 
41  {
42  public:
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
53  inline const Aws::String& GetNamespace() const{ return m_namespace; }
54 
58  inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
59 
63  inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
64 
68  inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
69 
73  inline ConfigurationOptionDescription& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
74 
78  inline ConfigurationOptionDescription& WithNamespace(Aws::String&& value) { SetNamespace(value); return *this;}
79 
83  inline ConfigurationOptionDescription& WithNamespace(const char* value) { SetNamespace(value); return *this;}
84 
88  inline const Aws::String& GetName() const{ return m_name; }
89 
93  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 
98  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
99 
103  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
104 
108  inline ConfigurationOptionDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
109 
113  inline ConfigurationOptionDescription& WithName(Aws::String&& value) { SetName(value); return *this;}
114 
118  inline ConfigurationOptionDescription& WithName(const char* value) { SetName(value); return *this;}
119 
123  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
124 
128  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
129 
133  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
134 
138  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
139 
143  inline ConfigurationOptionDescription& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
144 
148  inline ConfigurationOptionDescription& WithDefaultValue(Aws::String&& value) { SetDefaultValue(value); return *this;}
149 
153  inline ConfigurationOptionDescription& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
154 
166  inline const Aws::String& GetChangeSeverity() const{ return m_changeSeverity; }
167 
179  inline void SetChangeSeverity(const Aws::String& value) { m_changeSeverityHasBeenSet = true; m_changeSeverity = value; }
180 
192  inline void SetChangeSeverity(Aws::String&& value) { m_changeSeverityHasBeenSet = true; m_changeSeverity = value; }
193 
205  inline void SetChangeSeverity(const char* value) { m_changeSeverityHasBeenSet = true; m_changeSeverity.assign(value); }
206 
218  inline ConfigurationOptionDescription& WithChangeSeverity(const Aws::String& value) { SetChangeSeverity(value); return *this;}
219 
231  inline ConfigurationOptionDescription& WithChangeSeverity(Aws::String&& value) { SetChangeSeverity(value); return *this;}
232 
244  inline ConfigurationOptionDescription& WithChangeSeverity(const char* value) { SetChangeSeverity(value); return *this;}
245 
255  inline bool GetUserDefined() const{ return m_userDefined; }
256 
266  inline void SetUserDefined(bool value) { m_userDefinedHasBeenSet = true; m_userDefined = value; }
267 
277  inline ConfigurationOptionDescription& WithUserDefined(bool value) { SetUserDefined(value); return *this;}
278 
290  inline const ConfigurationOptionValueType& GetValueType() const{ return m_valueType; }
291 
303  inline void SetValueType(const ConfigurationOptionValueType& value) { m_valueTypeHasBeenSet = true; m_valueType = value; }
304 
316  inline void SetValueType(ConfigurationOptionValueType&& value) { m_valueTypeHasBeenSet = true; m_valueType = value; }
317 
329  inline ConfigurationOptionDescription& WithValueType(const ConfigurationOptionValueType& value) { SetValueType(value); return *this;}
330 
342  inline ConfigurationOptionDescription& WithValueType(ConfigurationOptionValueType&& value) { SetValueType(value); return *this;}
343 
348  inline const Aws::Vector<Aws::String>& GetValueOptions() const{ return m_valueOptions; }
349 
354  inline void SetValueOptions(const Aws::Vector<Aws::String>& value) { m_valueOptionsHasBeenSet = true; m_valueOptions = value; }
355 
360  inline void SetValueOptions(Aws::Vector<Aws::String>&& value) { m_valueOptionsHasBeenSet = true; m_valueOptions = value; }
361 
366  inline ConfigurationOptionDescription& WithValueOptions(const Aws::Vector<Aws::String>& value) { SetValueOptions(value); return *this;}
367 
372  inline ConfigurationOptionDescription& WithValueOptions(Aws::Vector<Aws::String>&& value) { SetValueOptions(value); return *this;}
373 
378  inline ConfigurationOptionDescription& AddValueOptions(const Aws::String& value) { m_valueOptionsHasBeenSet = true; m_valueOptions.push_back(value); return *this; }
379 
384  inline ConfigurationOptionDescription& AddValueOptions(Aws::String&& value) { m_valueOptionsHasBeenSet = true; m_valueOptions.push_back(value); return *this; }
385 
390  inline ConfigurationOptionDescription& AddValueOptions(const char* value) { m_valueOptionsHasBeenSet = true; m_valueOptions.push_back(value); return *this; }
391 
396  inline int GetMinValue() const{ return m_minValue; }
397 
402  inline void SetMinValue(int value) { m_minValueHasBeenSet = true; m_minValue = value; }
403 
408  inline ConfigurationOptionDescription& WithMinValue(int value) { SetMinValue(value); return *this;}
409 
414  inline int GetMaxValue() const{ return m_maxValue; }
415 
420  inline void SetMaxValue(int value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
421 
426  inline ConfigurationOptionDescription& WithMaxValue(int value) { SetMaxValue(value); return *this;}
427 
432  inline int GetMaxLength() const{ return m_maxLength; }
433 
438  inline void SetMaxLength(int value) { m_maxLengthHasBeenSet = true; m_maxLength = value; }
439 
444  inline ConfigurationOptionDescription& WithMaxLength(int value) { SetMaxLength(value); return *this;}
445 
450  inline const OptionRestrictionRegex& GetRegex() const{ return m_regex; }
451 
456  inline void SetRegex(const OptionRestrictionRegex& value) { m_regexHasBeenSet = true; m_regex = value; }
457 
462  inline void SetRegex(OptionRestrictionRegex&& value) { m_regexHasBeenSet = true; m_regex = value; }
463 
468  inline ConfigurationOptionDescription& WithRegex(const OptionRestrictionRegex& value) { SetRegex(value); return *this;}
469 
474  inline ConfigurationOptionDescription& WithRegex(OptionRestrictionRegex&& value) { SetRegex(value); return *this;}
475 
476  private:
477  Aws::String m_namespace;
478  bool m_namespaceHasBeenSet;
479  Aws::String m_name;
480  bool m_nameHasBeenSet;
481  Aws::String m_defaultValue;
482  bool m_defaultValueHasBeenSet;
483  Aws::String m_changeSeverity;
484  bool m_changeSeverityHasBeenSet;
485  bool m_userDefined;
486  bool m_userDefinedHasBeenSet;
487  ConfigurationOptionValueType m_valueType;
488  bool m_valueTypeHasBeenSet;
489  Aws::Vector<Aws::String> m_valueOptions;
490  bool m_valueOptionsHasBeenSet;
491  int m_minValue;
492  bool m_minValueHasBeenSet;
493  int m_maxValue;
494  bool m_maxValueHasBeenSet;
495  int m_maxLength;
496  bool m_maxLengthHasBeenSet;
497  OptionRestrictionRegex m_regex;
498  bool m_regexHasBeenSet;
499  };
500 
501 } // namespace Model
502 } // namespace ElasticBeanstalk
503 } // namespace Aws
ConfigurationOptionDescription & WithName(Aws::String &&value)
ConfigurationOptionDescription & WithChangeSeverity(const Aws::String &value)
ConfigurationOptionDescription & WithName(const Aws::String &value)
ConfigurationOptionDescription & AddValueOptions(const Aws::String &value)
#define AWS_ELASTICBEANSTALK_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ConfigurationOptionDescription & WithRegex(OptionRestrictionRegex &&value)
ConfigurationOptionDescription & WithValueOptions(const Aws::Vector< Aws::String > &value)
ConfigurationOptionDescription & WithDefaultValue(Aws::String &&value)
ConfigurationOptionDescription & WithName(const char *value)
ConfigurationOptionDescription & WithChangeSeverity(Aws::String &&value)
ConfigurationOptionDescription & WithNamespace(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ConfigurationOptionDescription & AddValueOptions(Aws::String &&value)
ConfigurationOptionDescription & WithChangeSeverity(const char *value)
ConfigurationOptionDescription & WithDefaultValue(const Aws::String &value)
ConfigurationOptionDescription & WithRegex(const OptionRestrictionRegex &value)
ConfigurationOptionDescription & WithNamespace(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ConfigurationOptionDescription & WithDefaultValue(const char *value)
ConfigurationOptionDescription & WithNamespace(Aws::String &&value)
ConfigurationOptionDescription & WithValueOptions(Aws::Vector< Aws::String > &&value)
ConfigurationOptionDescription & WithValueType(const ConfigurationOptionValueType &value)
ConfigurationOptionDescription & AddValueOptions(const char *value)
ConfigurationOptionDescription & WithValueType(ConfigurationOptionValueType &&value)
JSON (JavaScript Object Notation).