AWS SDK for C++

AWS SDK for C++ Version 1.11.755

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
45 inline const Aws::String& GetNamespace() const { return m_namespace; }
46 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
47 template <typename NamespaceT = Aws::String>
48 void SetNamespace(NamespaceT&& value) {
49 m_namespaceHasBeenSet = true;
50 m_namespace = std::forward<NamespaceT>(value);
51 }
52 template <typename NamespaceT = Aws::String>
54 SetNamespace(std::forward<NamespaceT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
82 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
83 template <typename DefaultValueT = Aws::String>
84 void SetDefaultValue(DefaultValueT&& value) {
85 m_defaultValueHasBeenSet = true;
86 m_defaultValue = std::forward<DefaultValueT>(value);
87 }
88 template <typename DefaultValueT = Aws::String>
90 SetDefaultValue(std::forward<DefaultValueT>(value));
91 return *this;
92 }
94
96
107 inline const Aws::String& GetChangeSeverity() const { return m_changeSeverity; }
108 inline bool ChangeSeverityHasBeenSet() const { return m_changeSeverityHasBeenSet; }
109 template <typename ChangeSeverityT = Aws::String>
110 void SetChangeSeverity(ChangeSeverityT&& value) {
111 m_changeSeverityHasBeenSet = true;
112 m_changeSeverity = std::forward<ChangeSeverityT>(value);
113 }
114 template <typename ChangeSeverityT = Aws::String>
116 SetChangeSeverity(std::forward<ChangeSeverityT>(value));
117 return *this;
118 }
120
122
131 inline bool GetUserDefined() const { return m_userDefined; }
132 inline bool UserDefinedHasBeenSet() const { return m_userDefinedHasBeenSet; }
133 inline void SetUserDefined(bool value) {
134 m_userDefinedHasBeenSet = true;
135 m_userDefined = value;
136 }
138 SetUserDefined(value);
139 return *this;
140 }
142
144
156 inline ConfigurationOptionValueType GetValueType() const { return m_valueType; }
157 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
159 m_valueTypeHasBeenSet = true;
160 m_valueType = value;
161 }
163 SetValueType(value);
164 return *this;
165 }
167
169
173 inline const Aws::Vector<Aws::String>& GetValueOptions() const { return m_valueOptions; }
174 inline bool ValueOptionsHasBeenSet() const { return m_valueOptionsHasBeenSet; }
175 template <typename ValueOptionsT = Aws::Vector<Aws::String>>
176 void SetValueOptions(ValueOptionsT&& value) {
177 m_valueOptionsHasBeenSet = true;
178 m_valueOptions = std::forward<ValueOptionsT>(value);
179 }
180 template <typename ValueOptionsT = Aws::Vector<Aws::String>>
182 SetValueOptions(std::forward<ValueOptionsT>(value));
183 return *this;
184 }
185 template <typename ValueOptionsT = Aws::String>
187 m_valueOptionsHasBeenSet = true;
188 m_valueOptions.emplace_back(std::forward<ValueOptionsT>(value));
189 return *this;
190 }
192
194
198 inline int GetMinValue() const { return m_minValue; }
199 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
200 inline void SetMinValue(int value) {
201 m_minValueHasBeenSet = true;
202 m_minValue = value;
203 }
205 SetMinValue(value);
206 return *this;
207 }
209
211
215 inline int GetMaxValue() const { return m_maxValue; }
216 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
217 inline void SetMaxValue(int value) {
218 m_maxValueHasBeenSet = true;
219 m_maxValue = value;
220 }
222 SetMaxValue(value);
223 return *this;
224 }
226
228
232 inline int GetMaxLength() const { return m_maxLength; }
233 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
234 inline void SetMaxLength(int value) {
235 m_maxLengthHasBeenSet = true;
236 m_maxLength = value;
237 }
239 SetMaxLength(value);
240 return *this;
241 }
243
245
249 inline const OptionRestrictionRegex& GetRegex() const { return m_regex; }
250 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
251 template <typename RegexT = OptionRestrictionRegex>
252 void SetRegex(RegexT&& value) {
253 m_regexHasBeenSet = true;
254 m_regex = std::forward<RegexT>(value);
255 }
256 template <typename RegexT = OptionRestrictionRegex>
258 SetRegex(std::forward<RegexT>(value));
259 return *this;
260 }
262 private:
263 Aws::String m_namespace;
264
265 Aws::String m_name;
266
267 Aws::String m_defaultValue;
268
269 Aws::String m_changeSeverity;
270
271 bool m_userDefined{false};
272
274
275 Aws::Vector<Aws::String> m_valueOptions;
276
277 int m_minValue{0};
278
279 int m_maxValue{0};
280
281 int m_maxLength{0};
282
283 OptionRestrictionRegex m_regex;
284 bool m_namespaceHasBeenSet = false;
285 bool m_nameHasBeenSet = false;
286 bool m_defaultValueHasBeenSet = false;
287 bool m_changeSeverityHasBeenSet = false;
288 bool m_userDefinedHasBeenSet = false;
289 bool m_valueTypeHasBeenSet = false;
290 bool m_valueOptionsHasBeenSet = false;
291 bool m_minValueHasBeenSet = false;
292 bool m_maxValueHasBeenSet = false;
293 bool m_maxLengthHasBeenSet = false;
294 bool m_regexHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace ElasticBeanstalk
299} // 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