AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConfigurationOptionDescription.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticbeanstalk/model/ConfigurationOptionValueType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticbeanstalk/model/OptionRestrictionRegex.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElasticBeanstalk
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ELASTICBEANSTALK_API ConfigurationOptionDescription();
39 AWS_ELASTICBEANSTALK_API ConfigurationOptionDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_ELASTICBEANSTALK_API ConfigurationOptionDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetNamespace() const{ return m_namespace; }
51 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
52 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
53 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
54 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
55 inline ConfigurationOptionDescription& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
56 inline ConfigurationOptionDescription& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
57 inline ConfigurationOptionDescription& WithNamespace(const char* value) { SetNamespace(value); return *this;}
59
61
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline ConfigurationOptionDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline ConfigurationOptionDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline ConfigurationOptionDescription& WithName(const char* value) { SetName(value); return *this;}
73
75
78 inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
79 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
80 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
81 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
82 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
83 inline ConfigurationOptionDescription& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
84 inline ConfigurationOptionDescription& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
85 inline ConfigurationOptionDescription& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
87
89
100 inline const Aws::String& GetChangeSeverity() const{ return m_changeSeverity; }
101 inline bool ChangeSeverityHasBeenSet() const { return m_changeSeverityHasBeenSet; }
102 inline void SetChangeSeverity(const Aws::String& value) { m_changeSeverityHasBeenSet = true; m_changeSeverity = value; }
103 inline void SetChangeSeverity(Aws::String&& value) { m_changeSeverityHasBeenSet = true; m_changeSeverity = std::move(value); }
104 inline void SetChangeSeverity(const char* value) { m_changeSeverityHasBeenSet = true; m_changeSeverity.assign(value); }
106 inline ConfigurationOptionDescription& WithChangeSeverity(Aws::String&& value) { SetChangeSeverity(std::move(value)); return *this;}
107 inline ConfigurationOptionDescription& WithChangeSeverity(const char* value) { SetChangeSeverity(value); return *this;}
109
111
120 inline bool GetUserDefined() const{ return m_userDefined; }
121 inline bool UserDefinedHasBeenSet() const { return m_userDefinedHasBeenSet; }
122 inline void SetUserDefined(bool value) { m_userDefinedHasBeenSet = true; m_userDefined = value; }
123 inline ConfigurationOptionDescription& WithUserDefined(bool value) { SetUserDefined(value); return *this;}
125
127
139 inline const ConfigurationOptionValueType& GetValueType() const{ return m_valueType; }
140 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
141 inline void SetValueType(const ConfigurationOptionValueType& value) { m_valueTypeHasBeenSet = true; m_valueType = value; }
142 inline void SetValueType(ConfigurationOptionValueType&& value) { m_valueTypeHasBeenSet = true; m_valueType = std::move(value); }
146
148
152 inline const Aws::Vector<Aws::String>& GetValueOptions() const{ return m_valueOptions; }
153 inline bool ValueOptionsHasBeenSet() const { return m_valueOptionsHasBeenSet; }
154 inline void SetValueOptions(const Aws::Vector<Aws::String>& value) { m_valueOptionsHasBeenSet = true; m_valueOptions = value; }
155 inline void SetValueOptions(Aws::Vector<Aws::String>&& value) { m_valueOptionsHasBeenSet = true; m_valueOptions = std::move(value); }
158 inline ConfigurationOptionDescription& AddValueOptions(const Aws::String& value) { m_valueOptionsHasBeenSet = true; m_valueOptions.push_back(value); return *this; }
159 inline ConfigurationOptionDescription& AddValueOptions(Aws::String&& value) { m_valueOptionsHasBeenSet = true; m_valueOptions.push_back(std::move(value)); return *this; }
160 inline ConfigurationOptionDescription& AddValueOptions(const char* value) { m_valueOptionsHasBeenSet = true; m_valueOptions.push_back(value); return *this; }
162
164
168 inline int GetMinValue() const{ return m_minValue; }
169 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
170 inline void SetMinValue(int value) { m_minValueHasBeenSet = true; m_minValue = value; }
171 inline ConfigurationOptionDescription& WithMinValue(int value) { SetMinValue(value); return *this;}
173
175
179 inline int GetMaxValue() const{ return m_maxValue; }
180 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
181 inline void SetMaxValue(int value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
182 inline ConfigurationOptionDescription& WithMaxValue(int value) { SetMaxValue(value); return *this;}
184
186
190 inline int GetMaxLength() const{ return m_maxLength; }
191 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
192 inline void SetMaxLength(int value) { m_maxLengthHasBeenSet = true; m_maxLength = value; }
193 inline ConfigurationOptionDescription& WithMaxLength(int value) { SetMaxLength(value); return *this;}
195
197
201 inline const OptionRestrictionRegex& GetRegex() const{ return m_regex; }
202 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
203 inline void SetRegex(const OptionRestrictionRegex& value) { m_regexHasBeenSet = true; m_regex = value; }
204 inline void SetRegex(OptionRestrictionRegex&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
205 inline ConfigurationOptionDescription& WithRegex(const OptionRestrictionRegex& value) { SetRegex(value); return *this;}
206 inline ConfigurationOptionDescription& WithRegex(OptionRestrictionRegex&& value) { SetRegex(std::move(value)); return *this;}
208 private:
209
210 Aws::String m_namespace;
211 bool m_namespaceHasBeenSet = false;
212
213 Aws::String m_name;
214 bool m_nameHasBeenSet = false;
215
216 Aws::String m_defaultValue;
217 bool m_defaultValueHasBeenSet = false;
218
219 Aws::String m_changeSeverity;
220 bool m_changeSeverityHasBeenSet = false;
221
222 bool m_userDefined;
223 bool m_userDefinedHasBeenSet = false;
224
226 bool m_valueTypeHasBeenSet = false;
227
228 Aws::Vector<Aws::String> m_valueOptions;
229 bool m_valueOptionsHasBeenSet = false;
230
231 int m_minValue;
232 bool m_minValueHasBeenSet = false;
233
234 int m_maxValue;
235 bool m_maxValueHasBeenSet = false;
236
237 int m_maxLength;
238 bool m_maxLengthHasBeenSet = false;
239
241 bool m_regexHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace ElasticBeanstalk
246} // namespace Aws
ConfigurationOptionDescription & AddValueOptions(Aws::String &&value)
ConfigurationOptionDescription & WithDefaultValue(const Aws::String &value)
ConfigurationOptionDescription & WithChangeSeverity(Aws::String &&value)
ConfigurationOptionDescription & WithChangeSeverity(const char *value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ConfigurationOptionDescription & WithValueType(ConfigurationOptionValueType &&value)
ConfigurationOptionDescription & WithChangeSeverity(const Aws::String &value)
ConfigurationOptionDescription & WithRegex(OptionRestrictionRegex &&value)
ConfigurationOptionDescription & WithNamespace(const Aws::String &value)
ConfigurationOptionDescription & AddValueOptions(const char *value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API ConfigurationOptionDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ConfigurationOptionDescription & WithName(const Aws::String &value)
ConfigurationOptionDescription & WithValueType(const ConfigurationOptionValueType &value)
ConfigurationOptionDescription & WithNamespace(Aws::String &&value)
ConfigurationOptionDescription & WithName(const char *value)
ConfigurationOptionDescription & WithDefaultValue(Aws::String &&value)
AWS_ELASTICBEANSTALK_API ConfigurationOptionDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
ConfigurationOptionDescription & WithName(Aws::String &&value)
ConfigurationOptionDescription & WithValueOptions(Aws::Vector< Aws::String > &&value)
ConfigurationOptionDescription & WithNamespace(const char *value)
ConfigurationOptionDescription & WithValueOptions(const Aws::Vector< Aws::String > &value)
ConfigurationOptionDescription & WithDefaultValue(const char *value)
ConfigurationOptionDescription & WithRegex(const OptionRestrictionRegex &value)
ConfigurationOptionDescription & AddValueOptions(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream