AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DBProxy.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/rds/model/DBProxyStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/rds/model/UserAuthConfigInfo.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
37 class DBProxy
38 {
39 public:
40 AWS_RDS_API DBProxy() = default;
41 AWS_RDS_API DBProxy(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_RDS_API DBProxy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
54 inline const Aws::String& GetDBProxyName() const { return m_dBProxyName; }
55 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
56 template<typename DBProxyNameT = Aws::String>
57 void SetDBProxyName(DBProxyNameT&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::forward<DBProxyNameT>(value); }
58 template<typename DBProxyNameT = Aws::String>
59 DBProxy& WithDBProxyName(DBProxyNameT&& value) { SetDBProxyName(std::forward<DBProxyNameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetDBProxyArn() const { return m_dBProxyArn; }
67 inline bool DBProxyArnHasBeenSet() const { return m_dBProxyArnHasBeenSet; }
68 template<typename DBProxyArnT = Aws::String>
69 void SetDBProxyArn(DBProxyArnT&& value) { m_dBProxyArnHasBeenSet = true; m_dBProxyArn = std::forward<DBProxyArnT>(value); }
70 template<typename DBProxyArnT = Aws::String>
71 DBProxy& WithDBProxyArn(DBProxyArnT&& value) { SetDBProxyArn(std::forward<DBProxyArnT>(value)); return *this;}
73
75
80 inline DBProxyStatus GetStatus() const { return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 inline void SetStatus(DBProxyStatus value) { m_statusHasBeenSet = true; m_status = value; }
83 inline DBProxy& WithStatus(DBProxyStatus value) { SetStatus(value); return *this;}
85
87
95 inline const Aws::String& GetEngineFamily() const { return m_engineFamily; }
96 inline bool EngineFamilyHasBeenSet() const { return m_engineFamilyHasBeenSet; }
97 template<typename EngineFamilyT = Aws::String>
98 void SetEngineFamily(EngineFamilyT&& value) { m_engineFamilyHasBeenSet = true; m_engineFamily = std::forward<EngineFamilyT>(value); }
99 template<typename EngineFamilyT = Aws::String>
100 DBProxy& WithEngineFamily(EngineFamilyT&& value) { SetEngineFamily(std::forward<EngineFamilyT>(value)); return *this;}
102
104
107 inline const Aws::String& GetVpcId() const { return m_vpcId; }
108 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
109 template<typename VpcIdT = Aws::String>
110 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
111 template<typename VpcIdT = Aws::String>
112 DBProxy& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
114
116
119 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
120 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
121 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
122 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
123 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
124 DBProxy& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
125 template<typename VpcSecurityGroupIdsT = Aws::String>
126 DBProxy& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
128
130
133 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
134 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
135 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
136 void SetVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value); }
137 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
138 DBProxy& WithVpcSubnetIds(VpcSubnetIdsT&& value) { SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value)); return *this;}
139 template<typename VpcSubnetIdsT = Aws::String>
140 DBProxy& AddVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value)); return *this; }
142
144
148 inline const Aws::Vector<UserAuthConfigInfo>& GetAuth() const { return m_auth; }
149 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
150 template<typename AuthT = Aws::Vector<UserAuthConfigInfo>>
151 void SetAuth(AuthT&& value) { m_authHasBeenSet = true; m_auth = std::forward<AuthT>(value); }
152 template<typename AuthT = Aws::Vector<UserAuthConfigInfo>>
153 DBProxy& WithAuth(AuthT&& value) { SetAuth(std::forward<AuthT>(value)); return *this;}
154 template<typename AuthT = UserAuthConfigInfo>
155 DBProxy& AddAuth(AuthT&& value) { m_authHasBeenSet = true; m_auth.emplace_back(std::forward<AuthT>(value)); return *this; }
157
159
163 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
164 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
165 template<typename RoleArnT = Aws::String>
166 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
167 template<typename RoleArnT = Aws::String>
168 DBProxy& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
170
172
176 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
177 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
178 template<typename EndpointT = Aws::String>
179 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
180 template<typename EndpointT = Aws::String>
181 DBProxy& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
183
185
189 inline bool GetRequireTLS() const { return m_requireTLS; }
190 inline bool RequireTLSHasBeenSet() const { return m_requireTLSHasBeenSet; }
191 inline void SetRequireTLS(bool value) { m_requireTLSHasBeenSet = true; m_requireTLS = value; }
192 inline DBProxy& WithRequireTLS(bool value) { SetRequireTLS(value); return *this;}
194
196
203 inline int GetIdleClientTimeout() const { return m_idleClientTimeout; }
204 inline bool IdleClientTimeoutHasBeenSet() const { return m_idleClientTimeoutHasBeenSet; }
205 inline void SetIdleClientTimeout(int value) { m_idleClientTimeoutHasBeenSet = true; m_idleClientTimeout = value; }
206 inline DBProxy& WithIdleClientTimeout(int value) { SetIdleClientTimeout(value); return *this;}
208
210
219 inline bool GetDebugLogging() const { return m_debugLogging; }
220 inline bool DebugLoggingHasBeenSet() const { return m_debugLoggingHasBeenSet; }
221 inline void SetDebugLogging(bool value) { m_debugLoggingHasBeenSet = true; m_debugLogging = value; }
222 inline DBProxy& WithDebugLogging(bool value) { SetDebugLogging(value); return *this;}
224
226
229 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
230 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
231 template<typename CreatedDateT = Aws::Utils::DateTime>
232 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
233 template<typename CreatedDateT = Aws::Utils::DateTime>
234 DBProxy& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
236
238
241 inline const Aws::Utils::DateTime& GetUpdatedDate() const { return m_updatedDate; }
242 inline bool UpdatedDateHasBeenSet() const { return m_updatedDateHasBeenSet; }
243 template<typename UpdatedDateT = Aws::Utils::DateTime>
244 void SetUpdatedDate(UpdatedDateT&& value) { m_updatedDateHasBeenSet = true; m_updatedDate = std::forward<UpdatedDateT>(value); }
245 template<typename UpdatedDateT = Aws::Utils::DateTime>
246 DBProxy& WithUpdatedDate(UpdatedDateT&& value) { SetUpdatedDate(std::forward<UpdatedDateT>(value)); return *this;}
248 private:
249
250 Aws::String m_dBProxyName;
251 bool m_dBProxyNameHasBeenSet = false;
252
253 Aws::String m_dBProxyArn;
254 bool m_dBProxyArnHasBeenSet = false;
255
257 bool m_statusHasBeenSet = false;
258
259 Aws::String m_engineFamily;
260 bool m_engineFamilyHasBeenSet = false;
261
262 Aws::String m_vpcId;
263 bool m_vpcIdHasBeenSet = false;
264
265 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
266 bool m_vpcSecurityGroupIdsHasBeenSet = false;
267
268 Aws::Vector<Aws::String> m_vpcSubnetIds;
269 bool m_vpcSubnetIdsHasBeenSet = false;
270
272 bool m_authHasBeenSet = false;
273
274 Aws::String m_roleArn;
275 bool m_roleArnHasBeenSet = false;
276
277 Aws::String m_endpoint;
278 bool m_endpointHasBeenSet = false;
279
280 bool m_requireTLS{false};
281 bool m_requireTLSHasBeenSet = false;
282
283 int m_idleClientTimeout{0};
284 bool m_idleClientTimeoutHasBeenSet = false;
285
286 bool m_debugLogging{false};
287 bool m_debugLoggingHasBeenSet = false;
288
289 Aws::Utils::DateTime m_createdDate{};
290 bool m_createdDateHasBeenSet = false;
291
292 Aws::Utils::DateTime m_updatedDate{};
293 bool m_updatedDateHasBeenSet = false;
294 };
295
296} // namespace Model
297} // namespace RDS
298} // namespace Aws
bool VpcSubnetIdsHasBeenSet() const
Definition DBProxy.h:134
DBProxy & AddAuth(AuthT &&value)
Definition DBProxy.h:155
void SetAuth(AuthT &&value)
Definition DBProxy.h:151
void SetVpcSubnetIds(VpcSubnetIdsT &&value)
Definition DBProxy.h:136
void SetRoleArn(RoleArnT &&value)
Definition DBProxy.h:166
DBProxy & WithDebugLogging(bool value)
Definition DBProxy.h:222
bool DBProxyNameHasBeenSet() const
Definition DBProxy.h:55
const Aws::Utils::DateTime & GetUpdatedDate() const
Definition DBProxy.h:241
DBProxy & WithAuth(AuthT &&value)
Definition DBProxy.h:153
bool DebugLoggingHasBeenSet() const
Definition DBProxy.h:220
bool GetRequireTLS() const
Definition DBProxy.h:189
DBProxy & WithIdleClientTimeout(int value)
Definition DBProxy.h:206
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStatus(DBProxyStatus value)
Definition DBProxy.h:82
bool StatusHasBeenSet() const
Definition DBProxy.h:81
DBProxy & WithVpcSubnetIds(VpcSubnetIdsT &&value)
Definition DBProxy.h:138
bool EngineFamilyHasBeenSet() const
Definition DBProxy.h:96
const Aws::String & GetDBProxyName() const
Definition DBProxy.h:54
bool RoleArnHasBeenSet() const
Definition DBProxy.h:164
bool DBProxyArnHasBeenSet() const
Definition DBProxy.h:67
void SetDBProxyName(DBProxyNameT &&value)
Definition DBProxy.h:57
const Aws::String & GetDBProxyArn() const
Definition DBProxy.h:66
AWS_RDS_API DBProxy(const Aws::Utils::Xml::XmlNode &xmlNode)
DBProxy & WithVpcId(VpcIdT &&value)
Definition DBProxy.h:112
DBProxy & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition DBProxy.h:126
const Aws::Vector< UserAuthConfigInfo > & GetAuth() const
Definition DBProxy.h:148
DBProxy & WithUpdatedDate(UpdatedDateT &&value)
Definition DBProxy.h:246
bool UpdatedDateHasBeenSet() const
Definition DBProxy.h:242
void SetEngineFamily(EngineFamilyT &&value)
Definition DBProxy.h:98
bool CreatedDateHasBeenSet() const
Definition DBProxy.h:230
bool IdleClientTimeoutHasBeenSet() const
Definition DBProxy.h:204
DBProxy & WithRoleArn(RoleArnT &&value)
Definition DBProxy.h:168
void SetDBProxyArn(DBProxyArnT &&value)
Definition DBProxy.h:69
void SetCreatedDate(CreatedDateT &&value)
Definition DBProxy.h:232
DBProxy & WithRequireTLS(bool value)
Definition DBProxy.h:192
void SetEndpoint(EndpointT &&value)
Definition DBProxy.h:179
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUpdatedDate(UpdatedDateT &&value)
Definition DBProxy.h:244
DBProxy & WithEndpoint(EndpointT &&value)
Definition DBProxy.h:181
bool AuthHasBeenSet() const
Definition DBProxy.h:149
DBProxy & WithDBProxyName(DBProxyNameT &&value)
Definition DBProxy.h:59
AWS_RDS_API DBProxy()=default
bool GetDebugLogging() const
Definition DBProxy.h:219
const Aws::String & GetEndpoint() const
Definition DBProxy.h:176
const Aws::String & GetEngineFamily() const
Definition DBProxy.h:95
DBProxy & WithEngineFamily(EngineFamilyT &&value)
Definition DBProxy.h:100
DBProxy & WithStatus(DBProxyStatus value)
Definition DBProxy.h:83
bool EndpointHasBeenSet() const
Definition DBProxy.h:177
DBProxy & AddVpcSubnetIds(VpcSubnetIdsT &&value)
Definition DBProxy.h:140
DBProxy & WithCreatedDate(CreatedDateT &&value)
Definition DBProxy.h:234
void SetIdleClientTimeout(int value)
Definition DBProxy.h:205
const Aws::String & GetVpcId() const
Definition DBProxy.h:107
void SetRequireTLS(bool value)
Definition DBProxy.h:191
void SetDebugLogging(bool value)
Definition DBProxy.h:221
int GetIdleClientTimeout() const
Definition DBProxy.h:203
DBProxy & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition DBProxy.h:124
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition DBProxy.h:122
bool RequireTLSHasBeenSet() const
Definition DBProxy.h:190
const Aws::Utils::DateTime & GetCreatedDate() const
Definition DBProxy.h:229
DBProxyStatus GetStatus() const
Definition DBProxy.h:80
bool VpcSecurityGroupIdsHasBeenSet() const
Definition DBProxy.h:120
DBProxy & WithDBProxyArn(DBProxyArnT &&value)
Definition DBProxy.h:71
const Aws::String & GetRoleArn() const
Definition DBProxy.h:163
AWS_RDS_API DBProxy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool VpcIdHasBeenSet() const
Definition DBProxy.h:108
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
Definition DBProxy.h:119
void SetVpcId(VpcIdT &&value)
Definition DBProxy.h:110
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
Definition DBProxy.h:133
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