AWS SDK for C++  1.9.109
AWS SDK for C++
OptionConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.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& GetOptionName() const{ return m_optionName; }
48 
52  inline bool OptionNameHasBeenSet() const { return m_optionNameHasBeenSet; }
53 
57  inline void SetOptionName(const Aws::String& value) { m_optionNameHasBeenSet = true; m_optionName = value; }
58 
62  inline void SetOptionName(Aws::String&& value) { m_optionNameHasBeenSet = true; m_optionName = std::move(value); }
63 
67  inline void SetOptionName(const char* value) { m_optionNameHasBeenSet = true; m_optionName.assign(value); }
68 
72  inline OptionConfiguration& WithOptionName(const Aws::String& value) { SetOptionName(value); return *this;}
73 
77  inline OptionConfiguration& WithOptionName(Aws::String&& value) { SetOptionName(std::move(value)); return *this;}
78 
82  inline OptionConfiguration& WithOptionName(const char* value) { SetOptionName(value); return *this;}
83 
84 
88  inline int GetPort() const{ return m_port; }
89 
93  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
94 
98  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
99 
103  inline OptionConfiguration& WithPort(int value) { SetPort(value); return *this;}
104 
105 
109  inline const Aws::String& GetOptionVersion() const{ return m_optionVersion; }
110 
114  inline bool OptionVersionHasBeenSet() const { return m_optionVersionHasBeenSet; }
115 
119  inline void SetOptionVersion(const Aws::String& value) { m_optionVersionHasBeenSet = true; m_optionVersion = value; }
120 
124  inline void SetOptionVersion(Aws::String&& value) { m_optionVersionHasBeenSet = true; m_optionVersion = std::move(value); }
125 
129  inline void SetOptionVersion(const char* value) { m_optionVersionHasBeenSet = true; m_optionVersion.assign(value); }
130 
134  inline OptionConfiguration& WithOptionVersion(const Aws::String& value) { SetOptionVersion(value); return *this;}
135 
139  inline OptionConfiguration& WithOptionVersion(Aws::String&& value) { SetOptionVersion(std::move(value)); return *this;}
140 
144  inline OptionConfiguration& WithOptionVersion(const char* value) { SetOptionVersion(value); return *this;}
145 
146 
150  inline const Aws::Vector<Aws::String>& GetDBSecurityGroupMemberships() const{ return m_dBSecurityGroupMemberships; }
151 
155  inline bool DBSecurityGroupMembershipsHasBeenSet() const { return m_dBSecurityGroupMembershipsHasBeenSet; }
156 
160  inline void SetDBSecurityGroupMemberships(const Aws::Vector<Aws::String>& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships = value; }
161 
165  inline void SetDBSecurityGroupMemberships(Aws::Vector<Aws::String>&& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships = std::move(value); }
166 
170  inline OptionConfiguration& WithDBSecurityGroupMemberships(const Aws::Vector<Aws::String>& value) { SetDBSecurityGroupMemberships(value); return *this;}
171 
175  inline OptionConfiguration& WithDBSecurityGroupMemberships(Aws::Vector<Aws::String>&& value) { SetDBSecurityGroupMemberships(std::move(value)); return *this;}
176 
180  inline OptionConfiguration& AddDBSecurityGroupMemberships(const Aws::String& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships.push_back(value); return *this; }
181 
185  inline OptionConfiguration& AddDBSecurityGroupMemberships(Aws::String&& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships.push_back(std::move(value)); return *this; }
186 
190  inline OptionConfiguration& AddDBSecurityGroupMemberships(const char* value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships.push_back(value); return *this; }
191 
192 
196  inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupMemberships() const{ return m_vpcSecurityGroupMemberships; }
197 
201  inline bool VpcSecurityGroupMembershipsHasBeenSet() const { return m_vpcSecurityGroupMembershipsHasBeenSet; }
202 
206  inline void SetVpcSecurityGroupMemberships(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships = value; }
207 
211  inline void SetVpcSecurityGroupMemberships(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships = std::move(value); }
212 
216  inline OptionConfiguration& WithVpcSecurityGroupMemberships(const Aws::Vector<Aws::String>& value) { SetVpcSecurityGroupMemberships(value); return *this;}
217 
221  inline OptionConfiguration& WithVpcSecurityGroupMemberships(Aws::Vector<Aws::String>&& value) { SetVpcSecurityGroupMemberships(std::move(value)); return *this;}
222 
226  inline OptionConfiguration& AddVpcSecurityGroupMemberships(const Aws::String& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships.push_back(value); return *this; }
227 
231  inline OptionConfiguration& AddVpcSecurityGroupMemberships(Aws::String&& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships.push_back(std::move(value)); return *this; }
232 
236  inline OptionConfiguration& AddVpcSecurityGroupMemberships(const char* value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships.push_back(value); return *this; }
237 
238 
242  inline const Aws::Vector<OptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
243 
247  inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
248 
252  inline void SetOptionSettings(const Aws::Vector<OptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
253 
257  inline void SetOptionSettings(Aws::Vector<OptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); }
258 
262  inline OptionConfiguration& WithOptionSettings(const Aws::Vector<OptionSetting>& value) { SetOptionSettings(value); return *this;}
263 
267  inline OptionConfiguration& WithOptionSettings(Aws::Vector<OptionSetting>&& value) { SetOptionSettings(std::move(value)); return *this;}
268 
272  inline OptionConfiguration& AddOptionSettings(const OptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
273 
277  inline OptionConfiguration& AddOptionSettings(OptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; }
278 
279  private:
280 
281  Aws::String m_optionName;
282  bool m_optionNameHasBeenSet;
283 
284  int m_port;
285  bool m_portHasBeenSet;
286 
287  Aws::String m_optionVersion;
288  bool m_optionVersionHasBeenSet;
289 
290  Aws::Vector<Aws::String> m_dBSecurityGroupMemberships;
291  bool m_dBSecurityGroupMembershipsHasBeenSet;
292 
293  Aws::Vector<Aws::String> m_vpcSecurityGroupMemberships;
294  bool m_vpcSecurityGroupMembershipsHasBeenSet;
295 
296  Aws::Vector<OptionSetting> m_optionSettings;
297  bool m_optionSettingsHasBeenSet;
298  };
299 
300 } // namespace Model
301 } // namespace RDS
302 } // namespace Aws
Aws::RDS::Model::OptionConfiguration::AddOptionSettings
OptionConfiguration & AddOptionSettings(OptionSetting &&value)
Definition: OptionConfiguration.h:277
Aws::RDS::Model::OptionConfiguration::DBSecurityGroupMembershipsHasBeenSet
bool DBSecurityGroupMembershipsHasBeenSet() const
Definition: OptionConfiguration.h:155
Aws::RDS::Model::OptionConfiguration::SetPort
void SetPort(int value)
Definition: OptionConfiguration.h:98
Aws::RDS::Model::OptionConfiguration::WithOptionName
OptionConfiguration & WithOptionName(const char *value)
Definition: OptionConfiguration.h:82
Aws::RDS::Model::OptionConfiguration::GetOptionSettings
const Aws::Vector< OptionSetting > & GetOptionSettings() const
Definition: OptionConfiguration.h:242
Aws::RDS::Model::OptionConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::OptionConfiguration::WithOptionVersion
OptionConfiguration & WithOptionVersion(const Aws::String &value)
Definition: OptionConfiguration.h:134
Aws::RDS::Model::OptionConfiguration::WithOptionSettings
OptionConfiguration & WithOptionSettings(const Aws::Vector< OptionSetting > &value)
Definition: OptionConfiguration.h:262
Aws::RDS::Model::OptionConfiguration::SetVpcSecurityGroupMemberships
void SetVpcSecurityGroupMemberships(Aws::Vector< Aws::String > &&value)
Definition: OptionConfiguration.h:211
Aws::RDS::Model::OptionConfiguration::SetOptionVersion
void SetOptionVersion(Aws::String &&value)
Definition: OptionConfiguration.h:124
OptionSetting.h
Aws::RDS::Model::OptionConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::OptionConfiguration::AddDBSecurityGroupMemberships
OptionConfiguration & AddDBSecurityGroupMemberships(const Aws::String &value)
Definition: OptionConfiguration.h:180
Aws::RDS::Model::OptionConfiguration::SetOptionSettings
void SetOptionSettings(const Aws::Vector< OptionSetting > &value)
Definition: OptionConfiguration.h:252
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::OptionConfiguration::SetOptionSettings
void SetOptionSettings(Aws::Vector< OptionSetting > &&value)
Definition: OptionConfiguration.h:257
Aws::RDS::Model::OptionConfiguration::PortHasBeenSet
bool PortHasBeenSet() const
Definition: OptionConfiguration.h:93
Aws::RDS::Model::OptionConfiguration::OptionConfiguration
OptionConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::OptionConfiguration::OptionSettingsHasBeenSet
bool OptionSettingsHasBeenSet() const
Definition: OptionConfiguration.h:247
Aws::RDS::Model::OptionConfiguration::AddDBSecurityGroupMemberships
OptionConfiguration & AddDBSecurityGroupMemberships(const char *value)
Definition: OptionConfiguration.h:190
Aws::RDS::Model::OptionConfiguration::AddVpcSecurityGroupMemberships
OptionConfiguration & AddVpcSecurityGroupMemberships(Aws::String &&value)
Definition: OptionConfiguration.h:231
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::RDS::Model::OptionConfiguration::WithOptionSettings
OptionConfiguration & WithOptionSettings(Aws::Vector< OptionSetting > &&value)
Definition: OptionConfiguration.h:267
Aws::RDS::Model::OptionConfiguration::WithOptionName
OptionConfiguration & WithOptionName(Aws::String &&value)
Definition: OptionConfiguration.h:77
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::OptionConfiguration::SetVpcSecurityGroupMemberships
void SetVpcSecurityGroupMemberships(const Aws::Vector< Aws::String > &value)
Definition: OptionConfiguration.h:206
Aws::RDS::Model::OptionConfiguration::SetOptionVersion
void SetOptionVersion(const char *value)
Definition: OptionConfiguration.h:129
Aws::RDS::Model::OptionConfiguration::WithVpcSecurityGroupMemberships
OptionConfiguration & WithVpcSecurityGroupMemberships(const Aws::Vector< Aws::String > &value)
Definition: OptionConfiguration.h:216
RDS_EXPORTS.h
Aws::RDS::Model::OptionConfiguration::SetOptionName
void SetOptionName(const char *value)
Definition: OptionConfiguration.h:67
Aws::RDS::Model::OptionConfiguration::SetOptionName
void SetOptionName(Aws::String &&value)
Definition: OptionConfiguration.h:62
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::OptionConfiguration::GetOptionName
const Aws::String & GetOptionName() const
Definition: OptionConfiguration.h:47
Aws::RDS::Model::OptionConfiguration::OptionNameHasBeenSet
bool OptionNameHasBeenSet() const
Definition: OptionConfiguration.h:52
Aws::RDS::Model::OptionConfiguration::SetDBSecurityGroupMemberships
void SetDBSecurityGroupMemberships(const Aws::Vector< Aws::String > &value)
Definition: OptionConfiguration.h:160
Aws::RDS::Model::OptionConfiguration::WithOptionName
OptionConfiguration & WithOptionName(const Aws::String &value)
Definition: OptionConfiguration.h:72
Aws::RDS::Model::OptionConfiguration::OptionVersionHasBeenSet
bool OptionVersionHasBeenSet() const
Definition: OptionConfiguration.h:114
Aws::RDS::Model::OptionConfiguration::VpcSecurityGroupMembershipsHasBeenSet
bool VpcSecurityGroupMembershipsHasBeenSet() const
Definition: OptionConfiguration.h:201
Aws::RDS::Model::OptionConfiguration::AddDBSecurityGroupMemberships
OptionConfiguration & AddDBSecurityGroupMemberships(Aws::String &&value)
Definition: OptionConfiguration.h:185
Aws::RDS::Model::OptionConfiguration::OptionConfiguration
OptionConfiguration()
Aws::RDS::Model::OptionConfiguration::GetDBSecurityGroupMemberships
const Aws::Vector< Aws::String > & GetDBSecurityGroupMemberships() const
Definition: OptionConfiguration.h:150
Aws::RDS::Model::OptionConfiguration::WithVpcSecurityGroupMemberships
OptionConfiguration & WithVpcSecurityGroupMemberships(Aws::Vector< Aws::String > &&value)
Definition: OptionConfiguration.h:221
Aws::RDS::Model::OptionConfiguration::SetOptionName
void SetOptionName(const Aws::String &value)
Definition: OptionConfiguration.h:57
AWSString.h
Aws::RDS::Model::OptionConfiguration
Definition: OptionConfiguration.h:34
Aws::RDS::Model::OptionConfiguration::WithDBSecurityGroupMemberships
OptionConfiguration & WithDBSecurityGroupMemberships(Aws::Vector< Aws::String > &&value)
Definition: OptionConfiguration.h:175
Aws::RDS::Model::OptionConfiguration::WithPort
OptionConfiguration & WithPort(int value)
Definition: OptionConfiguration.h:103
Aws::RDS::Model::OptionSetting
Definition: OptionSetting.h:36
Aws::RDS::Model::OptionConfiguration::operator=
OptionConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::OptionConfiguration::GetOptionVersion
const Aws::String & GetOptionVersion() const
Definition: OptionConfiguration.h:109
Aws::RDS::Model::OptionConfiguration::AddVpcSecurityGroupMemberships
OptionConfiguration & AddVpcSecurityGroupMemberships(const char *value)
Definition: OptionConfiguration.h:236
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::OptionConfiguration::AddVpcSecurityGroupMemberships
OptionConfiguration & AddVpcSecurityGroupMemberships(const Aws::String &value)
Definition: OptionConfiguration.h:226
Aws::RDS::Model::OptionConfiguration::WithOptionVersion
OptionConfiguration & WithOptionVersion(const char *value)
Definition: OptionConfiguration.h:144
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::OptionConfiguration::GetPort
int GetPort() const
Definition: OptionConfiguration.h:88
Aws::RDS::Model::OptionConfiguration::SetOptionVersion
void SetOptionVersion(const Aws::String &value)
Definition: OptionConfiguration.h:119
Aws::RDS::Model::OptionConfiguration::SetDBSecurityGroupMemberships
void SetDBSecurityGroupMemberships(Aws::Vector< Aws::String > &&value)
Definition: OptionConfiguration.h:165
Aws::RDS::Model::OptionConfiguration::AddOptionSettings
OptionConfiguration & AddOptionSettings(const OptionSetting &value)
Definition: OptionConfiguration.h:272
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::OptionConfiguration::WithDBSecurityGroupMemberships
OptionConfiguration & WithDBSecurityGroupMemberships(const Aws::Vector< Aws::String > &value)
Definition: OptionConfiguration.h:170
Aws::RDS::Model::OptionConfiguration::GetVpcSecurityGroupMemberships
const Aws::Vector< Aws::String > & GetVpcSecurityGroupMemberships() const
Definition: OptionConfiguration.h:196
Aws::RDS::Model::OptionConfiguration::WithOptionVersion
OptionConfiguration & WithOptionVersion(Aws::String &&value)
Definition: OptionConfiguration.h:139