AWS SDK for C++  1.9.109
AWS SDK for C++
DBProxyTarget.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace RDS
25 {
26 namespace Model
27 {
28 
39  {
40  public:
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
48 
53  inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
54 
59  inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
60 
65  inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
66 
71  inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
72 
77  inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
78 
83  inline DBProxyTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
84 
89  inline DBProxyTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
90 
95  inline DBProxyTarget& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
96 
97 
101  inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
102 
106  inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
107 
111  inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
112 
116  inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
117 
121  inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
122 
126  inline DBProxyTarget& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
127 
131  inline DBProxyTarget& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
132 
136  inline DBProxyTarget& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
137 
138 
143  inline const Aws::String& GetTrackedClusterId() const{ return m_trackedClusterId; }
144 
149  inline bool TrackedClusterIdHasBeenSet() const { return m_trackedClusterIdHasBeenSet; }
150 
155  inline void SetTrackedClusterId(const Aws::String& value) { m_trackedClusterIdHasBeenSet = true; m_trackedClusterId = value; }
156 
161  inline void SetTrackedClusterId(Aws::String&& value) { m_trackedClusterIdHasBeenSet = true; m_trackedClusterId = std::move(value); }
162 
167  inline void SetTrackedClusterId(const char* value) { m_trackedClusterIdHasBeenSet = true; m_trackedClusterId.assign(value); }
168 
173  inline DBProxyTarget& WithTrackedClusterId(const Aws::String& value) { SetTrackedClusterId(value); return *this;}
174 
179  inline DBProxyTarget& WithTrackedClusterId(Aws::String&& value) { SetTrackedClusterId(std::move(value)); return *this;}
180 
185  inline DBProxyTarget& WithTrackedClusterId(const char* value) { SetTrackedClusterId(value); return *this;}
186 
187 
192  inline const Aws::String& GetRdsResourceId() const{ return m_rdsResourceId; }
193 
198  inline bool RdsResourceIdHasBeenSet() const { return m_rdsResourceIdHasBeenSet; }
199 
204  inline void SetRdsResourceId(const Aws::String& value) { m_rdsResourceIdHasBeenSet = true; m_rdsResourceId = value; }
205 
210  inline void SetRdsResourceId(Aws::String&& value) { m_rdsResourceIdHasBeenSet = true; m_rdsResourceId = std::move(value); }
211 
216  inline void SetRdsResourceId(const char* value) { m_rdsResourceIdHasBeenSet = true; m_rdsResourceId.assign(value); }
217 
222  inline DBProxyTarget& WithRdsResourceId(const Aws::String& value) { SetRdsResourceId(value); return *this;}
223 
228  inline DBProxyTarget& WithRdsResourceId(Aws::String&& value) { SetRdsResourceId(std::move(value)); return *this;}
229 
234  inline DBProxyTarget& WithRdsResourceId(const char* value) { SetRdsResourceId(value); return *this;}
235 
236 
241  inline int GetPort() const{ return m_port; }
242 
247  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
248 
253  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
254 
259  inline DBProxyTarget& WithPort(int value) { SetPort(value); return *this;}
260 
261 
266  inline const TargetType& GetType() const{ return m_type; }
267 
272  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
273 
278  inline void SetType(const TargetType& value) { m_typeHasBeenSet = true; m_type = value; }
279 
284  inline void SetType(TargetType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
285 
290  inline DBProxyTarget& WithType(const TargetType& value) { SetType(value); return *this;}
291 
296  inline DBProxyTarget& WithType(TargetType&& value) { SetType(std::move(value)); return *this;}
297 
298 
303  inline const TargetRole& GetRole() const{ return m_role; }
304 
309  inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
310 
315  inline void SetRole(const TargetRole& value) { m_roleHasBeenSet = true; m_role = value; }
316 
321  inline void SetRole(TargetRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
322 
327  inline DBProxyTarget& WithRole(const TargetRole& value) { SetRole(value); return *this;}
328 
333  inline DBProxyTarget& WithRole(TargetRole&& value) { SetRole(std::move(value)); return *this;}
334 
335 
339  inline const TargetHealth& GetTargetHealth() const{ return m_targetHealth; }
340 
344  inline bool TargetHealthHasBeenSet() const { return m_targetHealthHasBeenSet; }
345 
349  inline void SetTargetHealth(const TargetHealth& value) { m_targetHealthHasBeenSet = true; m_targetHealth = value; }
350 
354  inline void SetTargetHealth(TargetHealth&& value) { m_targetHealthHasBeenSet = true; m_targetHealth = std::move(value); }
355 
359  inline DBProxyTarget& WithTargetHealth(const TargetHealth& value) { SetTargetHealth(value); return *this;}
360 
364  inline DBProxyTarget& WithTargetHealth(TargetHealth&& value) { SetTargetHealth(std::move(value)); return *this;}
365 
366  private:
367 
368  Aws::String m_targetArn;
369  bool m_targetArnHasBeenSet;
370 
371  Aws::String m_endpoint;
372  bool m_endpointHasBeenSet;
373 
374  Aws::String m_trackedClusterId;
375  bool m_trackedClusterIdHasBeenSet;
376 
377  Aws::String m_rdsResourceId;
378  bool m_rdsResourceIdHasBeenSet;
379 
380  int m_port;
381  bool m_portHasBeenSet;
382 
383  TargetType m_type;
384  bool m_typeHasBeenSet;
385 
386  TargetRole m_role;
387  bool m_roleHasBeenSet;
388 
389  TargetHealth m_targetHealth;
390  bool m_targetHealthHasBeenSet;
391  };
392 
393 } // namespace Model
394 } // namespace RDS
395 } // namespace Aws
Aws::RDS::Model::DBProxyTarget::DBProxyTarget
DBProxyTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::DBProxyTarget::WithTargetHealth
DBProxyTarget & WithTargetHealth(TargetHealth &&value)
Definition: DBProxyTarget.h:364
Aws::RDS::Model::DBProxyTarget::WithRdsResourceId
DBProxyTarget & WithRdsResourceId(Aws::String &&value)
Definition: DBProxyTarget.h:228
Aws::RDS::Model::DBProxyTarget::DBProxyTarget
DBProxyTarget()
Aws::RDS::Model::DBProxyTarget::WithTargetArn
DBProxyTarget & WithTargetArn(const Aws::String &value)
Definition: DBProxyTarget.h:83
Aws::RDS::Model::DBProxyTarget::GetEndpoint
const Aws::String & GetEndpoint() const
Definition: DBProxyTarget.h:101
Aws::RDS::Model::DBProxyTarget::WithTargetArn
DBProxyTarget & WithTargetArn(const char *value)
Definition: DBProxyTarget.h:95
Aws::RDS::Model::TargetType
TargetType
Definition: TargetType.h:17
Aws::RDS::Model::DBProxyTarget::WithTargetHealth
DBProxyTarget & WithTargetHealth(const TargetHealth &value)
Definition: DBProxyTarget.h:359
TargetRole.h
Aws::RDS::Model::DBProxyTarget
Definition: DBProxyTarget.h:39
Aws::RDS::Model::DBProxyTarget::SetEndpoint
void SetEndpoint(const char *value)
Definition: DBProxyTarget.h:121
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::DBProxyTarget::SetTargetHealth
void SetTargetHealth(const TargetHealth &value)
Definition: DBProxyTarget.h:349
Aws::RDS::Model::DBProxyTarget::GetRdsResourceId
const Aws::String & GetRdsResourceId() const
Definition: DBProxyTarget.h:192
Aws::RDS::Model::DBProxyTarget::TargetHealthHasBeenSet
bool TargetHealthHasBeenSet() const
Definition: DBProxyTarget.h:344
Aws::RDS::Model::TargetHealth
Definition: TargetHealth.h:35
Aws::RDS::Model::DBProxyTarget::SetTargetHealth
void SetTargetHealth(TargetHealth &&value)
Definition: DBProxyTarget.h:354
Aws::RDS::Model::DBProxyTarget::WithRole
DBProxyTarget & WithRole(TargetRole &&value)
Definition: DBProxyTarget.h:333
Aws::RDS::Model::DBProxyTarget::SetTrackedClusterId
void SetTrackedClusterId(const char *value)
Definition: DBProxyTarget.h:167
Aws::RDS::Model::DBProxyTarget::SetTargetArn
void SetTargetArn(const char *value)
Definition: DBProxyTarget.h:77
AWSStreamFwd.h
Aws::RDS::Model::DBProxyTarget::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: DBProxyTarget.h:272
Aws::RDS::Model::DBProxyTarget::SetTargetArn
void SetTargetArn(const Aws::String &value)
Definition: DBProxyTarget.h:65
Aws::RDS::Model::DBProxyTarget::TrackedClusterIdHasBeenSet
bool TrackedClusterIdHasBeenSet() const
Definition: DBProxyTarget.h:149
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::DBProxyTarget::WithRole
DBProxyTarget & WithRole(const TargetRole &value)
Definition: DBProxyTarget.h:327
Aws::RDS::Model::DBProxyTarget::GetTrackedClusterId
const Aws::String & GetTrackedClusterId() const
Definition: DBProxyTarget.h:143
Aws::RDS::Model::DBProxyTarget::GetRole
const TargetRole & GetRole() const
Definition: DBProxyTarget.h:303
Aws::RDS::Model::DBProxyTarget::SetRdsResourceId
void SetRdsResourceId(const Aws::String &value)
Definition: DBProxyTarget.h:204
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::DBProxyTarget::WithTrackedClusterId
DBProxyTarget & WithTrackedClusterId(Aws::String &&value)
Definition: DBProxyTarget.h:179
Aws::RDS::Model::DBProxyTarget::WithEndpoint
DBProxyTarget & WithEndpoint(const Aws::String &value)
Definition: DBProxyTarget.h:126
TargetType.h
Aws::RDS::Model::DBProxyTarget::WithTargetArn
DBProxyTarget & WithTargetArn(Aws::String &&value)
Definition: DBProxyTarget.h:89
Aws::RDS::Model::DBProxyTarget::SetRole
void SetRole(TargetRole &&value)
Definition: DBProxyTarget.h:321
Aws::RDS::Model::DBProxyTarget::SetPort
void SetPort(int value)
Definition: DBProxyTarget.h:253
AWSString.h
Aws::RDS::Model::DBProxyTarget::WithType
DBProxyTarget & WithType(const TargetType &value)
Definition: DBProxyTarget.h:290
Aws::RDS::Model::DBProxyTarget::GetTargetArn
const Aws::String & GetTargetArn() const
Definition: DBProxyTarget.h:53
Aws::RDS::Model::DBProxyTarget::GetPort
int GetPort() const
Definition: DBProxyTarget.h:241
Aws::RDS::Model::DBProxyTarget::SetType
void SetType(TargetType &&value)
Definition: DBProxyTarget.h:284
Aws::RDS::Model::DBProxyTarget::GetTargetHealth
const TargetHealth & GetTargetHealth() const
Definition: DBProxyTarget.h:339
Aws::RDS::Model::DBProxyTarget::WithRdsResourceId
DBProxyTarget & WithRdsResourceId(const char *value)
Definition: DBProxyTarget.h:234
Aws::RDS::Model::DBProxyTarget::SetTargetArn
void SetTargetArn(Aws::String &&value)
Definition: DBProxyTarget.h:71
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::DBProxyTarget::WithRdsResourceId
DBProxyTarget & WithRdsResourceId(const Aws::String &value)
Definition: DBProxyTarget.h:222
Aws::RDS::Model::DBProxyTarget::WithTrackedClusterId
DBProxyTarget & WithTrackedClusterId(const Aws::String &value)
Definition: DBProxyTarget.h:173
Aws::RDS::Model::DBProxyTarget::WithEndpoint
DBProxyTarget & WithEndpoint(const char *value)
Definition: DBProxyTarget.h:136
Aws::RDS::Model::DBProxyTarget::operator=
DBProxyTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::DBProxyTarget::SetType
void SetType(const TargetType &value)
Definition: DBProxyTarget.h:278
Aws::RDS::Model::DBProxyTarget::WithTrackedClusterId
DBProxyTarget & WithTrackedClusterId(const char *value)
Definition: DBProxyTarget.h:185
Aws::RDS::Model::DBProxyTarget::SetTrackedClusterId
void SetTrackedClusterId(Aws::String &&value)
Definition: DBProxyTarget.h:161
Aws::RDS::Model::DBProxyTarget::SetEndpoint
void SetEndpoint(const Aws::String &value)
Definition: DBProxyTarget.h:111
Aws::RDS::Model::DBProxyTarget::PortHasBeenSet
bool PortHasBeenSet() const
Definition: DBProxyTarget.h:247
Aws::RDS::Model::DBProxyTarget::SetTrackedClusterId
void SetTrackedClusterId(const Aws::String &value)
Definition: DBProxyTarget.h:155
Aws::RDS::Model::DBProxyTarget::RoleHasBeenSet
bool RoleHasBeenSet() const
Definition: DBProxyTarget.h:309
TargetHealth.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::DBProxyTarget::WithPort
DBProxyTarget & WithPort(int value)
Definition: DBProxyTarget.h:259
Aws::RDS::Model::DBProxyTarget::SetRdsResourceId
void SetRdsResourceId(const char *value)
Definition: DBProxyTarget.h:216
Aws::RDS::Model::TargetRole
TargetRole
Definition: TargetRole.h:17
Aws::RDS::Model::DBProxyTarget::WithType
DBProxyTarget & WithType(TargetType &&value)
Definition: DBProxyTarget.h:296
Aws::RDS::Model::DBProxyTarget::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::DBProxyTarget::RdsResourceIdHasBeenSet
bool RdsResourceIdHasBeenSet() const
Definition: DBProxyTarget.h:198
Aws::RDS::Model::DBProxyTarget::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::DBProxyTarget::TargetArnHasBeenSet
bool TargetArnHasBeenSet() const
Definition: DBProxyTarget.h:59
Aws::RDS::Model::DBProxyTarget::EndpointHasBeenSet
bool EndpointHasBeenSet() const
Definition: DBProxyTarget.h:106
Aws::RDS::Model::DBProxyTarget::SetRdsResourceId
void SetRdsResourceId(Aws::String &&value)
Definition: DBProxyTarget.h:210
Aws::RDS::Model::DBProxyTarget::WithEndpoint
DBProxyTarget & WithEndpoint(Aws::String &&value)
Definition: DBProxyTarget.h:131
Aws::RDS::Model::DBProxyTarget::SetEndpoint
void SetEndpoint(Aws::String &&value)
Definition: DBProxyTarget.h:116
Aws::RDS::Model::DBProxyTarget::SetRole
void SetRole(const TargetRole &value)
Definition: DBProxyTarget.h:315
Aws::RDS::Model::DBProxyTarget::GetType
const TargetType & GetType() const
Definition: DBProxyTarget.h:266