AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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/EndpointNetworkType.h>
14#include <aws/rds/model/TargetConnectionNetworkType.h>
15#include <aws/rds/model/UserAuthConfigInfo.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace RDS
28{
29namespace Model
30{
31
39 class DBProxy
40 {
41 public:
42 AWS_RDS_API DBProxy() = default;
43 AWS_RDS_API DBProxy(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_RDS_API DBProxy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
56 inline const Aws::String& GetDBProxyName() const { return m_dBProxyName; }
57 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
58 template<typename DBProxyNameT = Aws::String>
59 void SetDBProxyName(DBProxyNameT&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::forward<DBProxyNameT>(value); }
60 template<typename DBProxyNameT = Aws::String>
61 DBProxy& WithDBProxyName(DBProxyNameT&& value) { SetDBProxyName(std::forward<DBProxyNameT>(value)); return *this;}
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) { m_dBProxyArnHasBeenSet = true; m_dBProxyArn = std::forward<DBProxyArnT>(value); }
72 template<typename DBProxyArnT = Aws::String>
73 DBProxy& WithDBProxyArn(DBProxyArnT&& value) { SetDBProxyArn(std::forward<DBProxyArnT>(value)); return *this;}
75
77
82 inline DBProxyStatus GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(DBProxyStatus value) { m_statusHasBeenSet = true; m_status = value; }
85 inline DBProxy& WithStatus(DBProxyStatus value) { SetStatus(value); return *this;}
87
89
97 inline const Aws::String& GetEngineFamily() const { return m_engineFamily; }
98 inline bool EngineFamilyHasBeenSet() const { return m_engineFamilyHasBeenSet; }
99 template<typename EngineFamilyT = Aws::String>
100 void SetEngineFamily(EngineFamilyT&& value) { m_engineFamilyHasBeenSet = true; m_engineFamily = std::forward<EngineFamilyT>(value); }
101 template<typename EngineFamilyT = Aws::String>
102 DBProxy& WithEngineFamily(EngineFamilyT&& value) { SetEngineFamily(std::forward<EngineFamilyT>(value)); return *this;}
104
106
109 inline const Aws::String& GetVpcId() const { return m_vpcId; }
110 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
111 template<typename VpcIdT = Aws::String>
112 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
113 template<typename VpcIdT = Aws::String>
114 DBProxy& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
116
118
121 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
122 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
123 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
124 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
125 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
126 DBProxy& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
127 template<typename VpcSecurityGroupIdsT = Aws::String>
128 DBProxy& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
130
132
135 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
136 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
137 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
138 void SetVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value); }
139 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
140 DBProxy& WithVpcSubnetIds(VpcSubnetIdsT&& value) { SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value)); return *this;}
141 template<typename VpcSubnetIdsT = Aws::String>
142 DBProxy& AddVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value)); return *this; }
144
146
150 inline const Aws::Vector<UserAuthConfigInfo>& GetAuth() const { return m_auth; }
151 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
152 template<typename AuthT = Aws::Vector<UserAuthConfigInfo>>
153 void SetAuth(AuthT&& value) { m_authHasBeenSet = true; m_auth = std::forward<AuthT>(value); }
154 template<typename AuthT = Aws::Vector<UserAuthConfigInfo>>
155 DBProxy& WithAuth(AuthT&& value) { SetAuth(std::forward<AuthT>(value)); return *this;}
156 template<typename AuthT = UserAuthConfigInfo>
157 DBProxy& AddAuth(AuthT&& value) { m_authHasBeenSet = true; m_auth.emplace_back(std::forward<AuthT>(value)); return *this; }
159
161
165 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
166 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
167 template<typename RoleArnT = Aws::String>
168 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
169 template<typename RoleArnT = Aws::String>
170 DBProxy& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
172
174
178 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
179 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
180 template<typename EndpointT = Aws::String>
181 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
182 template<typename EndpointT = Aws::String>
183 DBProxy& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
185
187
191 inline bool GetRequireTLS() const { return m_requireTLS; }
192 inline bool RequireTLSHasBeenSet() const { return m_requireTLSHasBeenSet; }
193 inline void SetRequireTLS(bool value) { m_requireTLSHasBeenSet = true; m_requireTLS = value; }
194 inline DBProxy& WithRequireTLS(bool value) { SetRequireTLS(value); return *this;}
196
198
205 inline int GetIdleClientTimeout() const { return m_idleClientTimeout; }
206 inline bool IdleClientTimeoutHasBeenSet() const { return m_idleClientTimeoutHasBeenSet; }
207 inline void SetIdleClientTimeout(int value) { m_idleClientTimeoutHasBeenSet = true; m_idleClientTimeout = value; }
208 inline DBProxy& WithIdleClientTimeout(int value) { SetIdleClientTimeout(value); return *this;}
210
212
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
250
258 inline EndpointNetworkType GetEndpointNetworkType() const { return m_endpointNetworkType; }
259 inline bool EndpointNetworkTypeHasBeenSet() const { return m_endpointNetworkTypeHasBeenSet; }
260 inline void SetEndpointNetworkType(EndpointNetworkType value) { m_endpointNetworkTypeHasBeenSet = true; m_endpointNetworkType = value; }
263
265
273 inline TargetConnectionNetworkType GetTargetConnectionNetworkType() const { return m_targetConnectionNetworkType; }
274 inline bool TargetConnectionNetworkTypeHasBeenSet() const { return m_targetConnectionNetworkTypeHasBeenSet; }
275 inline void SetTargetConnectionNetworkType(TargetConnectionNetworkType value) { m_targetConnectionNetworkTypeHasBeenSet = true; m_targetConnectionNetworkType = value; }
278 private:
279
280 Aws::String m_dBProxyName;
281 bool m_dBProxyNameHasBeenSet = false;
282
283 Aws::String m_dBProxyArn;
284 bool m_dBProxyArnHasBeenSet = false;
285
287 bool m_statusHasBeenSet = false;
288
289 Aws::String m_engineFamily;
290 bool m_engineFamilyHasBeenSet = false;
291
292 Aws::String m_vpcId;
293 bool m_vpcIdHasBeenSet = false;
294
295 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
296 bool m_vpcSecurityGroupIdsHasBeenSet = false;
297
298 Aws::Vector<Aws::String> m_vpcSubnetIds;
299 bool m_vpcSubnetIdsHasBeenSet = false;
300
302 bool m_authHasBeenSet = false;
303
304 Aws::String m_roleArn;
305 bool m_roleArnHasBeenSet = false;
306
307 Aws::String m_endpoint;
308 bool m_endpointHasBeenSet = false;
309
310 bool m_requireTLS{false};
311 bool m_requireTLSHasBeenSet = false;
312
313 int m_idleClientTimeout{0};
314 bool m_idleClientTimeoutHasBeenSet = false;
315
316 bool m_debugLogging{false};
317 bool m_debugLoggingHasBeenSet = false;
318
319 Aws::Utils::DateTime m_createdDate{};
320 bool m_createdDateHasBeenSet = false;
321
322 Aws::Utils::DateTime m_updatedDate{};
323 bool m_updatedDateHasBeenSet = false;
324
326 bool m_endpointNetworkTypeHasBeenSet = false;
327
329 bool m_targetConnectionNetworkTypeHasBeenSet = false;
330 };
331
332} // namespace Model
333} // namespace RDS
334} // namespace Aws
bool VpcSubnetIdsHasBeenSet() const
Definition DBProxy.h:136
DBProxy & AddAuth(AuthT &&value)
Definition DBProxy.h:157
void SetAuth(AuthT &&value)
Definition DBProxy.h:153
void SetVpcSubnetIds(VpcSubnetIdsT &&value)
Definition DBProxy.h:138
void SetRoleArn(RoleArnT &&value)
Definition DBProxy.h:168
DBProxy & WithDebugLogging(bool value)
Definition DBProxy.h:222
bool DBProxyNameHasBeenSet() const
Definition DBProxy.h:57
const Aws::Utils::DateTime & GetUpdatedDate() const
Definition DBProxy.h:241
DBProxy & WithAuth(AuthT &&value)
Definition DBProxy.h:155
bool DebugLoggingHasBeenSet() const
Definition DBProxy.h:220
bool GetRequireTLS() const
Definition DBProxy.h:191
EndpointNetworkType GetEndpointNetworkType() const
Definition DBProxy.h:258
DBProxy & WithIdleClientTimeout(int value)
Definition DBProxy.h:208
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStatus(DBProxyStatus value)
Definition DBProxy.h:84
bool StatusHasBeenSet() const
Definition DBProxy.h:83
DBProxy & WithVpcSubnetIds(VpcSubnetIdsT &&value)
Definition DBProxy.h:140
bool EngineFamilyHasBeenSet() const
Definition DBProxy.h:98
const Aws::String & GetDBProxyName() const
Definition DBProxy.h:56
bool RoleArnHasBeenSet() const
Definition DBProxy.h:166
bool DBProxyArnHasBeenSet() const
Definition DBProxy.h:69
void SetEndpointNetworkType(EndpointNetworkType value)
Definition DBProxy.h:260
DBProxy & WithTargetConnectionNetworkType(TargetConnectionNetworkType value)
Definition DBProxy.h:276
void SetDBProxyName(DBProxyNameT &&value)
Definition DBProxy.h:59
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:114
DBProxy & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition DBProxy.h:128
const Aws::Vector< UserAuthConfigInfo > & GetAuth() const
Definition DBProxy.h:150
DBProxy & WithUpdatedDate(UpdatedDateT &&value)
Definition DBProxy.h:246
bool UpdatedDateHasBeenSet() const
Definition DBProxy.h:242
void SetEngineFamily(EngineFamilyT &&value)
Definition DBProxy.h:100
bool CreatedDateHasBeenSet() const
Definition DBProxy.h:230
bool IdleClientTimeoutHasBeenSet() const
Definition DBProxy.h:206
DBProxy & WithRoleArn(RoleArnT &&value)
Definition DBProxy.h:170
void SetDBProxyArn(DBProxyArnT &&value)
Definition DBProxy.h:71
DBProxy & WithEndpointNetworkType(EndpointNetworkType value)
Definition DBProxy.h:261
void SetCreatedDate(CreatedDateT &&value)
Definition DBProxy.h:232
DBProxy & WithRequireTLS(bool value)
Definition DBProxy.h:194
void SetEndpoint(EndpointT &&value)
Definition DBProxy.h:181
bool TargetConnectionNetworkTypeHasBeenSet() const
Definition DBProxy.h:274
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:183
bool AuthHasBeenSet() const
Definition DBProxy.h:151
DBProxy & WithDBProxyName(DBProxyNameT &&value)
Definition DBProxy.h:61
TargetConnectionNetworkType GetTargetConnectionNetworkType() const
Definition DBProxy.h:273
AWS_RDS_API DBProxy()=default
bool GetDebugLogging() const
Definition DBProxy.h:219
const Aws::String & GetEndpoint() const
Definition DBProxy.h:178
const Aws::String & GetEngineFamily() const
Definition DBProxy.h:97
DBProxy & WithEngineFamily(EngineFamilyT &&value)
Definition DBProxy.h:102
DBProxy & WithStatus(DBProxyStatus value)
Definition DBProxy.h:85
bool EndpointHasBeenSet() const
Definition DBProxy.h:179
DBProxy & AddVpcSubnetIds(VpcSubnetIdsT &&value)
Definition DBProxy.h:142
DBProxy & WithCreatedDate(CreatedDateT &&value)
Definition DBProxy.h:234
bool EndpointNetworkTypeHasBeenSet() const
Definition DBProxy.h:259
void SetIdleClientTimeout(int value)
Definition DBProxy.h:207
const Aws::String & GetVpcId() const
Definition DBProxy.h:109
void SetTargetConnectionNetworkType(TargetConnectionNetworkType value)
Definition DBProxy.h:275
void SetRequireTLS(bool value)
Definition DBProxy.h:193
void SetDebugLogging(bool value)
Definition DBProxy.h:221
int GetIdleClientTimeout() const
Definition DBProxy.h:205
DBProxy & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition DBProxy.h:126
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Definition DBProxy.h:124
bool RequireTLSHasBeenSet() const
Definition DBProxy.h:192
const Aws::Utils::DateTime & GetCreatedDate() const
Definition DBProxy.h:229
DBProxyStatus GetStatus() const
Definition DBProxy.h:82
bool VpcSecurityGroupIdsHasBeenSet() const
Definition DBProxy.h:122
DBProxy & WithDBProxyArn(DBProxyArnT &&value)
Definition DBProxy.h:73
const Aws::String & GetRoleArn() const
Definition DBProxy.h:165
AWS_RDS_API DBProxy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool VpcIdHasBeenSet() const
Definition DBProxy.h:110
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
Definition DBProxy.h:121
void SetVpcId(VpcIdT &&value)
Definition DBProxy.h:112
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
Definition DBProxy.h:135
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