AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OptionGroupOption.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/OptionGroupOptionSetting.h>
12#include <aws/rds/model/OptionVersion.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_RDS_API OptionGroupOption();
38 AWS_RDS_API OptionGroupOption(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline OptionGroupOption& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline OptionGroupOption& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline OptionGroupOption& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline OptionGroupOption& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline OptionGroupOption& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline OptionGroupOption& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
77 inline const Aws::String& GetEngineName() const{ return m_engineName; }
78 inline bool EngineNameHasBeenSet() const { return m_engineNameHasBeenSet; }
79 inline void SetEngineName(const Aws::String& value) { m_engineNameHasBeenSet = true; m_engineName = value; }
80 inline void SetEngineName(Aws::String&& value) { m_engineNameHasBeenSet = true; m_engineName = std::move(value); }
81 inline void SetEngineName(const char* value) { m_engineNameHasBeenSet = true; m_engineName.assign(value); }
82 inline OptionGroupOption& WithEngineName(const Aws::String& value) { SetEngineName(value); return *this;}
83 inline OptionGroupOption& WithEngineName(Aws::String&& value) { SetEngineName(std::move(value)); return *this;}
84 inline OptionGroupOption& WithEngineName(const char* value) { SetEngineName(value); return *this;}
86
88
91 inline const Aws::String& GetMajorEngineVersion() const{ return m_majorEngineVersion; }
92 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
93 inline void SetMajorEngineVersion(const Aws::String& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = value; }
94 inline void SetMajorEngineVersion(Aws::String&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::move(value); }
95 inline void SetMajorEngineVersion(const char* value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion.assign(value); }
96 inline OptionGroupOption& WithMajorEngineVersion(const Aws::String& value) { SetMajorEngineVersion(value); return *this;}
97 inline OptionGroupOption& WithMajorEngineVersion(Aws::String&& value) { SetMajorEngineVersion(std::move(value)); return *this;}
98 inline OptionGroupOption& WithMajorEngineVersion(const char* value) { SetMajorEngineVersion(value); return *this;}
100
102
105 inline const Aws::String& GetMinimumRequiredMinorEngineVersion() const{ return m_minimumRequiredMinorEngineVersion; }
106 inline bool MinimumRequiredMinorEngineVersionHasBeenSet() const { return m_minimumRequiredMinorEngineVersionHasBeenSet; }
107 inline void SetMinimumRequiredMinorEngineVersion(const Aws::String& value) { m_minimumRequiredMinorEngineVersionHasBeenSet = true; m_minimumRequiredMinorEngineVersion = value; }
108 inline void SetMinimumRequiredMinorEngineVersion(Aws::String&& value) { m_minimumRequiredMinorEngineVersionHasBeenSet = true; m_minimumRequiredMinorEngineVersion = std::move(value); }
109 inline void SetMinimumRequiredMinorEngineVersion(const char* value) { m_minimumRequiredMinorEngineVersionHasBeenSet = true; m_minimumRequiredMinorEngineVersion.assign(value); }
114
116
119 inline bool GetPortRequired() const{ return m_portRequired; }
120 inline bool PortRequiredHasBeenSet() const { return m_portRequiredHasBeenSet; }
121 inline void SetPortRequired(bool value) { m_portRequiredHasBeenSet = true; m_portRequired = value; }
122 inline OptionGroupOption& WithPortRequired(bool value) { SetPortRequired(value); return *this;}
124
126
129 inline int GetDefaultPort() const{ return m_defaultPort; }
130 inline bool DefaultPortHasBeenSet() const { return m_defaultPortHasBeenSet; }
131 inline void SetDefaultPort(int value) { m_defaultPortHasBeenSet = true; m_defaultPort = value; }
132 inline OptionGroupOption& WithDefaultPort(int value) { SetDefaultPort(value); return *this;}
134
136
139 inline const Aws::Vector<Aws::String>& GetOptionsDependedOn() const{ return m_optionsDependedOn; }
140 inline bool OptionsDependedOnHasBeenSet() const { return m_optionsDependedOnHasBeenSet; }
141 inline void SetOptionsDependedOn(const Aws::Vector<Aws::String>& value) { m_optionsDependedOnHasBeenSet = true; m_optionsDependedOn = value; }
142 inline void SetOptionsDependedOn(Aws::Vector<Aws::String>&& value) { m_optionsDependedOnHasBeenSet = true; m_optionsDependedOn = std::move(value); }
145 inline OptionGroupOption& AddOptionsDependedOn(const Aws::String& value) { m_optionsDependedOnHasBeenSet = true; m_optionsDependedOn.push_back(value); return *this; }
146 inline OptionGroupOption& AddOptionsDependedOn(Aws::String&& value) { m_optionsDependedOnHasBeenSet = true; m_optionsDependedOn.push_back(std::move(value)); return *this; }
147 inline OptionGroupOption& AddOptionsDependedOn(const char* value) { m_optionsDependedOnHasBeenSet = true; m_optionsDependedOn.push_back(value); return *this; }
149
151
154 inline const Aws::Vector<Aws::String>& GetOptionsConflictsWith() const{ return m_optionsConflictsWith; }
155 inline bool OptionsConflictsWithHasBeenSet() const { return m_optionsConflictsWithHasBeenSet; }
156 inline void SetOptionsConflictsWith(const Aws::Vector<Aws::String>& value) { m_optionsConflictsWithHasBeenSet = true; m_optionsConflictsWith = value; }
157 inline void SetOptionsConflictsWith(Aws::Vector<Aws::String>&& value) { m_optionsConflictsWithHasBeenSet = true; m_optionsConflictsWith = std::move(value); }
160 inline OptionGroupOption& AddOptionsConflictsWith(const Aws::String& value) { m_optionsConflictsWithHasBeenSet = true; m_optionsConflictsWith.push_back(value); return *this; }
161 inline OptionGroupOption& AddOptionsConflictsWith(Aws::String&& value) { m_optionsConflictsWithHasBeenSet = true; m_optionsConflictsWith.push_back(std::move(value)); return *this; }
162 inline OptionGroupOption& AddOptionsConflictsWith(const char* value) { m_optionsConflictsWithHasBeenSet = true; m_optionsConflictsWith.push_back(value); return *this; }
164
166
172 inline bool GetPersistent() const{ return m_persistent; }
173 inline bool PersistentHasBeenSet() const { return m_persistentHasBeenSet; }
174 inline void SetPersistent(bool value) { m_persistentHasBeenSet = true; m_persistent = value; }
175 inline OptionGroupOption& WithPersistent(bool value) { SetPersistent(value); return *this;}
177
179
183 inline bool GetPermanent() const{ return m_permanent; }
184 inline bool PermanentHasBeenSet() const { return m_permanentHasBeenSet; }
185 inline void SetPermanent(bool value) { m_permanentHasBeenSet = true; m_permanent = value; }
186 inline OptionGroupOption& WithPermanent(bool value) { SetPermanent(value); return *this;}
188
190
196 inline bool GetRequiresAutoMinorEngineVersionUpgrade() const{ return m_requiresAutoMinorEngineVersionUpgrade; }
197 inline bool RequiresAutoMinorEngineVersionUpgradeHasBeenSet() const { return m_requiresAutoMinorEngineVersionUpgradeHasBeenSet; }
198 inline void SetRequiresAutoMinorEngineVersionUpgrade(bool value) { m_requiresAutoMinorEngineVersionUpgradeHasBeenSet = true; m_requiresAutoMinorEngineVersionUpgrade = value; }
201
203
207 inline bool GetVpcOnly() const{ return m_vpcOnly; }
208 inline bool VpcOnlyHasBeenSet() const { return m_vpcOnlyHasBeenSet; }
209 inline void SetVpcOnly(bool value) { m_vpcOnlyHasBeenSet = true; m_vpcOnly = value; }
210 inline OptionGroupOption& WithVpcOnly(bool value) { SetVpcOnly(value); return *this;}
212
214
218 inline bool GetSupportsOptionVersionDowngrade() const{ return m_supportsOptionVersionDowngrade; }
219 inline bool SupportsOptionVersionDowngradeHasBeenSet() const { return m_supportsOptionVersionDowngradeHasBeenSet; }
220 inline void SetSupportsOptionVersionDowngrade(bool value) { m_supportsOptionVersionDowngradeHasBeenSet = true; m_supportsOptionVersionDowngrade = value; }
223
225
229 inline const Aws::Vector<OptionGroupOptionSetting>& GetOptionGroupOptionSettings() const{ return m_optionGroupOptionSettings; }
230 inline bool OptionGroupOptionSettingsHasBeenSet() const { return m_optionGroupOptionSettingsHasBeenSet; }
231 inline void SetOptionGroupOptionSettings(const Aws::Vector<OptionGroupOptionSetting>& value) { m_optionGroupOptionSettingsHasBeenSet = true; m_optionGroupOptionSettings = value; }
232 inline void SetOptionGroupOptionSettings(Aws::Vector<OptionGroupOptionSetting>&& value) { m_optionGroupOptionSettingsHasBeenSet = true; m_optionGroupOptionSettings = std::move(value); }
235 inline OptionGroupOption& AddOptionGroupOptionSettings(const OptionGroupOptionSetting& value) { m_optionGroupOptionSettingsHasBeenSet = true; m_optionGroupOptionSettings.push_back(value); return *this; }
236 inline OptionGroupOption& AddOptionGroupOptionSettings(OptionGroupOptionSetting&& value) { m_optionGroupOptionSettingsHasBeenSet = true; m_optionGroupOptionSettings.push_back(std::move(value)); return *this; }
238
240
243 inline const Aws::Vector<OptionVersion>& GetOptionGroupOptionVersions() const{ return m_optionGroupOptionVersions; }
244 inline bool OptionGroupOptionVersionsHasBeenSet() const { return m_optionGroupOptionVersionsHasBeenSet; }
245 inline void SetOptionGroupOptionVersions(const Aws::Vector<OptionVersion>& value) { m_optionGroupOptionVersionsHasBeenSet = true; m_optionGroupOptionVersions = value; }
246 inline void SetOptionGroupOptionVersions(Aws::Vector<OptionVersion>&& value) { m_optionGroupOptionVersionsHasBeenSet = true; m_optionGroupOptionVersions = std::move(value); }
249 inline OptionGroupOption& AddOptionGroupOptionVersions(const OptionVersion& value) { m_optionGroupOptionVersionsHasBeenSet = true; m_optionGroupOptionVersions.push_back(value); return *this; }
250 inline OptionGroupOption& AddOptionGroupOptionVersions(OptionVersion&& value) { m_optionGroupOptionVersionsHasBeenSet = true; m_optionGroupOptionVersions.push_back(std::move(value)); return *this; }
252
254
258 inline bool GetCopyableCrossAccount() const{ return m_copyableCrossAccount; }
259 inline bool CopyableCrossAccountHasBeenSet() const { return m_copyableCrossAccountHasBeenSet; }
260 inline void SetCopyableCrossAccount(bool value) { m_copyableCrossAccountHasBeenSet = true; m_copyableCrossAccount = value; }
261 inline OptionGroupOption& WithCopyableCrossAccount(bool value) { SetCopyableCrossAccount(value); return *this;}
263 private:
264
265 Aws::String m_name;
266 bool m_nameHasBeenSet = false;
267
268 Aws::String m_description;
269 bool m_descriptionHasBeenSet = false;
270
271 Aws::String m_engineName;
272 bool m_engineNameHasBeenSet = false;
273
274 Aws::String m_majorEngineVersion;
275 bool m_majorEngineVersionHasBeenSet = false;
276
277 Aws::String m_minimumRequiredMinorEngineVersion;
278 bool m_minimumRequiredMinorEngineVersionHasBeenSet = false;
279
280 bool m_portRequired;
281 bool m_portRequiredHasBeenSet = false;
282
283 int m_defaultPort;
284 bool m_defaultPortHasBeenSet = false;
285
286 Aws::Vector<Aws::String> m_optionsDependedOn;
287 bool m_optionsDependedOnHasBeenSet = false;
288
289 Aws::Vector<Aws::String> m_optionsConflictsWith;
290 bool m_optionsConflictsWithHasBeenSet = false;
291
292 bool m_persistent;
293 bool m_persistentHasBeenSet = false;
294
295 bool m_permanent;
296 bool m_permanentHasBeenSet = false;
297
298 bool m_requiresAutoMinorEngineVersionUpgrade;
299 bool m_requiresAutoMinorEngineVersionUpgradeHasBeenSet = false;
300
301 bool m_vpcOnly;
302 bool m_vpcOnlyHasBeenSet = false;
303
304 bool m_supportsOptionVersionDowngrade;
305 bool m_supportsOptionVersionDowngradeHasBeenSet = false;
306
307 Aws::Vector<OptionGroupOptionSetting> m_optionGroupOptionSettings;
308 bool m_optionGroupOptionSettingsHasBeenSet = false;
309
310 Aws::Vector<OptionVersion> m_optionGroupOptionVersions;
311 bool m_optionGroupOptionVersionsHasBeenSet = false;
312
313 bool m_copyableCrossAccount;
314 bool m_copyableCrossAccountHasBeenSet = false;
315 };
316
317} // namespace Model
318} // namespace RDS
319} // namespace Aws
const Aws::String & GetDescription() const
OptionGroupOption & AddOptionsConflictsWith(const char *value)
OptionGroupOption & WithName(const Aws::String &value)
OptionGroupOption & AddOptionGroupOptionSettings(const OptionGroupOptionSetting &value)
const Aws::Vector< Aws::String > & GetOptionsConflictsWith() const
OptionGroupOption & AddOptionsConflictsWith(const Aws::String &value)
AWS_RDS_API OptionGroupOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OptionGroupOption & WithDescription(Aws::String &&value)
const Aws::Vector< OptionGroupOptionSetting > & GetOptionGroupOptionSettings() const
OptionGroupOption & WithMinimumRequiredMinorEngineVersion(Aws::String &&value)
const Aws::Vector< OptionVersion > & GetOptionGroupOptionVersions() const
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OptionGroupOption & WithMajorEngineVersion(const Aws::String &value)
OptionGroupOption & WithEngineName(Aws::String &&value)
void SetOptionsConflictsWith(const Aws::Vector< Aws::String > &value)
void SetOptionGroupOptionSettings(Aws::Vector< OptionGroupOptionSetting > &&value)
void SetDescription(const Aws::String &value)
OptionGroupOption & WithPortRequired(bool value)
OptionGroupOption & WithEngineName(const char *value)
void SetEngineName(const char *value)
OptionGroupOption & AddOptionGroupOptionVersions(OptionVersion &&value)
OptionGroupOption & WithMinimumRequiredMinorEngineVersion(const char *value)
void SetDescription(Aws::String &&value)
void SetDescription(const char *value)
void SetRequiresAutoMinorEngineVersionUpgrade(bool value)
void SetMajorEngineVersion(Aws::String &&value)
bool RequiresAutoMinorEngineVersionUpgradeHasBeenSet() const
void SetName(const Aws::String &value)
OptionGroupOption & AddOptionsDependedOn(const char *value)
OptionGroupOption & WithEngineName(const Aws::String &value)
OptionGroupOption & WithPermanent(bool value)
AWS_RDS_API OptionGroupOption(const Aws::Utils::Xml::XmlNode &xmlNode)
OptionGroupOption & WithOptionsConflictsWith(Aws::Vector< Aws::String > &&value)
void SetEngineName(Aws::String &&value)
const Aws::String & GetEngineName() const
const Aws::Vector< Aws::String > & GetOptionsDependedOn() const
void SetName(Aws::String &&value)
OptionGroupOption & WithMinimumRequiredMinorEngineVersion(const Aws::String &value)
OptionGroupOption & WithRequiresAutoMinorEngineVersionUpgrade(bool value)
void SetMinimumRequiredMinorEngineVersion(const Aws::String &value)
const Aws::String & GetMajorEngineVersion() const
void SetOptionGroupOptionSettings(const Aws::Vector< OptionGroupOptionSetting > &value)
OptionGroupOption & WithOptionsConflictsWith(const Aws::Vector< Aws::String > &value)
void SetOptionsConflictsWith(Aws::Vector< Aws::String > &&value)
void SetEngineName(const Aws::String &value)
OptionGroupOption & WithDefaultPort(int value)
const Aws::String & GetName() const
OptionGroupOption & WithName(Aws::String &&value)
void SetOptionsDependedOn(const Aws::Vector< Aws::String > &value)
const Aws::String & GetMinimumRequiredMinorEngineVersion() const
void SetOptionsDependedOn(Aws::Vector< Aws::String > &&value)
OptionGroupOption & WithOptionsDependedOn(Aws::Vector< Aws::String > &&value)
OptionGroupOption & AddOptionsDependedOn(const Aws::String &value)
OptionGroupOption & AddOptionsDependedOn(Aws::String &&value)
OptionGroupOption & WithOptionsDependedOn(const Aws::Vector< Aws::String > &value)
void SetOptionGroupOptionVersions(Aws::Vector< OptionVersion > &&value)
void SetOptionGroupOptionVersions(const Aws::Vector< OptionVersion > &value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
OptionGroupOption & WithName(const char *value)
OptionGroupOption & WithOptionGroupOptionVersions(Aws::Vector< OptionVersion > &&value)
OptionGroupOption & WithMajorEngineVersion(const char *value)
OptionGroupOption & WithCopyableCrossAccount(bool value)
OptionGroupOption & WithOptionGroupOptionVersions(const Aws::Vector< OptionVersion > &value)
OptionGroupOption & WithOptionGroupOptionSettings(const Aws::Vector< OptionGroupOptionSetting > &value)
OptionGroupOption & WithOptionGroupOptionSettings(Aws::Vector< OptionGroupOptionSetting > &&value)
OptionGroupOption & AddOptionGroupOptionVersions(const OptionVersion &value)
OptionGroupOption & WithDescription(const Aws::String &value)
OptionGroupOption & AddOptionsConflictsWith(Aws::String &&value)
OptionGroupOption & WithPersistent(bool value)
void SetMinimumRequiredMinorEngineVersion(const char *value)
OptionGroupOption & AddOptionGroupOptionSettings(OptionGroupOptionSetting &&value)
OptionGroupOption & WithDescription(const char *value)
void SetMajorEngineVersion(const char *value)
OptionGroupOption & WithSupportsOptionVersionDowngrade(bool value)
OptionGroupOption & WithMajorEngineVersion(Aws::String &&value)
OptionGroupOption & WithVpcOnly(bool value)
void SetMajorEngineVersion(const Aws::String &value)
void SetMinimumRequiredMinorEngineVersion(Aws::String &&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