AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBProxy.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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/RDS_EXPORTS.h>
12#include <aws/rds/model/DBProxyStatus.h>
13#include <aws/rds/model/EndpointNetworkType.h>
14#include <aws/rds/model/TargetConnectionNetworkType.h>
15#include <aws/rds/model/UserAuthConfigInfo.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace RDS {
26namespace Model {
27
35class DBProxy {
36 public:
37 AWS_RDS_API DBProxy() = default;
38 AWS_RDS_API DBProxy(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_RDS_API DBProxy& operator=(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
45
50 inline const Aws::String& GetDBProxyName() const { return m_dBProxyName; }
51 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
52 template <typename DBProxyNameT = Aws::String>
53 void SetDBProxyName(DBProxyNameT&& value) {
54 m_dBProxyNameHasBeenSet = true;
55 m_dBProxyName = std::forward<DBProxyNameT>(value);
56 }
57 template <typename DBProxyNameT = Aws::String>
58 DBProxy& WithDBProxyName(DBProxyNameT&& value) {
59 SetDBProxyName(std::forward<DBProxyNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetDBProxyArn() const { return m_dBProxyArn; }
69 inline bool DBProxyArnHasBeenSet() const { return m_dBProxyArnHasBeenSet; }
70 template <typename DBProxyArnT = Aws::String>
71 void SetDBProxyArn(DBProxyArnT&& value) {
72 m_dBProxyArnHasBeenSet = true;
73 m_dBProxyArn = std::forward<DBProxyArnT>(value);
74 }
75 template <typename DBProxyArnT = Aws::String>
76 DBProxy& WithDBProxyArn(DBProxyArnT&& value) {
77 SetDBProxyArn(std::forward<DBProxyArnT>(value));
78 return *this;
79 }
81
83
88 inline DBProxyStatus GetStatus() const { return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 inline void SetStatus(DBProxyStatus value) {
91 m_statusHasBeenSet = true;
92 m_status = value;
93 }
95 SetStatus(value);
96 return *this;
97 }
99
101
109 inline const Aws::String& GetEngineFamily() const { return m_engineFamily; }
110 inline bool EngineFamilyHasBeenSet() const { return m_engineFamilyHasBeenSet; }
111 template <typename EngineFamilyT = Aws::String>
112 void SetEngineFamily(EngineFamilyT&& value) {
113 m_engineFamilyHasBeenSet = true;
114 m_engineFamily = std::forward<EngineFamilyT>(value);
115 }
116 template <typename EngineFamilyT = Aws::String>
117 DBProxy& WithEngineFamily(EngineFamilyT&& value) {
118 SetEngineFamily(std::forward<EngineFamilyT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetVpcId() const { return m_vpcId; }
128 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
129 template <typename VpcIdT = Aws::String>
130 void SetVpcId(VpcIdT&& value) {
131 m_vpcIdHasBeenSet = true;
132 m_vpcId = std::forward<VpcIdT>(value);
133 }
134 template <typename VpcIdT = Aws::String>
135 DBProxy& WithVpcId(VpcIdT&& value) {
136 SetVpcId(std::forward<VpcIdT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
146 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
147 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
148 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
149 m_vpcSecurityGroupIdsHasBeenSet = true;
150 m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value);
151 }
152 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
153 DBProxy& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
154 SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value));
155 return *this;
156 }
157 template <typename VpcSecurityGroupIdsT = Aws::String>
158 DBProxy& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
159 m_vpcSecurityGroupIdsHasBeenSet = true;
160 m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
170 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
171 template <typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
172 void SetVpcSubnetIds(VpcSubnetIdsT&& value) {
173 m_vpcSubnetIdsHasBeenSet = true;
174 m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value);
175 }
176 template <typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
177 DBProxy& WithVpcSubnetIds(VpcSubnetIdsT&& value) {
178 SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value));
179 return *this;
180 }
181 template <typename VpcSubnetIdsT = Aws::String>
182 DBProxy& AddVpcSubnetIds(VpcSubnetIdsT&& value) {
183 m_vpcSubnetIdsHasBeenSet = true;
184 m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value));
185 return *this;
186 }
188
190
197 inline const Aws::String& GetDefaultAuthScheme() const { return m_defaultAuthScheme; }
198 inline bool DefaultAuthSchemeHasBeenSet() const { return m_defaultAuthSchemeHasBeenSet; }
199 template <typename DefaultAuthSchemeT = Aws::String>
200 void SetDefaultAuthScheme(DefaultAuthSchemeT&& value) {
201 m_defaultAuthSchemeHasBeenSet = true;
202 m_defaultAuthScheme = std::forward<DefaultAuthSchemeT>(value);
203 }
204 template <typename DefaultAuthSchemeT = Aws::String>
205 DBProxy& WithDefaultAuthScheme(DefaultAuthSchemeT&& value) {
206 SetDefaultAuthScheme(std::forward<DefaultAuthSchemeT>(value));
207 return *this;
208 }
210
212
216 inline const Aws::Vector<UserAuthConfigInfo>& GetAuth() const { return m_auth; }
217 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
218 template <typename AuthT = Aws::Vector<UserAuthConfigInfo>>
219 void SetAuth(AuthT&& value) {
220 m_authHasBeenSet = true;
221 m_auth = std::forward<AuthT>(value);
222 }
223 template <typename AuthT = Aws::Vector<UserAuthConfigInfo>>
224 DBProxy& WithAuth(AuthT&& value) {
225 SetAuth(std::forward<AuthT>(value));
226 return *this;
227 }
228 template <typename AuthT = UserAuthConfigInfo>
229 DBProxy& AddAuth(AuthT&& value) {
230 m_authHasBeenSet = true;
231 m_auth.emplace_back(std::forward<AuthT>(value));
232 return *this;
233 }
235
237
241 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
242 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
243 template <typename RoleArnT = Aws::String>
244 void SetRoleArn(RoleArnT&& value) {
245 m_roleArnHasBeenSet = true;
246 m_roleArn = std::forward<RoleArnT>(value);
247 }
248 template <typename RoleArnT = Aws::String>
249 DBProxy& WithRoleArn(RoleArnT&& value) {
250 SetRoleArn(std::forward<RoleArnT>(value));
251 return *this;
252 }
254
256
260 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
261 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
262 template <typename EndpointT = Aws::String>
263 void SetEndpoint(EndpointT&& value) {
264 m_endpointHasBeenSet = true;
265 m_endpoint = std::forward<EndpointT>(value);
266 }
267 template <typename EndpointT = Aws::String>
268 DBProxy& WithEndpoint(EndpointT&& value) {
269 SetEndpoint(std::forward<EndpointT>(value));
270 return *this;
271 }
273
275
279 inline bool GetRequireTLS() const { return m_requireTLS; }
280 inline bool RequireTLSHasBeenSet() const { return m_requireTLSHasBeenSet; }
281 inline void SetRequireTLS(bool value) {
282 m_requireTLSHasBeenSet = true;
283 m_requireTLS = value;
284 }
285 inline DBProxy& WithRequireTLS(bool value) {
286 SetRequireTLS(value);
287 return *this;
288 }
290
292
299 inline int GetIdleClientTimeout() const { return m_idleClientTimeout; }
300 inline bool IdleClientTimeoutHasBeenSet() const { return m_idleClientTimeoutHasBeenSet; }
301 inline void SetIdleClientTimeout(int value) {
302 m_idleClientTimeoutHasBeenSet = true;
303 m_idleClientTimeout = value;
304 }
305 inline DBProxy& WithIdleClientTimeout(int value) {
307 return *this;
308 }
310
312
319 inline bool GetDebugLogging() const { return m_debugLogging; }
320 inline bool DebugLoggingHasBeenSet() const { return m_debugLoggingHasBeenSet; }
321 inline void SetDebugLogging(bool value) {
322 m_debugLoggingHasBeenSet = true;
323 m_debugLogging = value;
324 }
325 inline DBProxy& WithDebugLogging(bool value) {
326 SetDebugLogging(value);
327 return *this;
328 }
330
332
335 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
336 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
337 template <typename CreatedDateT = Aws::Utils::DateTime>
338 void SetCreatedDate(CreatedDateT&& value) {
339 m_createdDateHasBeenSet = true;
340 m_createdDate = std::forward<CreatedDateT>(value);
341 }
342 template <typename CreatedDateT = Aws::Utils::DateTime>
343 DBProxy& WithCreatedDate(CreatedDateT&& value) {
344 SetCreatedDate(std::forward<CreatedDateT>(value));
345 return *this;
346 }
348
350
353 inline const Aws::Utils::DateTime& GetUpdatedDate() const { return m_updatedDate; }
354 inline bool UpdatedDateHasBeenSet() const { return m_updatedDateHasBeenSet; }
355 template <typename UpdatedDateT = Aws::Utils::DateTime>
356 void SetUpdatedDate(UpdatedDateT&& value) {
357 m_updatedDateHasBeenSet = true;
358 m_updatedDate = std::forward<UpdatedDateT>(value);
359 }
360 template <typename UpdatedDateT = Aws::Utils::DateTime>
361 DBProxy& WithUpdatedDate(UpdatedDateT&& value) {
362 SetUpdatedDate(std::forward<UpdatedDateT>(value));
363 return *this;
364 }
366
368
376 inline EndpointNetworkType GetEndpointNetworkType() const { return m_endpointNetworkType; }
377 inline bool EndpointNetworkTypeHasBeenSet() const { return m_endpointNetworkTypeHasBeenSet; }
379 m_endpointNetworkTypeHasBeenSet = true;
380 m_endpointNetworkType = value;
381 }
384 return *this;
385 }
387
389
397 inline TargetConnectionNetworkType GetTargetConnectionNetworkType() const { return m_targetConnectionNetworkType; }
398 inline bool TargetConnectionNetworkTypeHasBeenSet() const { return m_targetConnectionNetworkTypeHasBeenSet; }
400 m_targetConnectionNetworkTypeHasBeenSet = true;
401 m_targetConnectionNetworkType = value;
402 }
405 return *this;
406 }
408 private:
409 Aws::String m_dBProxyName;
410
411 Aws::String m_dBProxyArn;
412
414
415 Aws::String m_engineFamily;
416
417 Aws::String m_vpcId;
418
419 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
420
421 Aws::Vector<Aws::String> m_vpcSubnetIds;
422
423 Aws::String m_defaultAuthScheme;
424
426
427 Aws::String m_roleArn;
428
429 Aws::String m_endpoint;
430
431 bool m_requireTLS{false};
432
433 int m_idleClientTimeout{0};
434
435 bool m_debugLogging{false};
436
437 Aws::Utils::DateTime m_createdDate{};
438
439 Aws::Utils::DateTime m_updatedDate{};
440
442
444 bool m_dBProxyNameHasBeenSet = false;
445 bool m_dBProxyArnHasBeenSet = false;
446 bool m_statusHasBeenSet = false;
447 bool m_engineFamilyHasBeenSet = false;
448 bool m_vpcIdHasBeenSet = false;
449 bool m_vpcSecurityGroupIdsHasBeenSet = false;
450 bool m_vpcSubnetIdsHasBeenSet = false;
451 bool m_defaultAuthSchemeHasBeenSet = false;
452 bool m_authHasBeenSet = false;
453 bool m_roleArnHasBeenSet = false;
454 bool m_endpointHasBeenSet = false;
455 bool m_requireTLSHasBeenSet = false;
456 bool m_idleClientTimeoutHasBeenSet = false;
457 bool m_debugLoggingHasBeenSet = false;
458 bool m_createdDateHasBeenSet = false;
459 bool m_updatedDateHasBeenSet = false;
460 bool m_endpointNetworkTypeHasBeenSet = false;
461 bool m_targetConnectionNetworkTypeHasBeenSet = false;
462};
463
464} // namespace Model
465} // namespace RDS
466} // namespace Aws
bool VpcSubnetIdsHasBeenSet() const
Definition DBProxy.h:170
DBProxy & AddAuth(AuthT &&value)
Definition DBProxy.h:229
void SetAuth(AuthT &&value)
Definition DBProxy.h:219
void SetVpcSubnetIds(VpcSubnetIdsT &&value)
Definition DBProxy.h:172
void SetRoleArn(RoleArnT &&value)
Definition DBProxy.h:244
DBProxy & WithDebugLogging(bool value)
Definition DBProxy.h:325
bool DBProxyNameHasBeenSet() const
Definition DBProxy.h:51
const Aws::Utils::DateTime & GetUpdatedDate() const
Definition DBProxy.h:353
DBProxy & WithAuth(AuthT &&value)
Definition DBProxy.h:224
bool DebugLoggingHasBeenSet() const
Definition DBProxy.h:320
bool GetRequireTLS() const
Definition DBProxy.h:279
EndpointNetworkType GetEndpointNetworkType() const
Definition DBProxy.h:376
DBProxy & WithIdleClientTimeout(int value)
Definition DBProxy.h:305
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStatus(DBProxyStatus value)
Definition DBProxy.h:90
bool StatusHasBeenSet() const
Definition DBProxy.h:89
DBProxy & WithVpcSubnetIds(VpcSubnetIdsT &&value)
Definition DBProxy.h:177
bool EngineFamilyHasBeenSet() const
Definition DBProxy.h:110
const Aws::String & GetDBProxyName() const
Definition DBProxy.h:50
bool RoleArnHasBeenSet() const
Definition DBProxy.h:242
bool DBProxyArnHasBeenSet() const
Definition DBProxy.h:69
void SetEndpointNetworkType(EndpointNetworkType value)
Definition DBProxy.h:378
DBProxy & WithTargetConnectionNetworkType(TargetConnectionNetworkType value)
Definition DBProxy.h:403
void SetDBProxyName(DBProxyNameT &&value)
Definition DBProxy.h:53
const Aws::String & GetDBProxyArn() const
Definition DBProxy.h:68
AWS_RDS_API DBProxy(const Aws::Utils::Xml::XmlNode &xmlNode)
DBProxy & WithVpcId(VpcIdT &&value)
Definition DBProxy.h:135
DBProxy & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition DBProxy.h:158
DBProxy & WithDefaultAuthScheme(DefaultAuthSchemeT &&value)
Definition DBProxy.h:205
const Aws::Vector< UserAuthConfigInfo > & GetAuth() const
Definition DBProxy.h:216
DBProxy & WithUpdatedDate(UpdatedDateT &&value)
Definition DBProxy.h:361
void SetDefaultAuthScheme(DefaultAuthSchemeT &&value)
Definition DBProxy.h:200
bool UpdatedDateHasBeenSet() const
Definition DBProxy.h:354
void SetEngineFamily(EngineFamilyT &&value)
Definition DBProxy.h:112
bool CreatedDateHasBeenSet() const
Definition DBProxy.h:336
bool IdleClientTimeoutHasBeenSet() const
Definition DBProxy.h:300
DBProxy & WithRoleArn(RoleArnT &&value)
Definition DBProxy.h:249
void SetDBProxyArn(DBProxyArnT &&value)
Definition DBProxy.h:71
DBProxy & WithEndpointNetworkType(EndpointNetworkType value)
Definition DBProxy.h:382
void SetCreatedDate(CreatedDateT &&value)
Definition DBProxy.h:338
DBProxy & WithRequireTLS(bool value)
Definition DBProxy.h:285
void SetEndpoint(EndpointT &&value)
Definition DBProxy.h:263
bool TargetConnectionNetworkTypeHasBeenSet() const
Definition DBProxy.h:398
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUpdatedDate(UpdatedDateT &&value)
Definition DBProxy.h:356
const Aws::String & GetDefaultAuthScheme() const
Definition DBProxy.h:197
DBProxy & WithEndpoint(EndpointT &&value)
Definition DBProxy.h:268
bool AuthHasBeenSet() const
Definition DBProxy.h:217
DBProxy & WithDBProxyName(DBProxyNameT &&value)
Definition DBProxy.h:58
TargetConnectionNetworkType GetTargetConnectionNetworkType() const
Definition DBProxy.h:397
AWS_RDS_API DBProxy()=default
bool GetDebugLogging() const
Definition DBProxy.h:319
const Aws::String & GetEndpoint() const
Definition DBProxy.h:260
const Aws::String & GetEngineFamily() const
Definition DBProxy.h:109
DBProxy & WithEngineFamily(EngineFamilyT &&value)
Definition DBProxy.h:117
DBProxy & WithStatus(DBProxyStatus value)
Definition DBProxy.h:94
bool EndpointHasBeenSet() const
Definition DBProxy.h:261
DBProxy & AddVpcSubnetIds(VpcSubnetIdsT &&value)
Definition DBProxy.h:182
DBProxy & WithCreatedDate(CreatedDateT &&value)
Definition DBProxy.h:343
bool EndpointNetworkTypeHasBeenSet() const
Definition DBProxy.h:377
void SetIdleClientTimeout(int value)
Definition DBProxy.h:301
const Aws::String & GetVpcId() const
Definition DBProxy.h:127
void SetTargetConnectionNetworkType(TargetConnectionNetworkType value)
Definition DBProxy.h:399
void SetRequireTLS(bool value)
Definition DBProxy.h:281
void SetDebugLogging(bool value)
Definition DBProxy.h:321
int GetIdleClientTimeout() const
Definition DBProxy.h:299
bool DefaultAuthSchemeHasBeenSet() const
Definition DBProxy.h:198
DBProxy & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition DBProxy.h:153
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition DBProxy.h:148
bool RequireTLSHasBeenSet() const
Definition DBProxy.h:280
const Aws::Utils::DateTime & GetCreatedDate() const
Definition DBProxy.h:335
DBProxyStatus GetStatus() const
Definition DBProxy.h:88
bool VpcSecurityGroupIdsHasBeenSet() const
Definition DBProxy.h:146
DBProxy & WithDBProxyArn(DBProxyArnT &&value)
Definition DBProxy.h:76
const Aws::String & GetRoleArn() const
Definition DBProxy.h:241
AWS_RDS_API DBProxy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool VpcIdHasBeenSet() const
Definition DBProxy.h:128
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
Definition DBProxy.h:145
void SetVpcId(VpcIdT &&value)
Definition DBProxy.h:130
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
Definition DBProxy.h:169
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