AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
OptionSetting.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/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
32 public:
33 AWS_RDS_API OptionSetting() = default;
34 AWS_RDS_API OptionSetting(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_RDS_API OptionSetting& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 OptionSetting& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetValue() const { return m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 template <typename ValueT = Aws::String>
65 void SetValue(ValueT&& value) {
66 m_valueHasBeenSet = true;
67 m_value = std::forward<ValueT>(value);
68 }
69 template <typename ValueT = Aws::String>
70 OptionSetting& WithValue(ValueT&& value) {
71 SetValue(std::forward<ValueT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
81 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
82 template <typename DefaultValueT = Aws::String>
83 void SetDefaultValue(DefaultValueT&& value) {
84 m_defaultValueHasBeenSet = true;
85 m_defaultValue = std::forward<DefaultValueT>(value);
86 }
87 template <typename DefaultValueT = Aws::String>
88 OptionSetting& WithDefaultValue(DefaultValueT&& value) {
89 SetDefaultValue(std::forward<DefaultValueT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
106 OptionSetting& WithDescription(DescriptionT&& value) {
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetApplyType() const { return m_applyType; }
117 inline bool ApplyTypeHasBeenSet() const { return m_applyTypeHasBeenSet; }
118 template <typename ApplyTypeT = Aws::String>
119 void SetApplyType(ApplyTypeT&& value) {
120 m_applyTypeHasBeenSet = true;
121 m_applyType = std::forward<ApplyTypeT>(value);
122 }
123 template <typename ApplyTypeT = Aws::String>
124 OptionSetting& WithApplyType(ApplyTypeT&& value) {
125 SetApplyType(std::forward<ApplyTypeT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetDataType() const { return m_dataType; }
135 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
136 template <typename DataTypeT = Aws::String>
137 void SetDataType(DataTypeT&& value) {
138 m_dataTypeHasBeenSet = true;
139 m_dataType = std::forward<DataTypeT>(value);
140 }
141 template <typename DataTypeT = Aws::String>
142 OptionSetting& WithDataType(DataTypeT&& value) {
143 SetDataType(std::forward<DataTypeT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetAllowedValues() const { return m_allowedValues; }
153 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
154 template <typename AllowedValuesT = Aws::String>
155 void SetAllowedValues(AllowedValuesT&& value) {
156 m_allowedValuesHasBeenSet = true;
157 m_allowedValues = std::forward<AllowedValuesT>(value);
158 }
159 template <typename AllowedValuesT = Aws::String>
160 OptionSetting& WithAllowedValues(AllowedValuesT&& value) {
161 SetAllowedValues(std::forward<AllowedValuesT>(value));
162 return *this;
163 }
165
167
170 inline bool GetIsModifiable() const { return m_isModifiable; }
171 inline bool IsModifiableHasBeenSet() const { return m_isModifiableHasBeenSet; }
172 inline void SetIsModifiable(bool value) {
173 m_isModifiableHasBeenSet = true;
174 m_isModifiable = value;
175 }
176 inline OptionSetting& WithIsModifiable(bool value) {
177 SetIsModifiable(value);
178 return *this;
179 }
181
183
186 inline bool GetIsCollection() const { return m_isCollection; }
187 inline bool IsCollectionHasBeenSet() const { return m_isCollectionHasBeenSet; }
188 inline void SetIsCollection(bool value) {
189 m_isCollectionHasBeenSet = true;
190 m_isCollection = value;
191 }
192 inline OptionSetting& WithIsCollection(bool value) {
193 SetIsCollection(value);
194 return *this;
195 }
197 private:
198 Aws::String m_name;
199
200 Aws::String m_value;
201
202 Aws::String m_defaultValue;
203
204 Aws::String m_description;
205
206 Aws::String m_applyType;
207
208 Aws::String m_dataType;
209
210 Aws::String m_allowedValues;
211
212 bool m_isModifiable{false};
213
214 bool m_isCollection{false};
215 bool m_nameHasBeenSet = false;
216 bool m_valueHasBeenSet = false;
217 bool m_defaultValueHasBeenSet = false;
218 bool m_descriptionHasBeenSet = false;
219 bool m_applyTypeHasBeenSet = false;
220 bool m_dataTypeHasBeenSet = false;
221 bool m_allowedValuesHasBeenSet = false;
222 bool m_isModifiableHasBeenSet = false;
223 bool m_isCollectionHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace RDS
228} // namespace Aws
void SetDataType(DataTypeT &&value)
void SetApplyType(ApplyTypeT &&value)
OptionSetting & WithDefaultValue(DefaultValueT &&value)
OptionSetting & WithDataType(DataTypeT &&value)
void SetName(NameT &&value)
const Aws::String & GetDefaultValue() const
OptionSetting & WithIsModifiable(bool value)
OptionSetting & WithValue(ValueT &&value)
void SetDescription(DescriptionT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
OptionSetting & WithApplyType(ApplyTypeT &&value)
OptionSetting & WithDescription(DescriptionT &&value)
const Aws::String & GetAllowedValues() const
const Aws::String & GetApplyType() const
AWS_RDS_API OptionSetting & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetValue() const
AWS_RDS_API OptionSetting()=default
const Aws::String & GetName() const
const Aws::String & GetDescription() const
void SetDefaultValue(DefaultValueT &&value)
AWS_RDS_API OptionSetting(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetValue(ValueT &&value)
OptionSetting & WithIsCollection(bool value)
void SetAllowedValues(AllowedValuesT &&value)
const Aws::String & GetDataType() const
OptionSetting & WithAllowedValues(AllowedValuesT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OptionSetting & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream