AWS SDK for C++  1.9.108
AWS SDK for C++
Option.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace RDS
26 {
27 namespace Model
28 {
29 
36  {
37  public:
38  Option();
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetOptionName() const{ return m_optionName; }
50 
54  inline bool OptionNameHasBeenSet() const { return m_optionNameHasBeenSet; }
55 
59  inline void SetOptionName(const Aws::String& value) { m_optionNameHasBeenSet = true; m_optionName = value; }
60 
64  inline void SetOptionName(Aws::String&& value) { m_optionNameHasBeenSet = true; m_optionName = std::move(value); }
65 
69  inline void SetOptionName(const char* value) { m_optionNameHasBeenSet = true; m_optionName.assign(value); }
70 
74  inline Option& WithOptionName(const Aws::String& value) { SetOptionName(value); return *this;}
75 
79  inline Option& WithOptionName(Aws::String&& value) { SetOptionName(std::move(value)); return *this;}
80 
84  inline Option& WithOptionName(const char* value) { SetOptionName(value); return *this;}
85 
86 
90  inline const Aws::String& GetOptionDescription() const{ return m_optionDescription; }
91 
95  inline bool OptionDescriptionHasBeenSet() const { return m_optionDescriptionHasBeenSet; }
96 
100  inline void SetOptionDescription(const Aws::String& value) { m_optionDescriptionHasBeenSet = true; m_optionDescription = value; }
101 
105  inline void SetOptionDescription(Aws::String&& value) { m_optionDescriptionHasBeenSet = true; m_optionDescription = std::move(value); }
106 
110  inline void SetOptionDescription(const char* value) { m_optionDescriptionHasBeenSet = true; m_optionDescription.assign(value); }
111 
115  inline Option& WithOptionDescription(const Aws::String& value) { SetOptionDescription(value); return *this;}
116 
120  inline Option& WithOptionDescription(Aws::String&& value) { SetOptionDescription(std::move(value)); return *this;}
121 
125  inline Option& WithOptionDescription(const char* value) { SetOptionDescription(value); return *this;}
126 
127 
131  inline bool GetPersistent() const{ return m_persistent; }
132 
136  inline bool PersistentHasBeenSet() const { return m_persistentHasBeenSet; }
137 
141  inline void SetPersistent(bool value) { m_persistentHasBeenSet = true; m_persistent = value; }
142 
146  inline Option& WithPersistent(bool value) { SetPersistent(value); return *this;}
147 
148 
152  inline bool GetPermanent() const{ return m_permanent; }
153 
157  inline bool PermanentHasBeenSet() const { return m_permanentHasBeenSet; }
158 
162  inline void SetPermanent(bool value) { m_permanentHasBeenSet = true; m_permanent = value; }
163 
167  inline Option& WithPermanent(bool value) { SetPermanent(value); return *this;}
168 
169 
173  inline int GetPort() const{ return m_port; }
174 
178  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
179 
183  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
184 
188  inline Option& WithPort(int value) { SetPort(value); return *this;}
189 
190 
194  inline const Aws::String& GetOptionVersion() const{ return m_optionVersion; }
195 
199  inline bool OptionVersionHasBeenSet() const { return m_optionVersionHasBeenSet; }
200 
204  inline void SetOptionVersion(const Aws::String& value) { m_optionVersionHasBeenSet = true; m_optionVersion = value; }
205 
209  inline void SetOptionVersion(Aws::String&& value) { m_optionVersionHasBeenSet = true; m_optionVersion = std::move(value); }
210 
214  inline void SetOptionVersion(const char* value) { m_optionVersionHasBeenSet = true; m_optionVersion.assign(value); }
215 
219  inline Option& WithOptionVersion(const Aws::String& value) { SetOptionVersion(value); return *this;}
220 
224  inline Option& WithOptionVersion(Aws::String&& value) { SetOptionVersion(std::move(value)); return *this;}
225 
229  inline Option& WithOptionVersion(const char* value) { SetOptionVersion(value); return *this;}
230 
231 
235  inline const Aws::Vector<OptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
236 
240  inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
241 
245  inline void SetOptionSettings(const Aws::Vector<OptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
246 
250  inline void SetOptionSettings(Aws::Vector<OptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); }
251 
255  inline Option& WithOptionSettings(const Aws::Vector<OptionSetting>& value) { SetOptionSettings(value); return *this;}
256 
260  inline Option& WithOptionSettings(Aws::Vector<OptionSetting>&& value) { SetOptionSettings(std::move(value)); return *this;}
261 
265  inline Option& AddOptionSettings(const OptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
266 
270  inline Option& AddOptionSettings(OptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; }
271 
272 
277  inline const Aws::Vector<DBSecurityGroupMembership>& GetDBSecurityGroupMemberships() const{ return m_dBSecurityGroupMemberships; }
278 
283  inline bool DBSecurityGroupMembershipsHasBeenSet() const { return m_dBSecurityGroupMembershipsHasBeenSet; }
284 
289  inline void SetDBSecurityGroupMemberships(const Aws::Vector<DBSecurityGroupMembership>& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships = value; }
290 
295  inline void SetDBSecurityGroupMemberships(Aws::Vector<DBSecurityGroupMembership>&& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships = std::move(value); }
296 
301  inline Option& WithDBSecurityGroupMemberships(const Aws::Vector<DBSecurityGroupMembership>& value) { SetDBSecurityGroupMemberships(value); return *this;}
302 
307  inline Option& WithDBSecurityGroupMemberships(Aws::Vector<DBSecurityGroupMembership>&& value) { SetDBSecurityGroupMemberships(std::move(value)); return *this;}
308 
313  inline Option& AddDBSecurityGroupMemberships(const DBSecurityGroupMembership& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships.push_back(value); return *this; }
314 
319  inline Option& AddDBSecurityGroupMemberships(DBSecurityGroupMembership&& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships.push_back(std::move(value)); return *this; }
320 
321 
326  inline const Aws::Vector<VpcSecurityGroupMembership>& GetVpcSecurityGroupMemberships() const{ return m_vpcSecurityGroupMemberships; }
327 
332  inline bool VpcSecurityGroupMembershipsHasBeenSet() const { return m_vpcSecurityGroupMembershipsHasBeenSet; }
333 
338  inline void SetVpcSecurityGroupMemberships(const Aws::Vector<VpcSecurityGroupMembership>& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships = value; }
339 
344  inline void SetVpcSecurityGroupMemberships(Aws::Vector<VpcSecurityGroupMembership>&& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships = std::move(value); }
345 
350  inline Option& WithVpcSecurityGroupMemberships(const Aws::Vector<VpcSecurityGroupMembership>& value) { SetVpcSecurityGroupMemberships(value); return *this;}
351 
356  inline Option& WithVpcSecurityGroupMemberships(Aws::Vector<VpcSecurityGroupMembership>&& value) { SetVpcSecurityGroupMemberships(std::move(value)); return *this;}
357 
362  inline Option& AddVpcSecurityGroupMemberships(const VpcSecurityGroupMembership& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships.push_back(value); return *this; }
363 
368  inline Option& AddVpcSecurityGroupMemberships(VpcSecurityGroupMembership&& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships.push_back(std::move(value)); return *this; }
369 
370  private:
371 
372  Aws::String m_optionName;
373  bool m_optionNameHasBeenSet;
374 
375  Aws::String m_optionDescription;
376  bool m_optionDescriptionHasBeenSet;
377 
378  bool m_persistent;
379  bool m_persistentHasBeenSet;
380 
381  bool m_permanent;
382  bool m_permanentHasBeenSet;
383 
384  int m_port;
385  bool m_portHasBeenSet;
386 
387  Aws::String m_optionVersion;
388  bool m_optionVersionHasBeenSet;
389 
390  Aws::Vector<OptionSetting> m_optionSettings;
391  bool m_optionSettingsHasBeenSet;
392 
393  Aws::Vector<DBSecurityGroupMembership> m_dBSecurityGroupMemberships;
394  bool m_dBSecurityGroupMembershipsHasBeenSet;
395 
396  Aws::Vector<VpcSecurityGroupMembership> m_vpcSecurityGroupMemberships;
397  bool m_vpcSecurityGroupMembershipsHasBeenSet;
398  };
399 
400 } // namespace Model
401 } // namespace RDS
402 } // namespace Aws
Aws::RDS::Model::Option::WithOptionName
Option & WithOptionName(const char *value)
Definition: Option.h:84
Aws::RDS::Model::Option::WithDBSecurityGroupMemberships
Option & WithDBSecurityGroupMemberships(Aws::Vector< DBSecurityGroupMembership > &&value)
Definition: Option.h:307
Aws::RDS::Model::Option::WithPort
Option & WithPort(int value)
Definition: Option.h:188
Aws::RDS::Model::Option::WithOptionVersion
Option & WithOptionVersion(Aws::String &&value)
Definition: Option.h:224
Aws::RDS::Model::Option::operator=
Option & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::Option::GetPersistent
bool GetPersistent() const
Definition: Option.h:131
Aws::RDS::Model::Option::GetPermanent
bool GetPermanent() const
Definition: Option.h:152
Aws::RDS::Model::Option::AddOptionSettings
Option & AddOptionSettings(OptionSetting &&value)
Definition: Option.h:270
Aws::RDS::Model::Option::SetOptionName
void SetOptionName(Aws::String &&value)
Definition: Option.h:64
OptionSetting.h
Aws::RDS::Model::Option::Option
Option(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::Option::SetPort
void SetPort(int value)
Definition: Option.h:183
Aws::RDS::Model::Option::GetDBSecurityGroupMemberships
const Aws::Vector< DBSecurityGroupMembership > & GetDBSecurityGroupMemberships() const
Definition: Option.h:277
Aws::RDS::Model::Option::SetOptionName
void SetOptionName(const char *value)
Definition: Option.h:69
Aws::RDS::Model::Option::SetPersistent
void SetPersistent(bool value)
Definition: Option.h:141
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::Option::WithOptionSettings
Option & WithOptionSettings(Aws::Vector< OptionSetting > &&value)
Definition: Option.h:260
Aws::RDS::Model::Option::OptionVersionHasBeenSet
bool OptionVersionHasBeenSet() const
Definition: Option.h:199
Aws::RDS::Model::Option::AddDBSecurityGroupMemberships
Option & AddDBSecurityGroupMemberships(DBSecurityGroupMembership &&value)
Definition: Option.h:319
Aws::RDS::Model::Option::SetOptionVersion
void SetOptionVersion(const Aws::String &value)
Definition: Option.h:204
AWSStreamFwd.h
Aws::RDS::Model::Option::PermanentHasBeenSet
bool PermanentHasBeenSet() const
Definition: Option.h:157
Aws::RDS::Model::Option::OptionSettingsHasBeenSet
bool OptionSettingsHasBeenSet() const
Definition: Option.h:240
AWSVector.h
Aws::RDS::Model::Option::SetOptionDescription
void SetOptionDescription(const Aws::String &value)
Definition: Option.h:100
Aws::RDS::Model::Option::WithOptionVersion
Option & WithOptionVersion(const char *value)
Definition: Option.h:229
Aws::RDS::Model::Option::SetPermanent
void SetPermanent(bool value)
Definition: Option.h:162
Aws::RDS::Model::Option::VpcSecurityGroupMembershipsHasBeenSet
bool VpcSecurityGroupMembershipsHasBeenSet() const
Definition: Option.h:332
Aws::RDS::Model::Option
Definition: Option.h:36
Aws::RDS::Model::Option::AddVpcSecurityGroupMemberships
Option & AddVpcSecurityGroupMemberships(const VpcSecurityGroupMembership &value)
Definition: Option.h:362
Aws::RDS::Model::Option::SetVpcSecurityGroupMemberships
void SetVpcSecurityGroupMemberships(const Aws::Vector< VpcSecurityGroupMembership > &value)
Definition: Option.h:338
Aws::RDS::Model::Option::WithOptionSettings
Option & WithOptionSettings(const Aws::Vector< OptionSetting > &value)
Definition: Option.h:255
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::Option::GetOptionDescription
const Aws::String & GetOptionDescription() const
Definition: Option.h:90
Aws::RDS::Model::Option::GetOptionVersion
const Aws::String & GetOptionVersion() const
Definition: Option.h:194
Aws::RDS::Model::Option::WithDBSecurityGroupMemberships
Option & WithDBSecurityGroupMemberships(const Aws::Vector< DBSecurityGroupMembership > &value)
Definition: Option.h:301
RDS_EXPORTS.h
Aws::RDS::Model::Option::WithOptionDescription
Option & WithOptionDescription(Aws::String &&value)
Definition: Option.h:120
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::Option::AddVpcSecurityGroupMemberships
Option & AddVpcSecurityGroupMemberships(VpcSecurityGroupMembership &&value)
Definition: Option.h:368
Aws::RDS::Model::Option::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::Option::WithPersistent
Option & WithPersistent(bool value)
Definition: Option.h:146
Aws::RDS::Model::Option::WithOptionDescription
Option & WithOptionDescription(const char *value)
Definition: Option.h:125
DBSecurityGroupMembership.h
Aws::RDS::Model::Option::SetOptionDescription
void SetOptionDescription(Aws::String &&value)
Definition: Option.h:105
Aws::RDS::Model::VpcSecurityGroupMembership
Definition: VpcSecurityGroupMembership.h:33
Aws::RDS::Model::Option::GetOptionSettings
const Aws::Vector< OptionSetting > & GetOptionSettings() const
Definition: Option.h:235
AWSString.h
Aws::RDS::Model::DBSecurityGroupMembership
Definition: DBSecurityGroupMembership.h:37
Aws::RDS::Model::Option::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::Option::WithOptionDescription
Option & WithOptionDescription(const Aws::String &value)
Definition: Option.h:115
Aws::RDS::Model::Option::Option
Option()
Aws::RDS::Model::OptionSetting
Definition: OptionSetting.h:36
Aws::RDS::Model::Option::SetOptionName
void SetOptionName(const Aws::String &value)
Definition: Option.h:59
Aws::RDS::Model::Option::WithPermanent
Option & WithPermanent(bool value)
Definition: Option.h:167
Aws::RDS::Model::Option::AddOptionSettings
Option & AddOptionSettings(const OptionSetting &value)
Definition: Option.h:265
Aws::RDS::Model::Option::SetDBSecurityGroupMemberships
void SetDBSecurityGroupMemberships(const Aws::Vector< DBSecurityGroupMembership > &value)
Definition: Option.h:289
Aws::RDS::Model::Option::AddDBSecurityGroupMemberships
Option & AddDBSecurityGroupMemberships(const DBSecurityGroupMembership &value)
Definition: Option.h:313
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::Option::DBSecurityGroupMembershipsHasBeenSet
bool DBSecurityGroupMembershipsHasBeenSet() const
Definition: Option.h:283
Aws::RDS::Model::Option::WithOptionName
Option & WithOptionName(Aws::String &&value)
Definition: Option.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::Option::SetOptionDescription
void SetOptionDescription(const char *value)
Definition: Option.h:110
Aws::RDS::Model::Option::SetVpcSecurityGroupMemberships
void SetVpcSecurityGroupMemberships(Aws::Vector< VpcSecurityGroupMembership > &&value)
Definition: Option.h:344
Aws::RDS::Model::Option::SetOptionVersion
void SetOptionVersion(Aws::String &&value)
Definition: Option.h:209
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::Option::WithVpcSecurityGroupMemberships
Option & WithVpcSecurityGroupMemberships(const Aws::Vector< VpcSecurityGroupMembership > &value)
Definition: Option.h:350
Aws::RDS::Model::Option::GetOptionName
const Aws::String & GetOptionName() const
Definition: Option.h:49
Aws::RDS::Model::Option::OptionNameHasBeenSet
bool OptionNameHasBeenSet() const
Definition: Option.h:54
Aws::RDS::Model::Option::SetOptionSettings
void SetOptionSettings(Aws::Vector< OptionSetting > &&value)
Definition: Option.h:250
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::Option::SetOptionVersion
void SetOptionVersion(const char *value)
Definition: Option.h:214
Aws::RDS::Model::Option::PortHasBeenSet
bool PortHasBeenSet() const
Definition: Option.h:178
Aws::RDS::Model::Option::WithVpcSecurityGroupMemberships
Option & WithVpcSecurityGroupMemberships(Aws::Vector< VpcSecurityGroupMembership > &&value)
Definition: Option.h:356
Aws::RDS::Model::Option::GetVpcSecurityGroupMemberships
const Aws::Vector< VpcSecurityGroupMembership > & GetVpcSecurityGroupMemberships() const
Definition: Option.h:326
Aws::RDS::Model::Option::WithOptionName
Option & WithOptionName(const Aws::String &value)
Definition: Option.h:74
Aws::RDS::Model::Option::WithOptionVersion
Option & WithOptionVersion(const Aws::String &value)
Definition: Option.h:219
Aws::RDS::Model::Option::GetPort
int GetPort() const
Definition: Option.h:173
Aws::RDS::Model::Option::PersistentHasBeenSet
bool PersistentHasBeenSet() const
Definition: Option.h:136
Aws::RDS::Model::Option::OptionDescriptionHasBeenSet
bool OptionDescriptionHasBeenSet() const
Definition: Option.h:95
Aws::RDS::Model::Option::SetDBSecurityGroupMemberships
void SetDBSecurityGroupMemberships(Aws::Vector< DBSecurityGroupMembership > &&value)
Definition: Option.h:295
Aws::RDS::Model::Option::SetOptionSettings
void SetOptionSettings(const Aws::Vector< OptionSetting > &value)
Definition: Option.h:245
VpcSecurityGroupMembership.h