AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OptionSetting.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_RDS_API OptionSetting();
39 AWS_RDS_API OptionSetting(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_RDS_API OptionSetting& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline OptionSetting& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline OptionSetting& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline OptionSetting& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const Aws::String& GetValue() const{ return m_value; }
65 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
66 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
67 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
68 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
69 inline OptionSetting& WithValue(const Aws::String& value) { SetValue(value); return *this;}
70 inline OptionSetting& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
71 inline OptionSetting& WithValue(const char* value) { SetValue(value); return *this;}
73
75
78 inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
79 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
80 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
81 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
82 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
83 inline OptionSetting& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
84 inline OptionSetting& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
85 inline OptionSetting& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
87
89
92 inline const Aws::String& GetDescription() const{ return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
96 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
97 inline OptionSetting& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
98 inline OptionSetting& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
99 inline OptionSetting& WithDescription(const char* value) { SetDescription(value); return *this;}
101
103
106 inline const Aws::String& GetApplyType() const{ return m_applyType; }
107 inline bool ApplyTypeHasBeenSet() const { return m_applyTypeHasBeenSet; }
108 inline void SetApplyType(const Aws::String& value) { m_applyTypeHasBeenSet = true; m_applyType = value; }
109 inline void SetApplyType(Aws::String&& value) { m_applyTypeHasBeenSet = true; m_applyType = std::move(value); }
110 inline void SetApplyType(const char* value) { m_applyTypeHasBeenSet = true; m_applyType.assign(value); }
111 inline OptionSetting& WithApplyType(const Aws::String& value) { SetApplyType(value); return *this;}
112 inline OptionSetting& WithApplyType(Aws::String&& value) { SetApplyType(std::move(value)); return *this;}
113 inline OptionSetting& WithApplyType(const char* value) { SetApplyType(value); return *this;}
115
117
120 inline const Aws::String& GetDataType() const{ return m_dataType; }
121 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
122 inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
123 inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
124 inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); }
125 inline OptionSetting& WithDataType(const Aws::String& value) { SetDataType(value); return *this;}
126 inline OptionSetting& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;}
127 inline OptionSetting& WithDataType(const char* value) { SetDataType(value); return *this;}
129
131
134 inline const Aws::String& GetAllowedValues() const{ return m_allowedValues; }
135 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
136 inline void SetAllowedValues(const Aws::String& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
137 inline void SetAllowedValues(Aws::String&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); }
138 inline void SetAllowedValues(const char* value) { m_allowedValuesHasBeenSet = true; m_allowedValues.assign(value); }
139 inline OptionSetting& WithAllowedValues(const Aws::String& value) { SetAllowedValues(value); return *this;}
140 inline OptionSetting& WithAllowedValues(Aws::String&& value) { SetAllowedValues(std::move(value)); return *this;}
141 inline OptionSetting& WithAllowedValues(const char* value) { SetAllowedValues(value); return *this;}
143
145
148 inline bool GetIsModifiable() const{ return m_isModifiable; }
149 inline bool IsModifiableHasBeenSet() const { return m_isModifiableHasBeenSet; }
150 inline void SetIsModifiable(bool value) { m_isModifiableHasBeenSet = true; m_isModifiable = value; }
151 inline OptionSetting& WithIsModifiable(bool value) { SetIsModifiable(value); return *this;}
153
155
158 inline bool GetIsCollection() const{ return m_isCollection; }
159 inline bool IsCollectionHasBeenSet() const { return m_isCollectionHasBeenSet; }
160 inline void SetIsCollection(bool value) { m_isCollectionHasBeenSet = true; m_isCollection = value; }
161 inline OptionSetting& WithIsCollection(bool value) { SetIsCollection(value); return *this;}
163 private:
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_value;
169 bool m_valueHasBeenSet = false;
170
171 Aws::String m_defaultValue;
172 bool m_defaultValueHasBeenSet = false;
173
174 Aws::String m_description;
175 bool m_descriptionHasBeenSet = false;
176
177 Aws::String m_applyType;
178 bool m_applyTypeHasBeenSet = false;
179
180 Aws::String m_dataType;
181 bool m_dataTypeHasBeenSet = false;
182
183 Aws::String m_allowedValues;
184 bool m_allowedValuesHasBeenSet = false;
185
186 bool m_isModifiable;
187 bool m_isModifiableHasBeenSet = false;
188
189 bool m_isCollection;
190 bool m_isCollectionHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace RDS
195} // namespace Aws
OptionSetting & WithAllowedValues(Aws::String &&value)
OptionSetting & WithDataType(Aws::String &&value)
OptionSetting & WithValue(const char *value)
void SetDescription(const Aws::String &value)
void SetDefaultValue(const Aws::String &value)
OptionSetting & WithDataType(const char *value)
void SetDefaultValue(Aws::String &&value)
void SetApplyType(const char *value)
OptionSetting & WithName(const char *value)
OptionSetting & WithApplyType(Aws::String &&value)
OptionSetting & WithApplyType(const Aws::String &value)
OptionSetting & WithName(const Aws::String &value)
OptionSetting & WithValue(const Aws::String &value)
void SetApplyType(const Aws::String &value)
void SetDefaultValue(const char *value)
const Aws::String & GetDefaultValue() const
OptionSetting & WithIsModifiable(bool value)
OptionSetting & WithValue(Aws::String &&value)
void SetAllowedValues(const char *value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetAllowedValues() const
void SetName(Aws::String &&value)
const Aws::String & GetApplyType() const
void SetApplyType(Aws::String &&value)
void SetDataType(const char *value)
OptionSetting & WithDefaultValue(const Aws::String &value)
AWS_RDS_API OptionSetting & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OptionSetting & WithAllowedValues(const Aws::String &value)
const Aws::String & GetValue() const
OptionSetting & WithDataType(const Aws::String &value)
OptionSetting & WithAllowedValues(const char *value)
const Aws::String & GetName() const
const Aws::String & GetDescription() const
OptionSetting & WithDescription(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetAllowedValues(const Aws::String &value)
OptionSetting & WithDefaultValue(const char *value)
OptionSetting & WithName(Aws::String &&value)
void SetDescription(const char *value)
AWS_RDS_API OptionSetting(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetValue(const Aws::String &value)
OptionSetting & WithDescription(const char *value)
OptionSetting & WithIsCollection(bool value)
OptionSetting & WithDescription(Aws::String &&value)
OptionSetting & WithApplyType(const char *value)
void SetName(const Aws::String &value)
void SetDataType(const Aws::String &value)
void SetAllowedValues(Aws::String &&value)
OptionSetting & WithDefaultValue(Aws::String &&value)
const Aws::String & GetDataType() const
void SetDataType(Aws::String &&value)
void SetName(const char *value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetValue(Aws::String &&value)
void SetValue(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream