AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OptionGroup.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/core/utils/DateTime.h>
12#include <aws/rds/model/Option.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 OptionGroup();
38 AWS_RDS_API OptionGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_RDS_API OptionGroup& operator=(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& GetOptionGroupName() const{ return m_optionGroupName; }
50 inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
51 inline void SetOptionGroupName(const Aws::String& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = value; }
52 inline void SetOptionGroupName(Aws::String&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::move(value); }
53 inline void SetOptionGroupName(const char* value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName.assign(value); }
54 inline OptionGroup& WithOptionGroupName(const Aws::String& value) { SetOptionGroupName(value); return *this;}
55 inline OptionGroup& WithOptionGroupName(Aws::String&& value) { SetOptionGroupName(std::move(value)); return *this;}
56 inline OptionGroup& WithOptionGroupName(const char* value) { SetOptionGroupName(value); return *this;}
58
60
63 inline const Aws::String& GetOptionGroupDescription() const{ return m_optionGroupDescription; }
64 inline bool OptionGroupDescriptionHasBeenSet() const { return m_optionGroupDescriptionHasBeenSet; }
65 inline void SetOptionGroupDescription(const Aws::String& value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription = value; }
66 inline void SetOptionGroupDescription(Aws::String&& value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription = std::move(value); }
67 inline void SetOptionGroupDescription(const char* value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription.assign(value); }
68 inline OptionGroup& WithOptionGroupDescription(const Aws::String& value) { SetOptionGroupDescription(value); return *this;}
69 inline OptionGroup& WithOptionGroupDescription(Aws::String&& value) { SetOptionGroupDescription(std::move(value)); return *this;}
70 inline OptionGroup& WithOptionGroupDescription(const char* value) { SetOptionGroupDescription(value); return *this;}
72
74
78 inline const Aws::String& GetEngineName() const{ return m_engineName; }
79 inline bool EngineNameHasBeenSet() const { return m_engineNameHasBeenSet; }
80 inline void SetEngineName(const Aws::String& value) { m_engineNameHasBeenSet = true; m_engineName = value; }
81 inline void SetEngineName(Aws::String&& value) { m_engineNameHasBeenSet = true; m_engineName = std::move(value); }
82 inline void SetEngineName(const char* value) { m_engineNameHasBeenSet = true; m_engineName.assign(value); }
83 inline OptionGroup& WithEngineName(const Aws::String& value) { SetEngineName(value); return *this;}
84 inline OptionGroup& WithEngineName(Aws::String&& value) { SetEngineName(std::move(value)); return *this;}
85 inline OptionGroup& WithEngineName(const char* value) { SetEngineName(value); return *this;}
87
89
92 inline const Aws::String& GetMajorEngineVersion() const{ return m_majorEngineVersion; }
93 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
94 inline void SetMajorEngineVersion(const Aws::String& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = value; }
95 inline void SetMajorEngineVersion(Aws::String&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::move(value); }
96 inline void SetMajorEngineVersion(const char* value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion.assign(value); }
97 inline OptionGroup& WithMajorEngineVersion(const Aws::String& value) { SetMajorEngineVersion(value); return *this;}
98 inline OptionGroup& WithMajorEngineVersion(Aws::String&& value) { SetMajorEngineVersion(std::move(value)); return *this;}
99 inline OptionGroup& WithMajorEngineVersion(const char* value) { SetMajorEngineVersion(value); return *this;}
101
103
106 inline const Aws::Vector<Option>& GetOptions() const{ return m_options; }
107 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
108 inline void SetOptions(const Aws::Vector<Option>& value) { m_optionsHasBeenSet = true; m_options = value; }
109 inline void SetOptions(Aws::Vector<Option>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
110 inline OptionGroup& WithOptions(const Aws::Vector<Option>& value) { SetOptions(value); return *this;}
111 inline OptionGroup& WithOptions(Aws::Vector<Option>&& value) { SetOptions(std::move(value)); return *this;}
112 inline OptionGroup& AddOptions(const Option& value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; }
113 inline OptionGroup& AddOptions(Option&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; }
115
117
122 inline bool GetAllowsVpcAndNonVpcInstanceMemberships() const{ return m_allowsVpcAndNonVpcInstanceMemberships; }
123 inline bool AllowsVpcAndNonVpcInstanceMembershipsHasBeenSet() const { return m_allowsVpcAndNonVpcInstanceMembershipsHasBeenSet; }
124 inline void SetAllowsVpcAndNonVpcInstanceMemberships(bool value) { m_allowsVpcAndNonVpcInstanceMembershipsHasBeenSet = true; m_allowsVpcAndNonVpcInstanceMemberships = value; }
127
129
137 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
138 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
139 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
140 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
141 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
142 inline OptionGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
143 inline OptionGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
144 inline OptionGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
146
148
151 inline const Aws::String& GetOptionGroupArn() const{ return m_optionGroupArn; }
152 inline bool OptionGroupArnHasBeenSet() const { return m_optionGroupArnHasBeenSet; }
153 inline void SetOptionGroupArn(const Aws::String& value) { m_optionGroupArnHasBeenSet = true; m_optionGroupArn = value; }
154 inline void SetOptionGroupArn(Aws::String&& value) { m_optionGroupArnHasBeenSet = true; m_optionGroupArn = std::move(value); }
155 inline void SetOptionGroupArn(const char* value) { m_optionGroupArnHasBeenSet = true; m_optionGroupArn.assign(value); }
156 inline OptionGroup& WithOptionGroupArn(const Aws::String& value) { SetOptionGroupArn(value); return *this;}
157 inline OptionGroup& WithOptionGroupArn(Aws::String&& value) { SetOptionGroupArn(std::move(value)); return *this;}
158 inline OptionGroup& WithOptionGroupArn(const char* value) { SetOptionGroupArn(value); return *this;}
160
162
166 inline const Aws::String& GetSourceOptionGroup() const{ return m_sourceOptionGroup; }
167 inline bool SourceOptionGroupHasBeenSet() const { return m_sourceOptionGroupHasBeenSet; }
168 inline void SetSourceOptionGroup(const Aws::String& value) { m_sourceOptionGroupHasBeenSet = true; m_sourceOptionGroup = value; }
169 inline void SetSourceOptionGroup(Aws::String&& value) { m_sourceOptionGroupHasBeenSet = true; m_sourceOptionGroup = std::move(value); }
170 inline void SetSourceOptionGroup(const char* value) { m_sourceOptionGroupHasBeenSet = true; m_sourceOptionGroup.assign(value); }
171 inline OptionGroup& WithSourceOptionGroup(const Aws::String& value) { SetSourceOptionGroup(value); return *this;}
172 inline OptionGroup& WithSourceOptionGroup(Aws::String&& value) { SetSourceOptionGroup(std::move(value)); return *this;}
173 inline OptionGroup& WithSourceOptionGroup(const char* value) { SetSourceOptionGroup(value); return *this;}
175
177
181 inline const Aws::String& GetSourceAccountId() const{ return m_sourceAccountId; }
182 inline bool SourceAccountIdHasBeenSet() const { return m_sourceAccountIdHasBeenSet; }
183 inline void SetSourceAccountId(const Aws::String& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = value; }
184 inline void SetSourceAccountId(Aws::String&& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = std::move(value); }
185 inline void SetSourceAccountId(const char* value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId.assign(value); }
186 inline OptionGroup& WithSourceAccountId(const Aws::String& value) { SetSourceAccountId(value); return *this;}
187 inline OptionGroup& WithSourceAccountId(Aws::String&& value) { SetSourceAccountId(std::move(value)); return *this;}
188 inline OptionGroup& WithSourceAccountId(const char* value) { SetSourceAccountId(value); return *this;}
190
192
195 inline const Aws::Utils::DateTime& GetCopyTimestamp() const{ return m_copyTimestamp; }
196 inline bool CopyTimestampHasBeenSet() const { return m_copyTimestampHasBeenSet; }
197 inline void SetCopyTimestamp(const Aws::Utils::DateTime& value) { m_copyTimestampHasBeenSet = true; m_copyTimestamp = value; }
198 inline void SetCopyTimestamp(Aws::Utils::DateTime&& value) { m_copyTimestampHasBeenSet = true; m_copyTimestamp = std::move(value); }
199 inline OptionGroup& WithCopyTimestamp(const Aws::Utils::DateTime& value) { SetCopyTimestamp(value); return *this;}
200 inline OptionGroup& WithCopyTimestamp(Aws::Utils::DateTime&& value) { SetCopyTimestamp(std::move(value)); return *this;}
202 private:
203
204 Aws::String m_optionGroupName;
205 bool m_optionGroupNameHasBeenSet = false;
206
207 Aws::String m_optionGroupDescription;
208 bool m_optionGroupDescriptionHasBeenSet = false;
209
210 Aws::String m_engineName;
211 bool m_engineNameHasBeenSet = false;
212
213 Aws::String m_majorEngineVersion;
214 bool m_majorEngineVersionHasBeenSet = false;
215
216 Aws::Vector<Option> m_options;
217 bool m_optionsHasBeenSet = false;
218
219 bool m_allowsVpcAndNonVpcInstanceMemberships;
220 bool m_allowsVpcAndNonVpcInstanceMembershipsHasBeenSet = false;
221
222 Aws::String m_vpcId;
223 bool m_vpcIdHasBeenSet = false;
224
225 Aws::String m_optionGroupArn;
226 bool m_optionGroupArnHasBeenSet = false;
227
228 Aws::String m_sourceOptionGroup;
229 bool m_sourceOptionGroupHasBeenSet = false;
230
231 Aws::String m_sourceAccountId;
232 bool m_sourceAccountIdHasBeenSet = false;
233
234 Aws::Utils::DateTime m_copyTimestamp;
235 bool m_copyTimestampHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace RDS
240} // namespace Aws
void SetEngineName(Aws::String &&value)
Definition OptionGroup.h:81
const Aws::String & GetVpcId() const
AWS_RDS_API OptionGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMajorEngineVersion(const char *value)
Definition OptionGroup.h:96
const Aws::Utils::DateTime & GetCopyTimestamp() const
void SetOptionGroupArn(Aws::String &&value)
OptionGroup & WithOptionGroupArn(const char *value)
bool SourceOptionGroupHasBeenSet() const
OptionGroup & WithVpcId(const Aws::String &value)
void SetOptionGroupDescription(const Aws::String &value)
Definition OptionGroup.h:65
OptionGroup & WithOptions(Aws::Vector< Option > &&value)
void SetCopyTimestamp(const Aws::Utils::DateTime &value)
void SetOptionGroupDescription(const char *value)
Definition OptionGroup.h:67
OptionGroup & WithSourceAccountId(const Aws::String &value)
void SetSourceAccountId(const char *value)
OptionGroup & WithAllowsVpcAndNonVpcInstanceMemberships(bool value)
const Aws::String & GetMajorEngineVersion() const
Definition OptionGroup.h:92
OptionGroup & WithOptionGroupName(const char *value)
Definition OptionGroup.h:56
OptionGroup & WithVpcId(Aws::String &&value)
void SetEngineName(const Aws::String &value)
Definition OptionGroup.h:80
bool OptionGroupDescriptionHasBeenSet() const
Definition OptionGroup.h:64
void SetSourceAccountId(Aws::String &&value)
void SetAllowsVpcAndNonVpcInstanceMemberships(bool value)
void SetMajorEngineVersion(const Aws::String &value)
Definition OptionGroup.h:94
void SetVpcId(Aws::String &&value)
void SetOptionGroupName(const char *value)
Definition OptionGroup.h:53
OptionGroup & WithEngineName(const Aws::String &value)
Definition OptionGroup.h:83
bool AllowsVpcAndNonVpcInstanceMembershipsHasBeenSet() const
OptionGroup & WithOptionGroupDescription(Aws::String &&value)
Definition OptionGroup.h:69
const Aws::String & GetOptionGroupDescription() const
Definition OptionGroup.h:63
AWS_RDS_API OptionGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
OptionGroup & WithMajorEngineVersion(Aws::String &&value)
Definition OptionGroup.h:98
const Aws::Vector< Option > & GetOptions() const
void SetOptionGroupArn(const char *value)
OptionGroup & WithOptions(const Aws::Vector< Option > &value)
void SetEngineName(const char *value)
Definition OptionGroup.h:82
bool OptionGroupArnHasBeenSet() const
void SetMajorEngineVersion(Aws::String &&value)
Definition OptionGroup.h:95
bool EngineNameHasBeenSet() const
Definition OptionGroup.h:79
OptionGroup & WithSourceOptionGroup(const Aws::String &value)
OptionGroup & WithEngineName(Aws::String &&value)
Definition OptionGroup.h:84
OptionGroup & WithOptionGroupName(const Aws::String &value)
Definition OptionGroup.h:54
const Aws::String & GetSourceAccountId() const
OptionGroup & WithCopyTimestamp(const Aws::Utils::DateTime &value)
void SetCopyTimestamp(Aws::Utils::DateTime &&value)
OptionGroup & WithOptionGroupDescription(const char *value)
Definition OptionGroup.h:70
OptionGroup & WithOptionGroupDescription(const Aws::String &value)
Definition OptionGroup.h:68
const Aws::String & GetOptionGroupName() const
Definition OptionGroup.h:49
OptionGroup & AddOptions(Option &&value)
OptionGroup & WithSourceAccountId(Aws::String &&value)
OptionGroup & WithSourceAccountId(const char *value)
OptionGroup & WithMajorEngineVersion(const Aws::String &value)
Definition OptionGroup.h:97
bool OptionGroupNameHasBeenSet() const
Definition OptionGroup.h:50
OptionGroup & WithMajorEngineVersion(const char *value)
Definition OptionGroup.h:99
bool SourceAccountIdHasBeenSet() const
const Aws::String & GetEngineName() const
Definition OptionGroup.h:78
OptionGroup & WithSourceOptionGroup(const char *value)
OptionGroup & WithEngineName(const char *value)
Definition OptionGroup.h:85
void SetSourceOptionGroup(Aws::String &&value)
OptionGroup & WithVpcId(const char *value)
void SetSourceOptionGroup(const Aws::String &value)
void SetOptionGroupDescription(Aws::String &&value)
Definition OptionGroup.h:66
void SetOptions(const Aws::Vector< Option > &value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOptionGroupName(const Aws::String &value)
Definition OptionGroup.h:51
OptionGroup & WithSourceOptionGroup(Aws::String &&value)
void SetSourceAccountId(const Aws::String &value)
void SetVpcId(const char *value)
OptionGroup & WithCopyTimestamp(Aws::Utils::DateTime &&value)
bool MajorEngineVersionHasBeenSet() const
Definition OptionGroup.h:93
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetOptions(Aws::Vector< Option > &&value)
const Aws::String & GetSourceOptionGroup() const
OptionGroup & AddOptions(const Option &value)
OptionGroup & WithOptionGroupArn(Aws::String &&value)
void SetOptionGroupName(Aws::String &&value)
Definition OptionGroup.h:52
void SetOptionGroupArn(const Aws::String &value)
bool GetAllowsVpcAndNonVpcInstanceMemberships() const
void SetVpcId(const Aws::String &value)
OptionGroup & WithOptionGroupArn(const Aws::String &value)
const Aws::String & GetOptionGroupArn() const
void SetSourceOptionGroup(const char *value)
OptionGroup & WithOptionGroupName(Aws::String &&value)
Definition OptionGroup.h:55
bool CopyTimestampHasBeenSet() const
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