AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NamespaceT = Aws::String>
53 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
54 template<typename NamespaceT = Aws::String>
55 ConfigurationOptionDescription& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 ConfigurationOptionDescription& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
75 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
76 template<typename DefaultValueT = Aws::String>
77 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
78 template<typename DefaultValueT = Aws::String>
79 ConfigurationOptionDescription& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
81
83
94 inline const Aws::String& GetChangeSeverity() const { return m_changeSeverity; }
95 inline bool ChangeSeverityHasBeenSet() const { return m_changeSeverityHasBeenSet; }
96 template<typename ChangeSeverityT = Aws::String>
97 void SetChangeSeverity(ChangeSeverityT&& value) { m_changeSeverityHasBeenSet = true; m_changeSeverity = std::forward<ChangeSeverityT>(value); }
98 template<typename ChangeSeverityT = Aws::String>
99 ConfigurationOptionDescription& WithChangeSeverity(ChangeSeverityT&& value) { SetChangeSeverity(std::forward<ChangeSeverityT>(value)); return *this;}
101
103
112 inline bool GetUserDefined() const { return m_userDefined; }
113 inline bool UserDefinedHasBeenSet() const { return m_userDefinedHasBeenSet; }
114 inline void SetUserDefined(bool value) { m_userDefinedHasBeenSet = true; m_userDefined = value; }
115 inline ConfigurationOptionDescription& WithUserDefined(bool value) { SetUserDefined(value); return *this;}
117
119
131 inline ConfigurationOptionValueType GetValueType() const { return m_valueType; }
132 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
133 inline void SetValueType(ConfigurationOptionValueType value) { m_valueTypeHasBeenSet = true; m_valueType = value; }
136
138
142 inline const Aws::Vector<Aws::String>& GetValueOptions() const { return m_valueOptions; }
143 inline bool ValueOptionsHasBeenSet() const { return m_valueOptionsHasBeenSet; }
144 template<typename ValueOptionsT = Aws::Vector<Aws::String>>
145 void SetValueOptions(ValueOptionsT&& value) { m_valueOptionsHasBeenSet = true; m_valueOptions = std::forward<ValueOptionsT>(value); }
146 template<typename ValueOptionsT = Aws::Vector<Aws::String>>
147 ConfigurationOptionDescription& WithValueOptions(ValueOptionsT&& value) { SetValueOptions(std::forward<ValueOptionsT>(value)); return *this;}
148 template<typename ValueOptionsT = Aws::String>
149 ConfigurationOptionDescription& AddValueOptions(ValueOptionsT&& value) { m_valueOptionsHasBeenSet = true; m_valueOptions.emplace_back(std::forward<ValueOptionsT>(value)); return *this; }
151
153
157 inline int GetMinValue() const { return m_minValue; }
158 inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; }
159 inline void SetMinValue(int value) { m_minValueHasBeenSet = true; m_minValue = value; }
160 inline ConfigurationOptionDescription& WithMinValue(int value) { SetMinValue(value); return *this;}
162
164
168 inline int GetMaxValue() const { return m_maxValue; }
169 inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; }
170 inline void SetMaxValue(int value) { m_maxValueHasBeenSet = true; m_maxValue = value; }
171 inline ConfigurationOptionDescription& WithMaxValue(int value) { SetMaxValue(value); return *this;}
173
175
179 inline int GetMaxLength() const { return m_maxLength; }
180 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
181 inline void SetMaxLength(int value) { m_maxLengthHasBeenSet = true; m_maxLength = value; }
182 inline ConfigurationOptionDescription& WithMaxLength(int value) { SetMaxLength(value); return *this;}
184
186
190 inline const OptionRestrictionRegex& GetRegex() const { return m_regex; }
191 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
192 template<typename RegexT = OptionRestrictionRegex>
193 void SetRegex(RegexT&& value) { m_regexHasBeenSet = true; m_regex = std::forward<RegexT>(value); }
194 template<typename RegexT = OptionRestrictionRegex>
195 ConfigurationOptionDescription& WithRegex(RegexT&& value) { SetRegex(std::forward<RegexT>(value)); return *this;}
197 private:
198
199 Aws::String m_namespace;
200 bool m_namespaceHasBeenSet = false;
201
202 Aws::String m_name;
203 bool m_nameHasBeenSet = false;
204
205 Aws::String m_defaultValue;
206 bool m_defaultValueHasBeenSet = false;
207
208 Aws::String m_changeSeverity;
209 bool m_changeSeverityHasBeenSet = false;
210
211 bool m_userDefined{false};
212 bool m_userDefinedHasBeenSet = false;
213
215 bool m_valueTypeHasBeenSet = false;
216
217 Aws::Vector<Aws::String> m_valueOptions;
218 bool m_valueOptionsHasBeenSet = false;
219
220 int m_minValue{0};
221 bool m_minValueHasBeenSet = false;
222
223 int m_maxValue{0};
224 bool m_maxValueHasBeenSet = false;
225
226 int m_maxLength{0};
227 bool m_maxLengthHasBeenSet = false;
228
229 OptionRestrictionRegex m_regex;
230 bool m_regexHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace ElasticBeanstalk
235} // 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