AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
ConfigurationOptionDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11#include <aws/elasticbeanstalk/model/ConfigurationOptionValueType.h>
12#include <aws/elasticbeanstalk/model/OptionRestrictionRegex.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElasticBeanstalk {
23namespace Model {
24
32 public:
33 AWS_ELASTICBEANSTALK_API ConfigurationOptionDescription() = default;
34 AWS_ELASTICBEANSTALK_API ConfigurationOptionDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_ELASTICBEANSTALK_API ConfigurationOptionDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
38 const char* locationValue) const;
39 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
46 inline const Aws::String& GetNamespace() const { return m_namespace; }
47 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
48 template <typename NamespaceT = Aws::String>
49 void SetNamespace(NamespaceT&& value) {
50 m_namespaceHasBeenSet = true;
51 m_namespace = std::forward<NamespaceT>(value);
52 }
53 template <typename NamespaceT = Aws::String>
55 SetNamespace(std::forward<NamespaceT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
83 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
84 template <typename DefaultValueT = Aws::String>
85 void SetDefaultValue(DefaultValueT&& value) {
86 m_defaultValueHasBeenSet = true;
87 m_defaultValue = std::forward<DefaultValueT>(value);
88 }
89 template <typename DefaultValueT = Aws::String>
91 SetDefaultValue(std::forward<DefaultValueT>(value));
92 return *this;
93 }
95
97
108 inline const Aws::String& GetChangeSeverity() const { return m_changeSeverity; }
109 inline bool ChangeSeverityHasBeenSet() const { return m_changeSeverityHasBeenSet; }
110 template <typename ChangeSeverityT = Aws::String>
111 void SetChangeSeverity(ChangeSeverityT&& value) {
112 m_changeSeverityHasBeenSet = true;
113 m_changeSeverity = std::forward<ChangeSeverityT>(value);
114 }
115 template <typename ChangeSeverityT = Aws::String>
117 SetChangeSeverity(std::forward<ChangeSeverityT>(value));
118 return *this;
119 }
121
123
132 inline bool GetUserDefined() const { return m_userDefined; }
133 inline bool UserDefinedHasBeenSet() const { return m_userDefinedHasBeenSet; }
134 inline void SetUserDefined(bool value) {
135 m_userDefinedHasBeenSet = true;
136 m_userDefined = value;
137 }
139 SetUserDefined(value);
140 return *this;
141 }
143
145
157 inline ConfigurationOptionValueType GetValueType() const { return m_valueType; }
158 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
160 m_valueTypeHasBeenSet = true;
161 m_valueType = value;
162 }
164 SetValueType(value);
165 return *this;
166 }
168
170
174 inline const Aws::Vector<Aws::String>& GetValueOptions() const { return m_valueOptions; }
175 inline bool ValueOptionsHasBeenSet() const { return m_valueOptionsHasBeenSet; }
176 template <typename ValueOptionsT = Aws::Vector<Aws::String>>
177 void SetValueOptions(ValueOptionsT&& value) {
178 m_valueOptionsHasBeenSet = true;
179 m_valueOptions = std::forward<ValueOptionsT>(value);
180 }
181 template <typename ValueOptionsT = Aws::Vector<Aws::String>>
183 SetValueOptions(std::forward<ValueOptionsT>(value));
184 return *this;
185 }
186 template <typename ValueOptionsT = Aws::String>
188 m_valueOptionsHasBeenSet = true;
189 m_valueOptions.emplace_back(std::forward<ValueOptionsT>(value));
190 return *this;
191 }
193
195
199 inline int GetMinValue() const { return m_minValue; }
200 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
201 inline void SetMinValue(int value) {
202 m_minValueHasBeenSet = true;
203 m_minValue = value;
204 }
206 SetMinValue(value);
207 return *this;
208 }
210
212
216 inline int GetMaxValue() const { return m_maxValue; }
217 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
218 inline void SetMaxValue(int value) {
219 m_maxValueHasBeenSet = true;
220 m_maxValue = value;
221 }
223 SetMaxValue(value);
224 return *this;
225 }
227
229
233 inline int GetMaxLength() const { return m_maxLength; }
234 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
235 inline void SetMaxLength(int value) {
236 m_maxLengthHasBeenSet = true;
237 m_maxLength = value;
238 }
240 SetMaxLength(value);
241 return *this;
242 }
244
246
250 inline const OptionRestrictionRegex& GetRegex() const { return m_regex; }
251 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
252 template <typename RegexT = OptionRestrictionRegex>
253 void SetRegex(RegexT&& value) {
254 m_regexHasBeenSet = true;
255 m_regex = std::forward<RegexT>(value);
256 }
257 template <typename RegexT = OptionRestrictionRegex>
259 SetRegex(std::forward<RegexT>(value));
260 return *this;
261 }
263 private:
264 Aws::String m_namespace;
265
266 Aws::String m_name;
267
268 Aws::String m_defaultValue;
269
270 Aws::String m_changeSeverity;
271
272 bool m_userDefined{false};
273
275
276 Aws::Vector<Aws::String> m_valueOptions;
277
278 int m_minValue{0};
279
280 int m_maxValue{0};
281
282 int m_maxLength{0};
283
284 OptionRestrictionRegex m_regex;
285 bool m_namespaceHasBeenSet = false;
286 bool m_nameHasBeenSet = false;
287 bool m_defaultValueHasBeenSet = false;
288 bool m_changeSeverityHasBeenSet = false;
289 bool m_userDefinedHasBeenSet = false;
290 bool m_valueTypeHasBeenSet = false;
291 bool m_valueOptionsHasBeenSet = false;
292 bool m_minValueHasBeenSet = false;
293 bool m_maxValueHasBeenSet = false;
294 bool m_maxLengthHasBeenSet = false;
295 bool m_regexHasBeenSet = false;
296};
297
298} // namespace Model
299} // namespace ElasticBeanstalk
300} // namespace Aws
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICBEANSTALK_API ConfigurationOptionDescription()=default
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 & WithValueType(ConfigurationOptionValueType value)
ConfigurationOptionDescription & WithNamespace(NamespaceT &&value)
ConfigurationOptionDescription & AddValueOptions(ValueOptionsT &&value)
ConfigurationOptionDescription & WithChangeSeverity(ChangeSeverityT &&value)
AWS_ELASTICBEANSTALK_API ConfigurationOptionDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
ConfigurationOptionDescription & WithValueOptions(ValueOptionsT &&value)
ConfigurationOptionDescription & WithDefaultValue(DefaultValueT &&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