AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DBProxyTarget.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/TargetType.h>
11#include <aws/rds/model/TargetRole.h>
12#include <aws/rds/model/TargetHealth.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_RDS_API DBProxyTarget();
42 AWS_RDS_API DBProxyTarget(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_RDS_API DBProxyTarget& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
54 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
55 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
56 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
57 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
58 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
59 inline DBProxyTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
60 inline DBProxyTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
61 inline DBProxyTarget& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
63
65
68 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
69 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
70 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
71 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
72 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
73 inline DBProxyTarget& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
74 inline DBProxyTarget& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
75 inline DBProxyTarget& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
77
79
83 inline const Aws::String& GetTrackedClusterId() const{ return m_trackedClusterId; }
84 inline bool TrackedClusterIdHasBeenSet() const { return m_trackedClusterIdHasBeenSet; }
85 inline void SetTrackedClusterId(const Aws::String& value) { m_trackedClusterIdHasBeenSet = true; m_trackedClusterId = value; }
86 inline void SetTrackedClusterId(Aws::String&& value) { m_trackedClusterIdHasBeenSet = true; m_trackedClusterId = std::move(value); }
87 inline void SetTrackedClusterId(const char* value) { m_trackedClusterIdHasBeenSet = true; m_trackedClusterId.assign(value); }
88 inline DBProxyTarget& WithTrackedClusterId(const Aws::String& value) { SetTrackedClusterId(value); return *this;}
89 inline DBProxyTarget& WithTrackedClusterId(Aws::String&& value) { SetTrackedClusterId(std::move(value)); return *this;}
90 inline DBProxyTarget& WithTrackedClusterId(const char* value) { SetTrackedClusterId(value); return *this;}
92
94
98 inline const Aws::String& GetRdsResourceId() const{ return m_rdsResourceId; }
99 inline bool RdsResourceIdHasBeenSet() const { return m_rdsResourceIdHasBeenSet; }
100 inline void SetRdsResourceId(const Aws::String& value) { m_rdsResourceIdHasBeenSet = true; m_rdsResourceId = value; }
101 inline void SetRdsResourceId(Aws::String&& value) { m_rdsResourceIdHasBeenSet = true; m_rdsResourceId = std::move(value); }
102 inline void SetRdsResourceId(const char* value) { m_rdsResourceIdHasBeenSet = true; m_rdsResourceId.assign(value); }
103 inline DBProxyTarget& WithRdsResourceId(const Aws::String& value) { SetRdsResourceId(value); return *this;}
104 inline DBProxyTarget& WithRdsResourceId(Aws::String&& value) { SetRdsResourceId(std::move(value)); return *this;}
105 inline DBProxyTarget& WithRdsResourceId(const char* value) { SetRdsResourceId(value); return *this;}
107
109
113 inline int GetPort() const{ return m_port; }
114 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
115 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
116 inline DBProxyTarget& WithPort(int value) { SetPort(value); return *this;}
118
120
124 inline const TargetType& GetType() const{ return m_type; }
125 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
126 inline void SetType(const TargetType& value) { m_typeHasBeenSet = true; m_type = value; }
127 inline void SetType(TargetType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
128 inline DBProxyTarget& WithType(const TargetType& value) { SetType(value); return *this;}
129 inline DBProxyTarget& WithType(TargetType&& value) { SetType(std::move(value)); return *this;}
131
133
137 inline const TargetRole& GetRole() const{ return m_role; }
138 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
139 inline void SetRole(const TargetRole& value) { m_roleHasBeenSet = true; m_role = value; }
140 inline void SetRole(TargetRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
141 inline DBProxyTarget& WithRole(const TargetRole& value) { SetRole(value); return *this;}
142 inline DBProxyTarget& WithRole(TargetRole&& value) { SetRole(std::move(value)); return *this;}
144
146
149 inline const TargetHealth& GetTargetHealth() const{ return m_targetHealth; }
150 inline bool TargetHealthHasBeenSet() const { return m_targetHealthHasBeenSet; }
151 inline void SetTargetHealth(const TargetHealth& value) { m_targetHealthHasBeenSet = true; m_targetHealth = value; }
152 inline void SetTargetHealth(TargetHealth&& value) { m_targetHealthHasBeenSet = true; m_targetHealth = std::move(value); }
153 inline DBProxyTarget& WithTargetHealth(const TargetHealth& value) { SetTargetHealth(value); return *this;}
154 inline DBProxyTarget& WithTargetHealth(TargetHealth&& value) { SetTargetHealth(std::move(value)); return *this;}
156 private:
157
158 Aws::String m_targetArn;
159 bool m_targetArnHasBeenSet = false;
160
161 Aws::String m_endpoint;
162 bool m_endpointHasBeenSet = false;
163
164 Aws::String m_trackedClusterId;
165 bool m_trackedClusterIdHasBeenSet = false;
166
167 Aws::String m_rdsResourceId;
168 bool m_rdsResourceIdHasBeenSet = false;
169
170 int m_port;
171 bool m_portHasBeenSet = false;
172
173 TargetType m_type;
174 bool m_typeHasBeenSet = false;
175
176 TargetRole m_role;
177 bool m_roleHasBeenSet = false;
178
179 TargetHealth m_targetHealth;
180 bool m_targetHealthHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace RDS
185} // namespace Aws
DBProxyTarget & WithTargetArn(const char *value)
void SetRole(const TargetRole &value)
DBProxyTarget & WithTrackedClusterId(const char *value)
DBProxyTarget & WithEndpoint(Aws::String &&value)
void SetTargetArn(Aws::String &&value)
DBProxyTarget & WithTargetArn(const Aws::String &value)
void SetTrackedClusterId(const Aws::String &value)
DBProxyTarget & WithType(TargetType &&value)
void SetTrackedClusterId(const char *value)
void SetRdsResourceId(const Aws::String &value)
DBProxyTarget & WithTargetArn(Aws::String &&value)
DBProxyTarget & WithTargetHealth(const TargetHealth &value)
DBProxyTarget & WithRole(TargetRole &&value)
void SetRdsResourceId(Aws::String &&value)
DBProxyTarget & WithEndpoint(const Aws::String &value)
const TargetType & GetType() const
void SetEndpoint(const char *value)
void SetRdsResourceId(const char *value)
const Aws::String & GetTrackedClusterId() const
void SetTargetArn(const Aws::String &value)
void SetTargetHealth(TargetHealth &&value)
void SetType(TargetType &&value)
void SetTargetHealth(const TargetHealth &value)
DBProxyTarget & WithRole(const TargetRole &value)
const Aws::String & GetRdsResourceId() const
void SetRole(TargetRole &&value)
DBProxyTarget & WithEndpoint(const char *value)
const TargetHealth & GetTargetHealth() const
void SetType(const TargetType &value)
DBProxyTarget & WithTrackedClusterId(const Aws::String &value)
void SetEndpoint(const Aws::String &value)
const Aws::String & GetTargetArn() const
const TargetRole & GetRole() const
void SetEndpoint(Aws::String &&value)
DBProxyTarget & WithPort(int value)
const Aws::String & GetEndpoint() const
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API DBProxyTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
DBProxyTarget & WithRdsResourceId(Aws::String &&value)
DBProxyTarget & WithTrackedClusterId(Aws::String &&value)
AWS_RDS_API DBProxyTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBProxyTarget & WithRdsResourceId(const Aws::String &value)
DBProxyTarget & WithRdsResourceId(const char *value)
void SetTrackedClusterId(Aws::String &&value)
void SetTargetArn(const char *value)
DBProxyTarget & WithTargetHealth(TargetHealth &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DBProxyTarget & WithType(const TargetType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream