AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBProxyEndpoint.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/DBProxyEndpointStatus.h>
13#include <aws/rds/model/DBProxyEndpointTargetRole.h>
14#include <aws/rds/model/EndpointNetworkType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS {
25namespace Model {
26
38 public:
39 AWS_RDS_API DBProxyEndpoint() = default;
40 AWS_RDS_API DBProxyEndpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
47
52 inline const Aws::String& GetDBProxyEndpointName() const { return m_dBProxyEndpointName; }
53 inline bool DBProxyEndpointNameHasBeenSet() const { return m_dBProxyEndpointNameHasBeenSet; }
54 template <typename DBProxyEndpointNameT = Aws::String>
55 void SetDBProxyEndpointName(DBProxyEndpointNameT&& value) {
56 m_dBProxyEndpointNameHasBeenSet = true;
57 m_dBProxyEndpointName = std::forward<DBProxyEndpointNameT>(value);
58 }
59 template <typename DBProxyEndpointNameT = Aws::String>
60 DBProxyEndpoint& WithDBProxyEndpointName(DBProxyEndpointNameT&& value) {
61 SetDBProxyEndpointName(std::forward<DBProxyEndpointNameT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetDBProxyEndpointArn() const { return m_dBProxyEndpointArn; }
71 inline bool DBProxyEndpointArnHasBeenSet() const { return m_dBProxyEndpointArnHasBeenSet; }
72 template <typename DBProxyEndpointArnT = Aws::String>
73 void SetDBProxyEndpointArn(DBProxyEndpointArnT&& value) {
74 m_dBProxyEndpointArnHasBeenSet = true;
75 m_dBProxyEndpointArn = std::forward<DBProxyEndpointArnT>(value);
76 }
77 template <typename DBProxyEndpointArnT = Aws::String>
78 DBProxyEndpoint& WithDBProxyEndpointArn(DBProxyEndpointArnT&& value) {
79 SetDBProxyEndpointArn(std::forward<DBProxyEndpointArnT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetDBProxyName() const { return m_dBProxyName; }
90 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
91 template <typename DBProxyNameT = Aws::String>
92 void SetDBProxyName(DBProxyNameT&& value) {
93 m_dBProxyNameHasBeenSet = true;
94 m_dBProxyName = std::forward<DBProxyNameT>(value);
95 }
96 template <typename DBProxyNameT = Aws::String>
97 DBProxyEndpoint& WithDBProxyName(DBProxyNameT&& value) {
98 SetDBProxyName(std::forward<DBProxyNameT>(value));
99 return *this;
100 }
102
104
110 inline DBProxyEndpointStatus GetStatus() const { return m_status; }
111 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
112 inline void SetStatus(DBProxyEndpointStatus value) {
113 m_statusHasBeenSet = true;
114 m_status = value;
115 }
117 SetStatus(value);
118 return *this;
119 }
121
123
126 inline const Aws::String& GetVpcId() const { return m_vpcId; }
127 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
128 template <typename VpcIdT = Aws::String>
129 void SetVpcId(VpcIdT&& value) {
130 m_vpcIdHasBeenSet = true;
131 m_vpcId = std::forward<VpcIdT>(value);
132 }
133 template <typename VpcIdT = Aws::String>
134 DBProxyEndpoint& WithVpcId(VpcIdT&& value) {
135 SetVpcId(std::forward<VpcIdT>(value));
136 return *this;
137 }
139
141
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 DBProxyEndpoint& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
154 SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value));
155 return *this;
156 }
157 template <typename VpcSecurityGroupIdsT = Aws::String>
158 DBProxyEndpoint& 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 DBProxyEndpoint& WithVpcSubnetIds(VpcSubnetIdsT&& value) {
178 SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value));
179 return *this;
180 }
181 template <typename VpcSubnetIdsT = Aws::String>
182 DBProxyEndpoint& AddVpcSubnetIds(VpcSubnetIdsT&& value) {
183 m_vpcSubnetIdsHasBeenSet = true;
184 m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value));
185 return *this;
186 }
188
190
194 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
195 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
196 template <typename EndpointT = Aws::String>
197 void SetEndpoint(EndpointT&& value) {
198 m_endpointHasBeenSet = true;
199 m_endpoint = std::forward<EndpointT>(value);
200 }
201 template <typename EndpointT = Aws::String>
202 DBProxyEndpoint& WithEndpoint(EndpointT&& value) {
203 SetEndpoint(std::forward<EndpointT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
213 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
214 template <typename CreatedDateT = Aws::Utils::DateTime>
215 void SetCreatedDate(CreatedDateT&& value) {
216 m_createdDateHasBeenSet = true;
217 m_createdDate = std::forward<CreatedDateT>(value);
218 }
219 template <typename CreatedDateT = Aws::Utils::DateTime>
220 DBProxyEndpoint& WithCreatedDate(CreatedDateT&& value) {
221 SetCreatedDate(std::forward<CreatedDateT>(value));
222 return *this;
223 }
225
227
231 inline DBProxyEndpointTargetRole GetTargetRole() const { return m_targetRole; }
232 inline bool TargetRoleHasBeenSet() const { return m_targetRoleHasBeenSet; }
234 m_targetRoleHasBeenSet = true;
235 m_targetRole = value;
236 }
238 SetTargetRole(value);
239 return *this;
240 }
242
244
250 inline bool GetIsDefault() const { return m_isDefault; }
251 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
252 inline void SetIsDefault(bool value) {
253 m_isDefaultHasBeenSet = true;
254 m_isDefault = value;
255 }
256 inline DBProxyEndpoint& WithIsDefault(bool value) {
257 SetIsDefault(value);
258 return *this;
259 }
261
263
271 inline EndpointNetworkType GetEndpointNetworkType() const { return m_endpointNetworkType; }
272 inline bool EndpointNetworkTypeHasBeenSet() const { return m_endpointNetworkTypeHasBeenSet; }
274 m_endpointNetworkTypeHasBeenSet = true;
275 m_endpointNetworkType = value;
276 }
279 return *this;
280 }
282 private:
283 Aws::String m_dBProxyEndpointName;
284
285 Aws::String m_dBProxyEndpointArn;
286
287 Aws::String m_dBProxyName;
288
290
291 Aws::String m_vpcId;
292
293 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
294
295 Aws::Vector<Aws::String> m_vpcSubnetIds;
296
297 Aws::String m_endpoint;
298
299 Aws::Utils::DateTime m_createdDate{};
300
302
303 bool m_isDefault{false};
304
306 bool m_dBProxyEndpointNameHasBeenSet = false;
307 bool m_dBProxyEndpointArnHasBeenSet = false;
308 bool m_dBProxyNameHasBeenSet = false;
309 bool m_statusHasBeenSet = false;
310 bool m_vpcIdHasBeenSet = false;
311 bool m_vpcSecurityGroupIdsHasBeenSet = false;
312 bool m_vpcSubnetIdsHasBeenSet = false;
313 bool m_endpointHasBeenSet = false;
314 bool m_createdDateHasBeenSet = false;
315 bool m_targetRoleHasBeenSet = false;
316 bool m_isDefaultHasBeenSet = false;
317 bool m_endpointNetworkTypeHasBeenSet = false;
318};
319
320} // namespace Model
321} // namespace RDS
322} // namespace Aws
const Aws::String & GetDBProxyName() const
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
DBProxyEndpoint & WithDBProxyName(DBProxyNameT &&value)
DBProxyEndpoint & WithCreatedDate(CreatedDateT &&value)
DBProxyEndpoint & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
void SetCreatedDate(CreatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
const Aws::String & GetDBProxyEndpointName() const
void SetTargetRole(DBProxyEndpointTargetRole value)
DBProxyEndpointStatus GetStatus() const
DBProxyEndpoint & AddVpcSubnetIds(VpcSubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
DBProxyEndpoint & WithDBProxyEndpointArn(DBProxyEndpointArnT &&value)
AWS_RDS_API DBProxyEndpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
DBProxyEndpoint & WithStatus(DBProxyEndpointStatus value)
DBProxyEndpointTargetRole GetTargetRole() const
const Aws::String & GetEndpoint() const
DBProxyEndpoint & WithVpcId(VpcIdT &&value)
void SetDBProxyEndpointArn(DBProxyEndpointArnT &&value)
void SetDBProxyName(DBProxyNameT &&value)
DBProxyEndpoint & WithEndpointNetworkType(EndpointNetworkType value)
DBProxyEndpoint & WithIsDefault(bool value)
DBProxyEndpoint & WithVpcSubnetIds(VpcSubnetIdsT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetVpcId() const
DBProxyEndpoint & WithEndpoint(EndpointT &&value)
void SetVpcSubnetIds(VpcSubnetIdsT &&value)
EndpointNetworkType GetEndpointNetworkType() const
void SetEndpoint(EndpointT &&value)
DBProxyEndpoint & WithTargetRole(DBProxyEndpointTargetRole value)
void SetEndpointNetworkType(EndpointNetworkType value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStatus(DBProxyEndpointStatus value)
void SetDBProxyEndpointName(DBProxyEndpointNameT &&value)
DBProxyEndpoint & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
AWS_RDS_API DBProxyEndpoint()=default
DBProxyEndpoint & WithDBProxyEndpointName(DBProxyEndpointNameT &&value)
AWS_RDS_API DBProxyEndpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDBProxyEndpointArn() const
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