AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Option.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 <aws/rds/model/DBSecurityGroupMembership.h>
13#include <aws/rds/model/VpcSecurityGroupMembership.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace RDS
26{
27namespace Model
28{
29
35 class Option
36 {
37 public:
38 AWS_RDS_API Option();
39 AWS_RDS_API Option(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_RDS_API Option& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetOptionName() const{ return m_optionName; }
51 inline bool OptionNameHasBeenSet() const { return m_optionNameHasBeenSet; }
52 inline void SetOptionName(const Aws::String& value) { m_optionNameHasBeenSet = true; m_optionName = value; }
53 inline void SetOptionName(Aws::String&& value) { m_optionNameHasBeenSet = true; m_optionName = std::move(value); }
54 inline void SetOptionName(const char* value) { m_optionNameHasBeenSet = true; m_optionName.assign(value); }
55 inline Option& WithOptionName(const Aws::String& value) { SetOptionName(value); return *this;}
56 inline Option& WithOptionName(Aws::String&& value) { SetOptionName(std::move(value)); return *this;}
57 inline Option& WithOptionName(const char* value) { SetOptionName(value); return *this;}
59
61
64 inline const Aws::String& GetOptionDescription() const{ return m_optionDescription; }
65 inline bool OptionDescriptionHasBeenSet() const { return m_optionDescriptionHasBeenSet; }
66 inline void SetOptionDescription(const Aws::String& value) { m_optionDescriptionHasBeenSet = true; m_optionDescription = value; }
67 inline void SetOptionDescription(Aws::String&& value) { m_optionDescriptionHasBeenSet = true; m_optionDescription = std::move(value); }
68 inline void SetOptionDescription(const char* value) { m_optionDescriptionHasBeenSet = true; m_optionDescription.assign(value); }
69 inline Option& WithOptionDescription(const Aws::String& value) { SetOptionDescription(value); return *this;}
70 inline Option& WithOptionDescription(Aws::String&& value) { SetOptionDescription(std::move(value)); return *this;}
71 inline Option& WithOptionDescription(const char* value) { SetOptionDescription(value); return *this;}
73
75
78 inline bool GetPersistent() const{ return m_persistent; }
79 inline bool PersistentHasBeenSet() const { return m_persistentHasBeenSet; }
80 inline void SetPersistent(bool value) { m_persistentHasBeenSet = true; m_persistent = value; }
81 inline Option& WithPersistent(bool value) { SetPersistent(value); return *this;}
83
85
88 inline bool GetPermanent() const{ return m_permanent; }
89 inline bool PermanentHasBeenSet() const { return m_permanentHasBeenSet; }
90 inline void SetPermanent(bool value) { m_permanentHasBeenSet = true; m_permanent = value; }
91 inline Option& WithPermanent(bool value) { SetPermanent(value); return *this;}
93
95
98 inline int GetPort() const{ return m_port; }
99 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
100 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
101 inline Option& WithPort(int value) { SetPort(value); return *this;}
103
105
108 inline const Aws::String& GetOptionVersion() const{ return m_optionVersion; }
109 inline bool OptionVersionHasBeenSet() const { return m_optionVersionHasBeenSet; }
110 inline void SetOptionVersion(const Aws::String& value) { m_optionVersionHasBeenSet = true; m_optionVersion = value; }
111 inline void SetOptionVersion(Aws::String&& value) { m_optionVersionHasBeenSet = true; m_optionVersion = std::move(value); }
112 inline void SetOptionVersion(const char* value) { m_optionVersionHasBeenSet = true; m_optionVersion.assign(value); }
113 inline Option& WithOptionVersion(const Aws::String& value) { SetOptionVersion(value); return *this;}
114 inline Option& WithOptionVersion(Aws::String&& value) { SetOptionVersion(std::move(value)); return *this;}
115 inline Option& WithOptionVersion(const char* value) { SetOptionVersion(value); return *this;}
117
119
122 inline const Aws::Vector<OptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
123 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
124 inline void SetOptionSettings(const Aws::Vector<OptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
125 inline void SetOptionSettings(Aws::Vector<OptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); }
126 inline Option& WithOptionSettings(const Aws::Vector<OptionSetting>& value) { SetOptionSettings(value); return *this;}
127 inline Option& WithOptionSettings(Aws::Vector<OptionSetting>&& value) { SetOptionSettings(std::move(value)); return *this;}
128 inline Option& AddOptionSettings(const OptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
129 inline Option& AddOptionSettings(OptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; }
131
133
137 inline const Aws::Vector<DBSecurityGroupMembership>& GetDBSecurityGroupMemberships() const{ return m_dBSecurityGroupMemberships; }
138 inline bool DBSecurityGroupMembershipsHasBeenSet() const { return m_dBSecurityGroupMembershipsHasBeenSet; }
139 inline void SetDBSecurityGroupMemberships(const Aws::Vector<DBSecurityGroupMembership>& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships = value; }
140 inline void SetDBSecurityGroupMemberships(Aws::Vector<DBSecurityGroupMembership>&& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships = std::move(value); }
143 inline Option& AddDBSecurityGroupMemberships(const DBSecurityGroupMembership& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships.push_back(value); return *this; }
144 inline Option& AddDBSecurityGroupMemberships(DBSecurityGroupMembership&& value) { m_dBSecurityGroupMembershipsHasBeenSet = true; m_dBSecurityGroupMemberships.push_back(std::move(value)); return *this; }
146
148
152 inline const Aws::Vector<VpcSecurityGroupMembership>& GetVpcSecurityGroupMemberships() const{ return m_vpcSecurityGroupMemberships; }
153 inline bool VpcSecurityGroupMembershipsHasBeenSet() const { return m_vpcSecurityGroupMembershipsHasBeenSet; }
154 inline void SetVpcSecurityGroupMemberships(const Aws::Vector<VpcSecurityGroupMembership>& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships = value; }
155 inline void SetVpcSecurityGroupMemberships(Aws::Vector<VpcSecurityGroupMembership>&& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships = std::move(value); }
158 inline Option& AddVpcSecurityGroupMemberships(const VpcSecurityGroupMembership& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships.push_back(value); return *this; }
159 inline Option& AddVpcSecurityGroupMemberships(VpcSecurityGroupMembership&& value) { m_vpcSecurityGroupMembershipsHasBeenSet = true; m_vpcSecurityGroupMemberships.push_back(std::move(value)); return *this; }
161 private:
162
163 Aws::String m_optionName;
164 bool m_optionNameHasBeenSet = false;
165
166 Aws::String m_optionDescription;
167 bool m_optionDescriptionHasBeenSet = false;
168
169 bool m_persistent;
170 bool m_persistentHasBeenSet = false;
171
172 bool m_permanent;
173 bool m_permanentHasBeenSet = false;
174
175 int m_port;
176 bool m_portHasBeenSet = false;
177
178 Aws::String m_optionVersion;
179 bool m_optionVersionHasBeenSet = false;
180
181 Aws::Vector<OptionSetting> m_optionSettings;
182 bool m_optionSettingsHasBeenSet = false;
183
184 Aws::Vector<DBSecurityGroupMembership> m_dBSecurityGroupMemberships;
185 bool m_dBSecurityGroupMembershipsHasBeenSet = false;
186
187 Aws::Vector<VpcSecurityGroupMembership> m_vpcSecurityGroupMemberships;
188 bool m_vpcSecurityGroupMembershipsHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace RDS
193} // namespace Aws
void SetOptionDescription(Aws::String &&value)
Definition Option.h:67
const Aws::Vector< VpcSecurityGroupMembership > & GetVpcSecurityGroupMemberships() const
Definition Option.h:152
void SetOptionVersion(Aws::String &&value)
Definition Option.h:111
bool PersistentHasBeenSet() const
Definition Option.h:79
const Aws::Vector< DBSecurityGroupMembership > & GetDBSecurityGroupMemberships() const
Definition Option.h:137
void SetOptionDescription(const char *value)
Definition Option.h:68
Option & AddDBSecurityGroupMemberships(DBSecurityGroupMembership &&value)
Definition Option.h:144
Option & AddVpcSecurityGroupMemberships(VpcSecurityGroupMembership &&value)
Definition Option.h:159
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool GetPermanent() const
Definition Option.h:88
Option & WithOptionSettings(const Aws::Vector< OptionSetting > &value)
Definition Option.h:126
Option & WithPersistent(bool value)
Definition Option.h:81
void SetPort(int value)
Definition Option.h:100
Option & WithOptionSettings(Aws::Vector< OptionSetting > &&value)
Definition Option.h:127
Option & WithOptionName(const Aws::String &value)
Definition Option.h:55
bool OptionDescriptionHasBeenSet() const
Definition Option.h:65
void SetOptionDescription(const Aws::String &value)
Definition Option.h:66
void SetOptionName(const char *value)
Definition Option.h:54
Option & WithOptionVersion(const char *value)
Definition Option.h:115
Option & WithPort(int value)
Definition Option.h:101
Option & WithOptionDescription(Aws::String &&value)
Definition Option.h:70
Option & AddDBSecurityGroupMemberships(const DBSecurityGroupMembership &value)
Definition Option.h:143
const Aws::Vector< OptionSetting > & GetOptionSettings() const
Definition Option.h:122
bool VpcSecurityGroupMembershipsHasBeenSet() const
Definition Option.h:153
bool PortHasBeenSet() const
Definition Option.h:99
bool DBSecurityGroupMembershipsHasBeenSet() const
Definition Option.h:138
Option & WithVpcSecurityGroupMemberships(const Aws::Vector< VpcSecurityGroupMembership > &value)
Definition Option.h:156
void SetVpcSecurityGroupMemberships(const Aws::Vector< VpcSecurityGroupMembership > &value)
Definition Option.h:154
const Aws::String & GetOptionVersion() const
Definition Option.h:108
bool OptionNameHasBeenSet() const
Definition Option.h:51
Option & AddVpcSecurityGroupMemberships(const VpcSecurityGroupMembership &value)
Definition Option.h:158
void SetOptionVersion(const char *value)
Definition Option.h:112
Option & WithVpcSecurityGroupMemberships(Aws::Vector< VpcSecurityGroupMembership > &&value)
Definition Option.h:157
void SetOptionSettings(Aws::Vector< OptionSetting > &&value)
Definition Option.h:125
Option & AddOptionSettings(const OptionSetting &value)
Definition Option.h:128
void SetPermanent(bool value)
Definition Option.h:90
void SetDBSecurityGroupMemberships(Aws::Vector< DBSecurityGroupMembership > &&value)
Definition Option.h:140
void SetOptionName(const Aws::String &value)
Definition Option.h:52
const Aws::String & GetOptionName() const
Definition Option.h:50
Option & WithPermanent(bool value)
Definition Option.h:91
bool GetPersistent() const
Definition Option.h:78
Option & WithDBSecurityGroupMemberships(const Aws::Vector< DBSecurityGroupMembership > &value)
Definition Option.h:141
void SetOptionName(Aws::String &&value)
Definition Option.h:53
void SetOptionSettings(const Aws::Vector< OptionSetting > &value)
Definition Option.h:124
Option & WithOptionName(Aws::String &&value)
Definition Option.h:56
Option & WithOptionDescription(const Aws::String &value)
Definition Option.h:69
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
int GetPort() const
Definition Option.h:98
AWS_RDS_API Option(const Aws::Utils::Xml::XmlNode &xmlNode)
Option & WithOptionVersion(const Aws::String &value)
Definition Option.h:113
void SetPersistent(bool value)
Definition Option.h:80
const Aws::String & GetOptionDescription() const
Definition Option.h:64
Option & WithOptionDescription(const char *value)
Definition Option.h:71
Option & WithDBSecurityGroupMemberships(Aws::Vector< DBSecurityGroupMembership > &&value)
Definition Option.h:142
bool OptionVersionHasBeenSet() const
Definition Option.h:109
void SetOptionVersion(const Aws::String &value)
Definition Option.h:110
void SetDBSecurityGroupMemberships(const Aws::Vector< DBSecurityGroupMembership > &value)
Definition Option.h:139
Option & WithOptionVersion(Aws::String &&value)
Definition Option.h:114
Option & WithOptionName(const char *value)
Definition Option.h:57
Option & AddOptionSettings(OptionSetting &&value)
Definition Option.h:129
void SetVpcSecurityGroupMemberships(Aws::Vector< VpcSecurityGroupMembership > &&value)
Definition Option.h:155
bool OptionSettingsHasBeenSet() const
Definition Option.h:123
bool PermanentHasBeenSet() const
Definition Option.h:89
AWS_RDS_API Option & 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