AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OptionConfiguration.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/OptionSetting.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace RDS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_RDS_API OptionConfiguration();
38 AWS_RDS_API OptionConfiguration(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& GetOptionName() const{ return m_optionName; }
50 inline bool OptionNameHasBeenSet() const { return m_optionNameHasBeenSet; }
51 inline void SetOptionName(const Aws::String& value) { m_optionNameHasBeenSet = true; m_optionName = value; }
52 inline void SetOptionName(Aws::String&& value) { m_optionNameHasBeenSet = true; m_optionName = std::move(value); }
53 inline void SetOptionName(const char* value) { m_optionNameHasBeenSet = true; m_optionName.assign(value); }
54 inline OptionConfiguration& WithOptionName(const Aws::String& value) { SetOptionName(value); return *this;}
55 inline OptionConfiguration& WithOptionName(Aws::String&& value) { SetOptionName(std::move(value)); return *this;}
56 inline OptionConfiguration& WithOptionName(const char* value) { SetOptionName(value); return *this;}
58
60
63 inline int GetPort() const{ return m_port; }
64 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
65 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
66 inline OptionConfiguration& WithPort(int value) { SetPort(value); return *this;}
68
70
73 inline const Aws::String& GetOptionVersion() const{ return m_optionVersion; }
74 inline bool OptionVersionHasBeenSet() const { return m_optionVersionHasBeenSet; }
75 inline void SetOptionVersion(const Aws::String& value) { m_optionVersionHasBeenSet = true; m_optionVersion = value; }
76 inline void SetOptionVersion(Aws::String&& value) { m_optionVersionHasBeenSet = true; m_optionVersion = std::move(value); }
77 inline void SetOptionVersion(const char* value) { m_optionVersionHasBeenSet = true; m_optionVersion.assign(value); }
78 inline OptionConfiguration& WithOptionVersion(const Aws::String& value) { SetOptionVersion(value); return *this;}
79 inline OptionConfiguration& WithOptionVersion(Aws::String&& value) { SetOptionVersion(std::move(value)); return *this;}
80 inline OptionConfiguration& WithOptionVersion(const char* value) { SetOptionVersion(value); return *this;}
82
84
87 inline const Aws::Vector<Aws::String>& GetDBSecurityGroupMemberships() const{ return m_dBSecurityGroupMemberships; }
88 inline bool DBSecurityGroupMembershipsHasBeenSet() const { return m_dBSecurityGroupMembershipsHasBeenSet; }
89 inline void SetDBSecurityGroupMemberships(const Aws::Vector<Aws::String>& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships = value; }
90 inline void SetDBSecurityGroupMemberships(Aws::Vector<Aws::String>&& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships = std::move(value); }
93 inline OptionConfiguration& AddDBSecurityGroupMemberships(const Aws::String& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships.push_back(value); return *this; }
94 inline OptionConfiguration& AddDBSecurityGroupMemberships(Aws::String&& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships.push_back(std::move(value)); return *this; }
95 inline OptionConfiguration& AddDBSecurityGroupMemberships(const char* value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships.push_back(value); return *this; }
97
99
102 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupMemberships() const{ return m_vpcSecurityGroupMemberships; }
103 inline bool VpcSecurityGroupMembershipsHasBeenSet() const { return m_vpcSecurityGroupMembershipsHasBeenSet; }
104 inline void SetVpcSecurityGroupMemberships(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships = value; }
105 inline void SetVpcSecurityGroupMemberships(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships = std::move(value); }
108 inline OptionConfiguration& AddVpcSecurityGroupMemberships(const Aws::String& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships.push_back(value); return *this; }
109 inline OptionConfiguration& AddVpcSecurityGroupMemberships(Aws::String&& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships.push_back(std::move(value)); return *this; }
110 inline OptionConfiguration& AddVpcSecurityGroupMemberships(const char* value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships.push_back(value); return *this; }
112
114
117 inline const Aws::Vector<OptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
118 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
119 inline void SetOptionSettings(const Aws::Vector<OptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
120 inline void SetOptionSettings(Aws::Vector<OptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); }
122 inline OptionConfiguration& WithOptionSettings(Aws::Vector<OptionSetting>&& value) { SetOptionSettings(std::move(value)); return *this;}
123 inline OptionConfiguration& AddOptionSettings(const OptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
124 inline OptionConfiguration& AddOptionSettings(OptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; }
126 private:
127
128 Aws::String m_optionName;
129 bool m_optionNameHasBeenSet = false;
130
131 int m_port;
132 bool m_portHasBeenSet = false;
133
134 Aws::String m_optionVersion;
135 bool m_optionVersionHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_dBSecurityGroupMemberships;
138 bool m_dBSecurityGroupMembershipsHasBeenSet = false;
139
140 Aws::Vector<Aws::String> m_vpcSecurityGroupMemberships;
141 bool m_vpcSecurityGroupMembershipsHasBeenSet = false;
142
143 Aws::Vector<OptionSetting> m_optionSettings;
144 bool m_optionSettingsHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace RDS
149} // namespace Aws
OptionConfiguration & WithOptionName(const Aws::String &value)
void SetVpcSecurityGroupMemberships(const Aws::Vector< Aws::String > &value)
OptionConfiguration & WithDBSecurityGroupMemberships(const Aws::Vector< Aws::String > &value)
OptionConfiguration & WithOptionName(const char *value)
const Aws::String & GetOptionVersion() const
void SetOptionSettings(Aws::Vector< OptionSetting > &&value)
OptionConfiguration & AddDBSecurityGroupMemberships(const char *value)
OptionConfiguration & WithOptionVersion(Aws::String &&value)
OptionConfiguration & WithOptionSettings(const Aws::Vector< OptionSetting > &value)
OptionConfiguration & AddOptionSettings(OptionSetting &&value)
OptionConfiguration & WithDBSecurityGroupMemberships(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetDBSecurityGroupMemberships() const
void SetDBSecurityGroupMemberships(Aws::Vector< Aws::String > &&value)
OptionConfiguration & AddDBSecurityGroupMemberships(const Aws::String &value)
OptionConfiguration & AddVpcSecurityGroupMemberships(const Aws::String &value)
OptionConfiguration & WithOptionVersion(const char *value)
OptionConfiguration & AddVpcSecurityGroupMemberships(Aws::String &&value)
OptionConfiguration & AddOptionSettings(const OptionSetting &value)
void SetOptionVersion(Aws::String &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetVpcSecurityGroupMemberships(Aws::Vector< Aws::String > &&value)
const Aws::Vector< OptionSetting > & GetOptionSettings() const
OptionConfiguration & AddDBSecurityGroupMemberships(Aws::String &&value)
void SetOptionSettings(const Aws::Vector< OptionSetting > &value)
OptionConfiguration & WithVpcSecurityGroupMemberships(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupMemberships() const
OptionConfiguration & AddVpcSecurityGroupMemberships(const char *value)
void SetOptionVersion(const Aws::String &value)
OptionConfiguration & WithOptionName(Aws::String &&value)
OptionConfiguration & WithVpcSecurityGroupMemberships(const Aws::Vector< Aws::String > &value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOptionName(const Aws::String &value)
OptionConfiguration & WithOptionVersion(const Aws::String &value)
OptionConfiguration & WithOptionSettings(Aws::Vector< OptionSetting > &&value)
void SetDBSecurityGroupMemberships(const Aws::Vector< Aws::String > &value)
OptionConfiguration & WithPort(int value)
void SetOptionName(Aws::String &&value)
const Aws::String & GetOptionName() const
AWS_RDS_API OptionConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API OptionConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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