AWS SDK for C++  1.9.104
AWS SDK for C++
OptionSetting.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace RDS
22 {
23 namespace Model
24 {
25 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
59  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
69  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 
74  inline OptionSetting& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
79  inline OptionSetting& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
84  inline OptionSetting& WithName(const char* value) { SetName(value); return *this;}
85 
86 
90  inline const Aws::String& GetValue() const{ return m_value; }
91 
95  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
96 
100  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
101 
105  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
106 
110  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
111 
115  inline OptionSetting& WithValue(const Aws::String& value) { SetValue(value); return *this;}
116 
120  inline OptionSetting& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
121 
125  inline OptionSetting& WithValue(const char* value) { SetValue(value); return *this;}
126 
127 
131  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
132 
136  inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
137 
141  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
142 
146  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
147 
151  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
152 
156  inline OptionSetting& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
157 
161  inline OptionSetting& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
162 
166  inline OptionSetting& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
167 
168 
172  inline const Aws::String& GetDescription() const{ return m_description; }
173 
177  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
178 
182  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
183 
187  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
188 
192  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
193 
197  inline OptionSetting& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
198 
202  inline OptionSetting& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
203 
207  inline OptionSetting& WithDescription(const char* value) { SetDescription(value); return *this;}
208 
209 
213  inline const Aws::String& GetApplyType() const{ return m_applyType; }
214 
218  inline bool ApplyTypeHasBeenSet() const { return m_applyTypeHasBeenSet; }
219 
223  inline void SetApplyType(const Aws::String& value) { m_applyTypeHasBeenSet = true; m_applyType = value; }
224 
228  inline void SetApplyType(Aws::String&& value) { m_applyTypeHasBeenSet = true; m_applyType = std::move(value); }
229 
233  inline void SetApplyType(const char* value) { m_applyTypeHasBeenSet = true; m_applyType.assign(value); }
234 
238  inline OptionSetting& WithApplyType(const Aws::String& value) { SetApplyType(value); return *this;}
239 
243  inline OptionSetting& WithApplyType(Aws::String&& value) { SetApplyType(std::move(value)); return *this;}
244 
248  inline OptionSetting& WithApplyType(const char* value) { SetApplyType(value); return *this;}
249 
250 
254  inline const Aws::String& GetDataType() const{ return m_dataType; }
255 
259  inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
260 
264  inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
265 
269  inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
270 
274  inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); }
275 
279  inline OptionSetting& WithDataType(const Aws::String& value) { SetDataType(value); return *this;}
280 
284  inline OptionSetting& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;}
285 
289  inline OptionSetting& WithDataType(const char* value) { SetDataType(value); return *this;}
290 
291 
295  inline const Aws::String& GetAllowedValues() const{ return m_allowedValues; }
296 
300  inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
301 
305  inline void SetAllowedValues(const Aws::String& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
306 
310  inline void SetAllowedValues(Aws::String&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); }
311 
315  inline void SetAllowedValues(const char* value) { m_allowedValuesHasBeenSet = true; m_allowedValues.assign(value); }
316 
320  inline OptionSetting& WithAllowedValues(const Aws::String& value) { SetAllowedValues(value); return *this;}
321 
325  inline OptionSetting& WithAllowedValues(Aws::String&& value) { SetAllowedValues(std::move(value)); return *this;}
326 
330  inline OptionSetting& WithAllowedValues(const char* value) { SetAllowedValues(value); return *this;}
331 
332 
337  inline bool GetIsModifiable() const{ return m_isModifiable; }
338 
343  inline bool IsModifiableHasBeenSet() const { return m_isModifiableHasBeenSet; }
344 
349  inline void SetIsModifiable(bool value) { m_isModifiableHasBeenSet = true; m_isModifiable = value; }
350 
355  inline OptionSetting& WithIsModifiable(bool value) { SetIsModifiable(value); return *this;}
356 
357 
361  inline bool GetIsCollection() const{ return m_isCollection; }
362 
366  inline bool IsCollectionHasBeenSet() const { return m_isCollectionHasBeenSet; }
367 
371  inline void SetIsCollection(bool value) { m_isCollectionHasBeenSet = true; m_isCollection = value; }
372 
376  inline OptionSetting& WithIsCollection(bool value) { SetIsCollection(value); return *this;}
377 
378  private:
379 
380  Aws::String m_name;
381  bool m_nameHasBeenSet;
382 
383  Aws::String m_value;
384  bool m_valueHasBeenSet;
385 
386  Aws::String m_defaultValue;
387  bool m_defaultValueHasBeenSet;
388 
389  Aws::String m_description;
390  bool m_descriptionHasBeenSet;
391 
392  Aws::String m_applyType;
393  bool m_applyTypeHasBeenSet;
394 
395  Aws::String m_dataType;
396  bool m_dataTypeHasBeenSet;
397 
398  Aws::String m_allowedValues;
399  bool m_allowedValuesHasBeenSet;
400 
401  bool m_isModifiable;
402  bool m_isModifiableHasBeenSet;
403 
404  bool m_isCollection;
405  bool m_isCollectionHasBeenSet;
406  };
407 
408 } // namespace Model
409 } // namespace RDS
410 } // namespace Aws
Aws::RDS::Model::OptionSetting::GetApplyType
const Aws::String & GetApplyType() const
Definition: OptionSetting.h:213
Aws::RDS::Model::OptionSetting::GetDescription
const Aws::String & GetDescription() const
Definition: OptionSetting.h:172
Aws::RDS::Model::OptionSetting::GetDataType
const Aws::String & GetDataType() const
Definition: OptionSetting.h:254
Aws::RDS::Model::OptionSetting::GetName
const Aws::String & GetName() const
Definition: OptionSetting.h:49
Aws::RDS::Model::OptionSetting::SetDescription
void SetDescription(Aws::String &&value)
Definition: OptionSetting.h:187
Aws::RDS::Model::OptionSetting::operator=
OptionSetting & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::OptionSetting::SetDescription
void SetDescription(const char *value)
Definition: OptionSetting.h:192
Aws::RDS::Model::OptionSetting::SetValue
void SetValue(Aws::String &&value)
Definition: OptionSetting.h:105
Aws::RDS::Model::OptionSetting::SetName
void SetName(const Aws::String &value)
Definition: OptionSetting.h:59
Aws::RDS::Model::OptionSetting::WithDataType
OptionSetting & WithDataType(Aws::String &&value)
Definition: OptionSetting.h:284
Aws::RDS::Model::OptionSetting::WithAllowedValues
OptionSetting & WithAllowedValues(const char *value)
Definition: OptionSetting.h:330
Aws::RDS::Model::OptionSetting::SetDescription
void SetDescription(const Aws::String &value)
Definition: OptionSetting.h:182
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::OptionSetting::SetIsCollection
void SetIsCollection(bool value)
Definition: OptionSetting.h:371
Aws::RDS::Model::OptionSetting::SetValue
void SetValue(const Aws::String &value)
Definition: OptionSetting.h:100
Aws::RDS::Model::OptionSetting::IsCollectionHasBeenSet
bool IsCollectionHasBeenSet() const
Definition: OptionSetting.h:366
Aws::RDS::Model::OptionSetting::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: OptionSetting.h:95
Aws::RDS::Model::OptionSetting::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::OptionSetting::WithDescription
OptionSetting & WithDescription(Aws::String &&value)
Definition: OptionSetting.h:202
AWSStreamFwd.h
Aws::RDS::Model::OptionSetting::NameHasBeenSet
bool NameHasBeenSet() const
Definition: OptionSetting.h:54
Aws::RDS::Model::OptionSetting::IsModifiableHasBeenSet
bool IsModifiableHasBeenSet() const
Definition: OptionSetting.h:343
Aws::RDS::Model::OptionSetting::SetDataType
void SetDataType(const Aws::String &value)
Definition: OptionSetting.h:264
Aws::RDS::Model::OptionSetting::DefaultValueHasBeenSet
bool DefaultValueHasBeenSet() const
Definition: OptionSetting.h:136
Aws::RDS::Model::OptionSetting::SetDefaultValue
void SetDefaultValue(Aws::String &&value)
Definition: OptionSetting.h:146
Aws::RDS::Model::OptionSetting::WithDataType
OptionSetting & WithDataType(const Aws::String &value)
Definition: OptionSetting.h:279
Aws::RDS::Model::OptionSetting::WithName
OptionSetting & WithName(Aws::String &&value)
Definition: OptionSetting.h:79
Aws::RDS::Model::OptionSetting::WithDescription
OptionSetting & WithDescription(const Aws::String &value)
Definition: OptionSetting.h:197
Aws::RDS::Model::OptionSetting::SetApplyType
void SetApplyType(const char *value)
Definition: OptionSetting.h:233
Aws::RDS::Model::OptionSetting::WithValue
OptionSetting & WithValue(Aws::String &&value)
Definition: OptionSetting.h:120
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::OptionSetting::SetDefaultValue
void SetDefaultValue(const char *value)
Definition: OptionSetting.h:151
Aws::RDS::Model::OptionSetting::SetDefaultValue
void SetDefaultValue(const Aws::String &value)
Definition: OptionSetting.h:141
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::OptionSetting::WithIsModifiable
OptionSetting & WithIsModifiable(bool value)
Definition: OptionSetting.h:355
Aws::RDS::Model::OptionSetting::SetAllowedValues
void SetAllowedValues(const Aws::String &value)
Definition: OptionSetting.h:305
Aws::RDS::Model::OptionSetting::SetApplyType
void SetApplyType(Aws::String &&value)
Definition: OptionSetting.h:228
Aws::RDS::Model::OptionSetting::SetAllowedValues
void SetAllowedValues(const char *value)
Definition: OptionSetting.h:315
Aws::RDS::Model::OptionSetting::WithApplyType
OptionSetting & WithApplyType(const char *value)
Definition: OptionSetting.h:248
Aws::RDS::Model::OptionSetting::WithIsCollection
OptionSetting & WithIsCollection(bool value)
Definition: OptionSetting.h:376
Aws::RDS::Model::OptionSetting::WithAllowedValues
OptionSetting & WithAllowedValues(const Aws::String &value)
Definition: OptionSetting.h:320
AWSString.h
Aws::RDS::Model::OptionSetting::GetDefaultValue
const Aws::String & GetDefaultValue() const
Definition: OptionSetting.h:131
Aws::RDS::Model::OptionSetting::OptionSetting
OptionSetting()
Aws::RDS::Model::OptionSetting::GetAllowedValues
const Aws::String & GetAllowedValues() const
Definition: OptionSetting.h:295
Aws::RDS::Model::OptionSetting
Definition: OptionSetting.h:36
Aws::RDS::Model::OptionSetting::DataTypeHasBeenSet
bool DataTypeHasBeenSet() const
Definition: OptionSetting.h:259
Aws::RDS::Model::OptionSetting::WithApplyType
OptionSetting & WithApplyType(Aws::String &&value)
Definition: OptionSetting.h:243
Aws::RDS::Model::OptionSetting::WithName
OptionSetting & WithName(const Aws::String &value)
Definition: OptionSetting.h:74
Aws::RDS::Model::OptionSetting::SetValue
void SetValue(const char *value)
Definition: OptionSetting.h:110
Aws::RDS::Model::OptionSetting::SetDataType
void SetDataType(const char *value)
Definition: OptionSetting.h:274
Aws::RDS::Model::OptionSetting::OptionSetting
OptionSetting(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::OptionSetting::WithDescription
OptionSetting & WithDescription(const char *value)
Definition: OptionSetting.h:207
Aws::RDS::Model::OptionSetting::ApplyTypeHasBeenSet
bool ApplyTypeHasBeenSet() const
Definition: OptionSetting.h:218
Aws::RDS::Model::OptionSetting::WithValue
OptionSetting & WithValue(const Aws::String &value)
Definition: OptionSetting.h:115
Aws::RDS::Model::OptionSetting::WithDefaultValue
OptionSetting & WithDefaultValue(Aws::String &&value)
Definition: OptionSetting.h:161
Aws::RDS::Model::OptionSetting::SetApplyType
void SetApplyType(const Aws::String &value)
Definition: OptionSetting.h:223
Aws::RDS::Model::OptionSetting::SetName
void SetName(Aws::String &&value)
Definition: OptionSetting.h:64
Aws::RDS::Model::OptionSetting::SetName
void SetName(const char *value)
Definition: OptionSetting.h:69
Aws::RDS::Model::OptionSetting::AllowedValuesHasBeenSet
bool AllowedValuesHasBeenSet() const
Definition: OptionSetting.h:300
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::OptionSetting::WithAllowedValues
OptionSetting & WithAllowedValues(Aws::String &&value)
Definition: OptionSetting.h:325
Aws::RDS::Model::OptionSetting::WithApplyType
OptionSetting & WithApplyType(const Aws::String &value)
Definition: OptionSetting.h:238
Aws::RDS::Model::OptionSetting::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::OptionSetting::WithDefaultValue
OptionSetting & WithDefaultValue(const Aws::String &value)
Definition: OptionSetting.h:156
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::OptionSetting::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: OptionSetting.h:177
Aws::RDS::Model::OptionSetting::SetAllowedValues
void SetAllowedValues(Aws::String &&value)
Definition: OptionSetting.h:310
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::OptionSetting::GetIsCollection
bool GetIsCollection() const
Definition: OptionSetting.h:361
Aws::RDS::Model::OptionSetting::WithName
OptionSetting & WithName(const char *value)
Definition: OptionSetting.h:84
Aws::RDS::Model::OptionSetting::SetDataType
void SetDataType(Aws::String &&value)
Definition: OptionSetting.h:269
Aws::RDS::Model::OptionSetting::SetIsModifiable
void SetIsModifiable(bool value)
Definition: OptionSetting.h:349
Aws::RDS::Model::OptionSetting::WithDataType
OptionSetting & WithDataType(const char *value)
Definition: OptionSetting.h:289
Aws::RDS::Model::OptionSetting::GetIsModifiable
bool GetIsModifiable() const
Definition: OptionSetting.h:337
Aws::RDS::Model::OptionSetting::WithDefaultValue
OptionSetting & WithDefaultValue(const char *value)
Definition: OptionSetting.h:166
Aws::RDS::Model::OptionSetting::GetValue
const Aws::String & GetValue() const
Definition: OptionSetting.h:90
Aws::RDS::Model::OptionSetting::WithValue
OptionSetting & WithValue(const char *value)
Definition: OptionSetting.h:125