AWS SDK for C++  1.9.104
AWS SDK for C++
OptionGroup.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
11 #include <aws/rds/model/Option.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace RDS
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetOptionGroupName() const{ return m_optionGroupName; }
48 
52  inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; }
53 
57  inline void SetOptionGroupName(const Aws::String& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = value; }
58 
62  inline void SetOptionGroupName(Aws::String&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::move(value); }
63 
67  inline void SetOptionGroupName(const char* value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName.assign(value); }
68 
72  inline OptionGroup& WithOptionGroupName(const Aws::String& value) { SetOptionGroupName(value); return *this;}
73 
77  inline OptionGroup& WithOptionGroupName(Aws::String&& value) { SetOptionGroupName(std::move(value)); return *this;}
78 
82  inline OptionGroup& WithOptionGroupName(const char* value) { SetOptionGroupName(value); return *this;}
83 
84 
88  inline const Aws::String& GetOptionGroupDescription() const{ return m_optionGroupDescription; }
89 
93  inline bool OptionGroupDescriptionHasBeenSet() const { return m_optionGroupDescriptionHasBeenSet; }
94 
98  inline void SetOptionGroupDescription(const Aws::String& value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription = value; }
99 
103  inline void SetOptionGroupDescription(Aws::String&& value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription = std::move(value); }
104 
108  inline void SetOptionGroupDescription(const char* value) { m_optionGroupDescriptionHasBeenSet = true; m_optionGroupDescription.assign(value); }
109 
113  inline OptionGroup& WithOptionGroupDescription(const Aws::String& value) { SetOptionGroupDescription(value); return *this;}
114 
118  inline OptionGroup& WithOptionGroupDescription(Aws::String&& value) { SetOptionGroupDescription(std::move(value)); return *this;}
119 
123  inline OptionGroup& WithOptionGroupDescription(const char* value) { SetOptionGroupDescription(value); return *this;}
124 
125 
130  inline const Aws::String& GetEngineName() const{ return m_engineName; }
131 
136  inline bool EngineNameHasBeenSet() const { return m_engineNameHasBeenSet; }
137 
142  inline void SetEngineName(const Aws::String& value) { m_engineNameHasBeenSet = true; m_engineName = value; }
143 
148  inline void SetEngineName(Aws::String&& value) { m_engineNameHasBeenSet = true; m_engineName = std::move(value); }
149 
154  inline void SetEngineName(const char* value) { m_engineNameHasBeenSet = true; m_engineName.assign(value); }
155 
160  inline OptionGroup& WithEngineName(const Aws::String& value) { SetEngineName(value); return *this;}
161 
166  inline OptionGroup& WithEngineName(Aws::String&& value) { SetEngineName(std::move(value)); return *this;}
167 
172  inline OptionGroup& WithEngineName(const char* value) { SetEngineName(value); return *this;}
173 
174 
178  inline const Aws::String& GetMajorEngineVersion() const{ return m_majorEngineVersion; }
179 
183  inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
184 
188  inline void SetMajorEngineVersion(const Aws::String& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = value; }
189 
193  inline void SetMajorEngineVersion(Aws::String&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::move(value); }
194 
198  inline void SetMajorEngineVersion(const char* value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion.assign(value); }
199 
203  inline OptionGroup& WithMajorEngineVersion(const Aws::String& value) { SetMajorEngineVersion(value); return *this;}
204 
208  inline OptionGroup& WithMajorEngineVersion(Aws::String&& value) { SetMajorEngineVersion(std::move(value)); return *this;}
209 
213  inline OptionGroup& WithMajorEngineVersion(const char* value) { SetMajorEngineVersion(value); return *this;}
214 
215 
219  inline const Aws::Vector<Option>& GetOptions() const{ return m_options; }
220 
224  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
225 
229  inline void SetOptions(const Aws::Vector<Option>& value) { m_optionsHasBeenSet = true; m_options = value; }
230 
234  inline void SetOptions(Aws::Vector<Option>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
235 
239  inline OptionGroup& WithOptions(const Aws::Vector<Option>& value) { SetOptions(value); return *this;}
240 
244  inline OptionGroup& WithOptions(Aws::Vector<Option>&& value) { SetOptions(std::move(value)); return *this;}
245 
249  inline OptionGroup& AddOptions(const Option& value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; }
250 
254  inline OptionGroup& AddOptions(Option&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; }
255 
256 
262  inline bool GetAllowsVpcAndNonVpcInstanceMemberships() const{ return m_allowsVpcAndNonVpcInstanceMemberships; }
263 
269  inline bool AllowsVpcAndNonVpcInstanceMembershipsHasBeenSet() const { return m_allowsVpcAndNonVpcInstanceMembershipsHasBeenSet; }
270 
276  inline void SetAllowsVpcAndNonVpcInstanceMemberships(bool value) { m_allowsVpcAndNonVpcInstanceMembershipsHasBeenSet = true; m_allowsVpcAndNonVpcInstanceMemberships = value; }
277 
283  inline OptionGroup& WithAllowsVpcAndNonVpcInstanceMemberships(bool value) { SetAllowsVpcAndNonVpcInstanceMemberships(value); return *this;}
284 
285 
294  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
295 
304  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
305 
314  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
315 
324  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
325 
334  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
335 
344  inline OptionGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
345 
354  inline OptionGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
355 
364  inline OptionGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
365 
366 
370  inline const Aws::String& GetOptionGroupArn() const{ return m_optionGroupArn; }
371 
375  inline bool OptionGroupArnHasBeenSet() const { return m_optionGroupArnHasBeenSet; }
376 
380  inline void SetOptionGroupArn(const Aws::String& value) { m_optionGroupArnHasBeenSet = true; m_optionGroupArn = value; }
381 
385  inline void SetOptionGroupArn(Aws::String&& value) { m_optionGroupArnHasBeenSet = true; m_optionGroupArn = std::move(value); }
386 
390  inline void SetOptionGroupArn(const char* value) { m_optionGroupArnHasBeenSet = true; m_optionGroupArn.assign(value); }
391 
395  inline OptionGroup& WithOptionGroupArn(const Aws::String& value) { SetOptionGroupArn(value); return *this;}
396 
400  inline OptionGroup& WithOptionGroupArn(Aws::String&& value) { SetOptionGroupArn(std::move(value)); return *this;}
401 
405  inline OptionGroup& WithOptionGroupArn(const char* value) { SetOptionGroupArn(value); return *this;}
406 
407  private:
408 
409  Aws::String m_optionGroupName;
410  bool m_optionGroupNameHasBeenSet;
411 
412  Aws::String m_optionGroupDescription;
413  bool m_optionGroupDescriptionHasBeenSet;
414 
415  Aws::String m_engineName;
416  bool m_engineNameHasBeenSet;
417 
418  Aws::String m_majorEngineVersion;
419  bool m_majorEngineVersionHasBeenSet;
420 
421  Aws::Vector<Option> m_options;
422  bool m_optionsHasBeenSet;
423 
424  bool m_allowsVpcAndNonVpcInstanceMemberships;
425  bool m_allowsVpcAndNonVpcInstanceMembershipsHasBeenSet;
426 
427  Aws::String m_vpcId;
428  bool m_vpcIdHasBeenSet;
429 
430  Aws::String m_optionGroupArn;
431  bool m_optionGroupArnHasBeenSet;
432  };
433 
434 } // namespace Model
435 } // namespace RDS
436 } // namespace Aws
Aws::RDS::Model::OptionGroup::WithOptionGroupDescription
OptionGroup & WithOptionGroupDescription(const Aws::String &value)
Definition: OptionGroup.h:113
Aws::RDS::Model::OptionGroup::GetOptionGroupDescription
const Aws::String & GetOptionGroupDescription() const
Definition: OptionGroup.h:88
Aws::RDS::Model::OptionGroup::WithEngineName
OptionGroup & WithEngineName(Aws::String &&value)
Definition: OptionGroup.h:166
Aws::RDS::Model::OptionGroup::OptionGroup
OptionGroup()
Aws::RDS::Model::OptionGroup::WithVpcId
OptionGroup & WithVpcId(const Aws::String &value)
Definition: OptionGroup.h:344
Aws::RDS::Model::OptionGroup::SetEngineName
void SetEngineName(Aws::String &&value)
Definition: OptionGroup.h:148
Aws::RDS::Model::OptionGroup::OptionGroupNameHasBeenSet
bool OptionGroupNameHasBeenSet() const
Definition: OptionGroup.h:52
Aws::RDS::Model::OptionGroup::WithEngineName
OptionGroup & WithEngineName(const char *value)
Definition: OptionGroup.h:172
Aws::RDS::Model::OptionGroup::WithAllowsVpcAndNonVpcInstanceMemberships
OptionGroup & WithAllowsVpcAndNonVpcInstanceMemberships(bool value)
Definition: OptionGroup.h:283
Aws::RDS::Model::OptionGroup::WithEngineName
OptionGroup & WithEngineName(const Aws::String &value)
Definition: OptionGroup.h:160
Aws::RDS::Model::OptionGroup::AddOptions
OptionGroup & AddOptions(const Option &value)
Definition: OptionGroup.h:249
Aws::RDS::Model::OptionGroup::SetEngineName
void SetEngineName(const char *value)
Definition: OptionGroup.h:154
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::OptionGroup::SetMajorEngineVersion
void SetMajorEngineVersion(const char *value)
Definition: OptionGroup.h:198
Aws::RDS::Model::OptionGroup::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: OptionGroup.h:324
Aws::RDS::Model::OptionGroup::EngineNameHasBeenSet
bool EngineNameHasBeenSet() const
Definition: OptionGroup.h:136
Aws::RDS::Model::OptionGroup::GetOptions
const Aws::Vector< Option > & GetOptions() const
Definition: OptionGroup.h:219
Aws::RDS::Model::OptionGroup::WithOptionGroupDescription
OptionGroup & WithOptionGroupDescription(Aws::String &&value)
Definition: OptionGroup.h:118
Aws::RDS::Model::OptionGroup::GetVpcId
const Aws::String & GetVpcId() const
Definition: OptionGroup.h:294
Aws::RDS::Model::OptionGroup
Definition: OptionGroup.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::RDS::Model::OptionGroup::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: OptionGroup.h:314
Aws::RDS::Model::OptionGroup::WithOptionGroupArn
OptionGroup & WithOptionGroupArn(const Aws::String &value)
Definition: OptionGroup.h:395
AWSVector.h
Aws::RDS::Model::OptionGroup::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::OptionGroup::OptionGroupArnHasBeenSet
bool OptionGroupArnHasBeenSet() const
Definition: OptionGroup.h:375
Aws::RDS::Model::OptionGroup::WithOptionGroupName
OptionGroup & WithOptionGroupName(Aws::String &&value)
Definition: OptionGroup.h:77
Aws::RDS::Model::Option
Definition: Option.h:36
Aws::RDS::Model::OptionGroup::SetMajorEngineVersion
void SetMajorEngineVersion(const Aws::String &value)
Definition: OptionGroup.h:188
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::OptionGroup::WithOptionGroupName
OptionGroup & WithOptionGroupName(const char *value)
Definition: OptionGroup.h:82
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::OptionGroup::AddOptions
OptionGroup & AddOptions(Option &&value)
Definition: OptionGroup.h:254
Aws::RDS::Model::OptionGroup::SetVpcId
void SetVpcId(const char *value)
Definition: OptionGroup.h:334
Aws::RDS::Model::OptionGroup::SetOptionGroupName
void SetOptionGroupName(const Aws::String &value)
Definition: OptionGroup.h:57
Aws::RDS::Model::OptionGroup::WithMajorEngineVersion
OptionGroup & WithMajorEngineVersion(const char *value)
Definition: OptionGroup.h:213
Aws::RDS::Model::OptionGroup::WithOptionGroupArn
OptionGroup & WithOptionGroupArn(const char *value)
Definition: OptionGroup.h:405
Aws::RDS::Model::OptionGroup::WithVpcId
OptionGroup & WithVpcId(const char *value)
Definition: OptionGroup.h:364
Aws::RDS::Model::OptionGroup::SetOptionGroupDescription
void SetOptionGroupDescription(Aws::String &&value)
Definition: OptionGroup.h:103
Aws::RDS::Model::OptionGroup::GetOptionGroupArn
const Aws::String & GetOptionGroupArn() const
Definition: OptionGroup.h:370
Aws::RDS::Model::OptionGroup::GetEngineName
const Aws::String & GetEngineName() const
Definition: OptionGroup.h:130
Aws::RDS::Model::OptionGroup::WithOptions
OptionGroup & WithOptions(const Aws::Vector< Option > &value)
Definition: OptionGroup.h:239
Aws::RDS::Model::OptionGroup::SetOptionGroupArn
void SetOptionGroupArn(Aws::String &&value)
Definition: OptionGroup.h:385
Aws::RDS::Model::OptionGroup::operator=
OptionGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::OptionGroup::WithMajorEngineVersion
OptionGroup & WithMajorEngineVersion(Aws::String &&value)
Definition: OptionGroup.h:208
Aws::RDS::Model::OptionGroup::MajorEngineVersionHasBeenSet
bool MajorEngineVersionHasBeenSet() const
Definition: OptionGroup.h:183
Aws::RDS::Model::OptionGroup::GetMajorEngineVersion
const Aws::String & GetMajorEngineVersion() const
Definition: OptionGroup.h:178
AWSString.h
Aws::RDS::Model::OptionGroup::SetOptionGroupDescription
void SetOptionGroupDescription(const Aws::String &value)
Definition: OptionGroup.h:98
Aws::RDS::Model::OptionGroup::SetOptionGroupArn
void SetOptionGroupArn(const char *value)
Definition: OptionGroup.h:390
Aws::RDS::Model::OptionGroup::OptionGroup
OptionGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::OptionGroup::WithOptionGroupDescription
OptionGroup & WithOptionGroupDescription(const char *value)
Definition: OptionGroup.h:123
Aws::RDS::Model::OptionGroup::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::OptionGroup::WithOptions
OptionGroup & WithOptions(Aws::Vector< Option > &&value)
Definition: OptionGroup.h:244
Aws::RDS::Model::OptionGroup::WithMajorEngineVersion
OptionGroup & WithMajorEngineVersion(const Aws::String &value)
Definition: OptionGroup.h:203
Option.h
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::OptionGroup::SetOptionGroupName
void SetOptionGroupName(const char *value)
Definition: OptionGroup.h:67
Aws::RDS::Model::OptionGroup::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: OptionGroup.h:224
Aws::RDS::Model::OptionGroup::WithOptionGroupArn
OptionGroup & WithOptionGroupArn(Aws::String &&value)
Definition: OptionGroup.h:400
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::OptionGroup::GetAllowsVpcAndNonVpcInstanceMemberships
bool GetAllowsVpcAndNonVpcInstanceMemberships() const
Definition: OptionGroup.h:262
Aws::RDS::Model::OptionGroup::SetOptionGroupDescription
void SetOptionGroupDescription(const char *value)
Definition: OptionGroup.h:108
Aws::RDS::Model::OptionGroup::AllowsVpcAndNonVpcInstanceMembershipsHasBeenSet
bool AllowsVpcAndNonVpcInstanceMembershipsHasBeenSet() const
Definition: OptionGroup.h:269
Aws::RDS::Model::OptionGroup::SetOptions
void SetOptions(Aws::Vector< Option > &&value)
Definition: OptionGroup.h:234
Aws::RDS::Model::OptionGroup::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: OptionGroup.h:304
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::OptionGroup::SetMajorEngineVersion
void SetMajorEngineVersion(Aws::String &&value)
Definition: OptionGroup.h:193
Aws::RDS::Model::OptionGroup::WithOptionGroupName
OptionGroup & WithOptionGroupName(const Aws::String &value)
Definition: OptionGroup.h:72
Aws::RDS::Model::OptionGroup::SetEngineName
void SetEngineName(const Aws::String &value)
Definition: OptionGroup.h:142
Aws::RDS::Model::OptionGroup::SetOptions
void SetOptions(const Aws::Vector< Option > &value)
Definition: OptionGroup.h:229
Aws::RDS::Model::OptionGroup::OptionGroupDescriptionHasBeenSet
bool OptionGroupDescriptionHasBeenSet() const
Definition: OptionGroup.h:93
Aws::RDS::Model::OptionGroup::SetAllowsVpcAndNonVpcInstanceMemberships
void SetAllowsVpcAndNonVpcInstanceMemberships(bool value)
Definition: OptionGroup.h:276
Aws::RDS::Model::OptionGroup::GetOptionGroupName
const Aws::String & GetOptionGroupName() const
Definition: OptionGroup.h:47
Aws::RDS::Model::OptionGroup::SetOptionGroupName
void SetOptionGroupName(Aws::String &&value)
Definition: OptionGroup.h:62
Aws::RDS::Model::OptionGroup::SetOptionGroupArn
void SetOptionGroupArn(const Aws::String &value)
Definition: OptionGroup.h:380
Aws::RDS::Model::OptionGroup::WithVpcId
OptionGroup & WithVpcId(Aws::String &&value)
Definition: OptionGroup.h:354