AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
OptionGroupOption.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/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/OptionGroupOptionSetting.h>
12#include <aws/rds/model/OptionVersion.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace RDS {
23namespace Model {
24
31 public:
32 AWS_RDS_API OptionGroupOption() = default;
33 AWS_RDS_API OptionGroupOption(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 OptionGroupOption& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 OptionGroupOption& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetEngineName() const { return m_engineName; }
80 inline bool EngineNameHasBeenSet() const { return m_engineNameHasBeenSet; }
81 template <typename EngineNameT = Aws::String>
82 void SetEngineName(EngineNameT&& value) {
83 m_engineNameHasBeenSet = true;
84 m_engineName = std::forward<EngineNameT>(value);
85 }
86 template <typename EngineNameT = Aws::String>
87 OptionGroupOption& WithEngineName(EngineNameT&& value) {
88 SetEngineName(std::forward<EngineNameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetMajorEngineVersion() const { return m_majorEngineVersion; }
98 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
99 template <typename MajorEngineVersionT = Aws::String>
100 void SetMajorEngineVersion(MajorEngineVersionT&& value) {
101 m_majorEngineVersionHasBeenSet = true;
102 m_majorEngineVersion = std::forward<MajorEngineVersionT>(value);
103 }
104 template <typename MajorEngineVersionT = Aws::String>
105 OptionGroupOption& WithMajorEngineVersion(MajorEngineVersionT&& value) {
106 SetMajorEngineVersion(std::forward<MajorEngineVersionT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetMinimumRequiredMinorEngineVersion() const { return m_minimumRequiredMinorEngineVersion; }
116 inline bool MinimumRequiredMinorEngineVersionHasBeenSet() const { return m_minimumRequiredMinorEngineVersionHasBeenSet; }
117 template <typename MinimumRequiredMinorEngineVersionT = Aws::String>
118 void SetMinimumRequiredMinorEngineVersion(MinimumRequiredMinorEngineVersionT&& value) {
119 m_minimumRequiredMinorEngineVersionHasBeenSet = true;
120 m_minimumRequiredMinorEngineVersion = std::forward<MinimumRequiredMinorEngineVersionT>(value);
121 }
122 template <typename MinimumRequiredMinorEngineVersionT = Aws::String>
123 OptionGroupOption& WithMinimumRequiredMinorEngineVersion(MinimumRequiredMinorEngineVersionT&& value) {
124 SetMinimumRequiredMinorEngineVersion(std::forward<MinimumRequiredMinorEngineVersionT>(value));
125 return *this;
126 }
128
130
133 inline bool GetPortRequired() const { return m_portRequired; }
134 inline bool PortRequiredHasBeenSet() const { return m_portRequiredHasBeenSet; }
135 inline void SetPortRequired(bool value) {
136 m_portRequiredHasBeenSet = true;
137 m_portRequired = value;
138 }
140 SetPortRequired(value);
141 return *this;
142 }
144
146
149 inline int GetDefaultPort() const { return m_defaultPort; }
150 inline bool DefaultPortHasBeenSet() const { return m_defaultPortHasBeenSet; }
151 inline void SetDefaultPort(int value) {
152 m_defaultPortHasBeenSet = true;
153 m_defaultPort = value;
154 }
156 SetDefaultPort(value);
157 return *this;
158 }
160
162
165 inline const Aws::Vector<Aws::String>& GetOptionsDependedOn() const { return m_optionsDependedOn; }
166 inline bool OptionsDependedOnHasBeenSet() const { return m_optionsDependedOnHasBeenSet; }
167 template <typename OptionsDependedOnT = Aws::Vector<Aws::String>>
168 void SetOptionsDependedOn(OptionsDependedOnT&& value) {
169 m_optionsDependedOnHasBeenSet = true;
170 m_optionsDependedOn = std::forward<OptionsDependedOnT>(value);
171 }
172 template <typename OptionsDependedOnT = Aws::Vector<Aws::String>>
173 OptionGroupOption& WithOptionsDependedOn(OptionsDependedOnT&& value) {
174 SetOptionsDependedOn(std::forward<OptionsDependedOnT>(value));
175 return *this;
176 }
177 template <typename OptionsDependedOnT = Aws::String>
178 OptionGroupOption& AddOptionsDependedOn(OptionsDependedOnT&& value) {
179 m_optionsDependedOnHasBeenSet = true;
180 m_optionsDependedOn.emplace_back(std::forward<OptionsDependedOnT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Vector<Aws::String>& GetOptionsConflictsWith() const { return m_optionsConflictsWith; }
190 inline bool OptionsConflictsWithHasBeenSet() const { return m_optionsConflictsWithHasBeenSet; }
191 template <typename OptionsConflictsWithT = Aws::Vector<Aws::String>>
192 void SetOptionsConflictsWith(OptionsConflictsWithT&& value) {
193 m_optionsConflictsWithHasBeenSet = true;
194 m_optionsConflictsWith = std::forward<OptionsConflictsWithT>(value);
195 }
196 template <typename OptionsConflictsWithT = Aws::Vector<Aws::String>>
197 OptionGroupOption& WithOptionsConflictsWith(OptionsConflictsWithT&& value) {
198 SetOptionsConflictsWith(std::forward<OptionsConflictsWithT>(value));
199 return *this;
200 }
201 template <typename OptionsConflictsWithT = Aws::String>
202 OptionGroupOption& AddOptionsConflictsWith(OptionsConflictsWithT&& value) {
203 m_optionsConflictsWithHasBeenSet = true;
204 m_optionsConflictsWith.emplace_back(std::forward<OptionsConflictsWithT>(value));
205 return *this;
206 }
208
210
216 inline bool GetPersistent() const { return m_persistent; }
217 inline bool PersistentHasBeenSet() const { return m_persistentHasBeenSet; }
218 inline void SetPersistent(bool value) {
219 m_persistentHasBeenSet = true;
220 m_persistent = value;
221 }
222 inline OptionGroupOption& WithPersistent(bool value) {
223 SetPersistent(value);
224 return *this;
225 }
227
229
233 inline bool GetPermanent() const { return m_permanent; }
234 inline bool PermanentHasBeenSet() const { return m_permanentHasBeenSet; }
235 inline void SetPermanent(bool value) {
236 m_permanentHasBeenSet = true;
237 m_permanent = value;
238 }
239 inline OptionGroupOption& WithPermanent(bool value) {
240 SetPermanent(value);
241 return *this;
242 }
244
246
252 inline bool GetRequiresAutoMinorEngineVersionUpgrade() const { return m_requiresAutoMinorEngineVersionUpgrade; }
253 inline bool RequiresAutoMinorEngineVersionUpgradeHasBeenSet() const { return m_requiresAutoMinorEngineVersionUpgradeHasBeenSet; }
255 m_requiresAutoMinorEngineVersionUpgradeHasBeenSet = true;
256 m_requiresAutoMinorEngineVersionUpgrade = value;
257 }
260 return *this;
261 }
263
265
269 inline bool GetVpcOnly() const { return m_vpcOnly; }
270 inline bool VpcOnlyHasBeenSet() const { return m_vpcOnlyHasBeenSet; }
271 inline void SetVpcOnly(bool value) {
272 m_vpcOnlyHasBeenSet = true;
273 m_vpcOnly = value;
274 }
275 inline OptionGroupOption& WithVpcOnly(bool value) {
276 SetVpcOnly(value);
277 return *this;
278 }
280
282
286 inline bool GetSupportsOptionVersionDowngrade() const { return m_supportsOptionVersionDowngrade; }
287 inline bool SupportsOptionVersionDowngradeHasBeenSet() const { return m_supportsOptionVersionDowngradeHasBeenSet; }
288 inline void SetSupportsOptionVersionDowngrade(bool value) {
289 m_supportsOptionVersionDowngradeHasBeenSet = true;
290 m_supportsOptionVersionDowngrade = value;
291 }
294 return *this;
295 }
297
299
303 inline const Aws::Vector<OptionGroupOptionSetting>& GetOptionGroupOptionSettings() const { return m_optionGroupOptionSettings; }
304 inline bool OptionGroupOptionSettingsHasBeenSet() const { return m_optionGroupOptionSettingsHasBeenSet; }
305 template <typename OptionGroupOptionSettingsT = Aws::Vector<OptionGroupOptionSetting>>
306 void SetOptionGroupOptionSettings(OptionGroupOptionSettingsT&& value) {
307 m_optionGroupOptionSettingsHasBeenSet = true;
308 m_optionGroupOptionSettings = std::forward<OptionGroupOptionSettingsT>(value);
309 }
310 template <typename OptionGroupOptionSettingsT = Aws::Vector<OptionGroupOptionSetting>>
311 OptionGroupOption& WithOptionGroupOptionSettings(OptionGroupOptionSettingsT&& value) {
312 SetOptionGroupOptionSettings(std::forward<OptionGroupOptionSettingsT>(value));
313 return *this;
314 }
315 template <typename OptionGroupOptionSettingsT = OptionGroupOptionSetting>
316 OptionGroupOption& AddOptionGroupOptionSettings(OptionGroupOptionSettingsT&& value) {
317 m_optionGroupOptionSettingsHasBeenSet = true;
318 m_optionGroupOptionSettings.emplace_back(std::forward<OptionGroupOptionSettingsT>(value));
319 return *this;
320 }
322
324
327 inline const Aws::Vector<OptionVersion>& GetOptionGroupOptionVersions() const { return m_optionGroupOptionVersions; }
328 inline bool OptionGroupOptionVersionsHasBeenSet() const { return m_optionGroupOptionVersionsHasBeenSet; }
329 template <typename OptionGroupOptionVersionsT = Aws::Vector<OptionVersion>>
330 void SetOptionGroupOptionVersions(OptionGroupOptionVersionsT&& value) {
331 m_optionGroupOptionVersionsHasBeenSet = true;
332 m_optionGroupOptionVersions = std::forward<OptionGroupOptionVersionsT>(value);
333 }
334 template <typename OptionGroupOptionVersionsT = Aws::Vector<OptionVersion>>
335 OptionGroupOption& WithOptionGroupOptionVersions(OptionGroupOptionVersionsT&& value) {
336 SetOptionGroupOptionVersions(std::forward<OptionGroupOptionVersionsT>(value));
337 return *this;
338 }
339 template <typename OptionGroupOptionVersionsT = OptionVersion>
340 OptionGroupOption& AddOptionGroupOptionVersions(OptionGroupOptionVersionsT&& value) {
341 m_optionGroupOptionVersionsHasBeenSet = true;
342 m_optionGroupOptionVersions.emplace_back(std::forward<OptionGroupOptionVersionsT>(value));
343 return *this;
344 }
346
348
352 inline bool GetCopyableCrossAccount() const { return m_copyableCrossAccount; }
353 inline bool CopyableCrossAccountHasBeenSet() const { return m_copyableCrossAccountHasBeenSet; }
354 inline void SetCopyableCrossAccount(bool value) {
355 m_copyableCrossAccountHasBeenSet = true;
356 m_copyableCrossAccount = value;
357 }
360 return *this;
361 }
363 private:
364 Aws::String m_name;
365
366 Aws::String m_description;
367
368 Aws::String m_engineName;
369
370 Aws::String m_majorEngineVersion;
371
372 Aws::String m_minimumRequiredMinorEngineVersion;
373
374 bool m_portRequired{false};
375
376 int m_defaultPort{0};
377
378 Aws::Vector<Aws::String> m_optionsDependedOn;
379
380 Aws::Vector<Aws::String> m_optionsConflictsWith;
381
382 bool m_persistent{false};
383
384 bool m_permanent{false};
385
386 bool m_requiresAutoMinorEngineVersionUpgrade{false};
387
388 bool m_vpcOnly{false};
389
390 bool m_supportsOptionVersionDowngrade{false};
391
392 Aws::Vector<OptionGroupOptionSetting> m_optionGroupOptionSettings;
393
394 Aws::Vector<OptionVersion> m_optionGroupOptionVersions;
395
396 bool m_copyableCrossAccount{false};
397 bool m_nameHasBeenSet = false;
398 bool m_descriptionHasBeenSet = false;
399 bool m_engineNameHasBeenSet = false;
400 bool m_majorEngineVersionHasBeenSet = false;
401 bool m_minimumRequiredMinorEngineVersionHasBeenSet = false;
402 bool m_portRequiredHasBeenSet = false;
403 bool m_defaultPortHasBeenSet = false;
404 bool m_optionsDependedOnHasBeenSet = false;
405 bool m_optionsConflictsWithHasBeenSet = false;
406 bool m_persistentHasBeenSet = false;
407 bool m_permanentHasBeenSet = false;
408 bool m_requiresAutoMinorEngineVersionUpgradeHasBeenSet = false;
409 bool m_vpcOnlyHasBeenSet = false;
410 bool m_supportsOptionVersionDowngradeHasBeenSet = false;
411 bool m_optionGroupOptionSettingsHasBeenSet = false;
412 bool m_optionGroupOptionVersionsHasBeenSet = false;
413 bool m_copyableCrossAccountHasBeenSet = false;
414};
415
416} // namespace Model
417} // namespace RDS
418} // namespace Aws
const Aws::String & GetDescription() const
OptionGroupOption & AddOptionGroupOptionSettings(OptionGroupOptionSettingsT &&value)
OptionGroupOption & AddOptionGroupOptionVersions(OptionGroupOptionVersionsT &&value)
const Aws::Vector< Aws::String > & GetOptionsConflictsWith() const
AWS_RDS_API OptionGroupOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< OptionGroupOptionSetting > & GetOptionGroupOptionSettings() const
const Aws::Vector< OptionVersion > & GetOptionGroupOptionVersions() const
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OptionGroupOption & WithPortRequired(bool value)
void SetRequiresAutoMinorEngineVersionUpgrade(bool value)
OptionGroupOption & WithOptionsDependedOn(OptionsDependedOnT &&value)
OptionGroupOption & WithDescription(DescriptionT &&value)
bool RequiresAutoMinorEngineVersionUpgradeHasBeenSet() const
OptionGroupOption & WithEngineName(EngineNameT &&value)
OptionGroupOption & WithPermanent(bool value)
AWS_RDS_API OptionGroupOption(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(DescriptionT &&value)
const Aws::String & GetEngineName() const
const Aws::Vector< Aws::String > & GetOptionsDependedOn() const
void SetOptionGroupOptionSettings(OptionGroupOptionSettingsT &&value)
OptionGroupOption & WithRequiresAutoMinorEngineVersionUpgrade(bool value)
const Aws::String & GetMajorEngineVersion() const
OptionGroupOption & WithName(NameT &&value)
void SetOptionsConflictsWith(OptionsConflictsWithT &&value)
OptionGroupOption & WithDefaultPort(int value)
OptionGroupOption & WithOptionGroupOptionVersions(OptionGroupOptionVersionsT &&value)
const Aws::String & GetName() const
void SetEngineName(EngineNameT &&value)
OptionGroupOption & WithOptionsConflictsWith(OptionsConflictsWithT &&value)
void SetMajorEngineVersion(MajorEngineVersionT &&value)
const Aws::String & GetMinimumRequiredMinorEngineVersion() const
AWS_RDS_API OptionGroupOption()=default
OptionGroupOption & WithMajorEngineVersion(MajorEngineVersionT &&value)
void SetMinimumRequiredMinorEngineVersion(MinimumRequiredMinorEngineVersionT &&value)
OptionGroupOption & AddOptionsConflictsWith(OptionsConflictsWithT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
OptionGroupOption & WithCopyableCrossAccount(bool value)
void SetOptionsDependedOn(OptionsDependedOnT &&value)
OptionGroupOption & AddOptionsDependedOn(OptionsDependedOnT &&value)
OptionGroupOption & WithPersistent(bool value)
OptionGroupOption & WithOptionGroupOptionSettings(OptionGroupOptionSettingsT &&value)
OptionGroupOption & WithSupportsOptionVersionDowngrade(bool value)
OptionGroupOption & WithMinimumRequiredMinorEngineVersion(MinimumRequiredMinorEngineVersionT &&value)
OptionGroupOption & WithVpcOnly(bool value)
void SetOptionGroupOptionVersions(OptionGroupOptionVersionsT &&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