AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ClientVpnConnection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ClientVpnConnectionStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API ClientVpnConnection() = default;
32 AWS_EC2_API ClientVpnConnection(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetClientVpnEndpointId() const { return m_clientVpnEndpointId; }
43 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
44 template <typename ClientVpnEndpointIdT = Aws::String>
45 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) {
46 m_clientVpnEndpointIdHasBeenSet = true;
47 m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value);
48 }
49 template <typename ClientVpnEndpointIdT = Aws::String>
50 ClientVpnConnection& WithClientVpnEndpointId(ClientVpnEndpointIdT&& value) {
51 SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetTimestamp() const { return m_timestamp; }
61 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
62 template <typename TimestampT = Aws::String>
63 void SetTimestamp(TimestampT&& value) {
64 m_timestampHasBeenSet = true;
65 m_timestamp = std::forward<TimestampT>(value);
66 }
67 template <typename TimestampT = Aws::String>
68 ClientVpnConnection& WithTimestamp(TimestampT&& value) {
69 SetTimestamp(std::forward<TimestampT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
79 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
80 template <typename ConnectionIdT = Aws::String>
81 void SetConnectionId(ConnectionIdT&& value) {
82 m_connectionIdHasBeenSet = true;
83 m_connectionId = std::forward<ConnectionIdT>(value);
84 }
85 template <typename ConnectionIdT = Aws::String>
86 ClientVpnConnection& WithConnectionId(ConnectionIdT&& value) {
87 SetConnectionId(std::forward<ConnectionIdT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetUsername() const { return m_username; }
99 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
100 template <typename UsernameT = Aws::String>
101 void SetUsername(UsernameT&& value) {
102 m_usernameHasBeenSet = true;
103 m_username = std::forward<UsernameT>(value);
104 }
105 template <typename UsernameT = Aws::String>
106 ClientVpnConnection& WithUsername(UsernameT&& value) {
107 SetUsername(std::forward<UsernameT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetConnectionEstablishedTime() const { return m_connectionEstablishedTime; }
117 inline bool ConnectionEstablishedTimeHasBeenSet() const { return m_connectionEstablishedTimeHasBeenSet; }
118 template <typename ConnectionEstablishedTimeT = Aws::String>
119 void SetConnectionEstablishedTime(ConnectionEstablishedTimeT&& value) {
120 m_connectionEstablishedTimeHasBeenSet = true;
121 m_connectionEstablishedTime = std::forward<ConnectionEstablishedTimeT>(value);
122 }
123 template <typename ConnectionEstablishedTimeT = Aws::String>
124 ClientVpnConnection& WithConnectionEstablishedTime(ConnectionEstablishedTimeT&& value) {
125 SetConnectionEstablishedTime(std::forward<ConnectionEstablishedTimeT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetIngressBytes() const { return m_ingressBytes; }
135 inline bool IngressBytesHasBeenSet() const { return m_ingressBytesHasBeenSet; }
136 template <typename IngressBytesT = Aws::String>
137 void SetIngressBytes(IngressBytesT&& value) {
138 m_ingressBytesHasBeenSet = true;
139 m_ingressBytes = std::forward<IngressBytesT>(value);
140 }
141 template <typename IngressBytesT = Aws::String>
142 ClientVpnConnection& WithIngressBytes(IngressBytesT&& value) {
143 SetIngressBytes(std::forward<IngressBytesT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetEgressBytes() const { return m_egressBytes; }
153 inline bool EgressBytesHasBeenSet() const { return m_egressBytesHasBeenSet; }
154 template <typename EgressBytesT = Aws::String>
155 void SetEgressBytes(EgressBytesT&& value) {
156 m_egressBytesHasBeenSet = true;
157 m_egressBytes = std::forward<EgressBytesT>(value);
158 }
159 template <typename EgressBytesT = Aws::String>
160 ClientVpnConnection& WithEgressBytes(EgressBytesT&& value) {
161 SetEgressBytes(std::forward<EgressBytesT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetIngressPackets() const { return m_ingressPackets; }
171 inline bool IngressPacketsHasBeenSet() const { return m_ingressPacketsHasBeenSet; }
172 template <typename IngressPacketsT = Aws::String>
173 void SetIngressPackets(IngressPacketsT&& value) {
174 m_ingressPacketsHasBeenSet = true;
175 m_ingressPackets = std::forward<IngressPacketsT>(value);
176 }
177 template <typename IngressPacketsT = Aws::String>
178 ClientVpnConnection& WithIngressPackets(IngressPacketsT&& value) {
179 SetIngressPackets(std::forward<IngressPacketsT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetEgressPackets() const { return m_egressPackets; }
189 inline bool EgressPacketsHasBeenSet() const { return m_egressPacketsHasBeenSet; }
190 template <typename EgressPacketsT = Aws::String>
191 void SetEgressPackets(EgressPacketsT&& value) {
192 m_egressPacketsHasBeenSet = true;
193 m_egressPackets = std::forward<EgressPacketsT>(value);
194 }
195 template <typename EgressPacketsT = Aws::String>
196 ClientVpnConnection& WithEgressPackets(EgressPacketsT&& value) {
197 SetEgressPackets(std::forward<EgressPacketsT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::String& GetClientIp() const { return m_clientIp; }
207 inline bool ClientIpHasBeenSet() const { return m_clientIpHasBeenSet; }
208 template <typename ClientIpT = Aws::String>
209 void SetClientIp(ClientIpT&& value) {
210 m_clientIpHasBeenSet = true;
211 m_clientIp = std::forward<ClientIpT>(value);
212 }
213 template <typename ClientIpT = Aws::String>
214 ClientVpnConnection& WithClientIp(ClientIpT&& value) {
215 SetClientIp(std::forward<ClientIpT>(value));
216 return *this;
217 }
219
221
227 inline const Aws::String& GetClientIpv6Address() const { return m_clientIpv6Address; }
228 inline bool ClientIpv6AddressHasBeenSet() const { return m_clientIpv6AddressHasBeenSet; }
229 template <typename ClientIpv6AddressT = Aws::String>
230 void SetClientIpv6Address(ClientIpv6AddressT&& value) {
231 m_clientIpv6AddressHasBeenSet = true;
232 m_clientIpv6Address = std::forward<ClientIpv6AddressT>(value);
233 }
234 template <typename ClientIpv6AddressT = Aws::String>
235 ClientVpnConnection& WithClientIpv6Address(ClientIpv6AddressT&& value) {
236 SetClientIpv6Address(std::forward<ClientIpv6AddressT>(value));
237 return *this;
238 }
240
242
246 inline const Aws::String& GetCommonName() const { return m_commonName; }
247 inline bool CommonNameHasBeenSet() const { return m_commonNameHasBeenSet; }
248 template <typename CommonNameT = Aws::String>
249 void SetCommonName(CommonNameT&& value) {
250 m_commonNameHasBeenSet = true;
251 m_commonName = std::forward<CommonNameT>(value);
252 }
253 template <typename CommonNameT = Aws::String>
254 ClientVpnConnection& WithCommonName(CommonNameT&& value) {
255 SetCommonName(std::forward<CommonNameT>(value));
256 return *this;
257 }
259
261
264 inline const ClientVpnConnectionStatus& GetStatus() const { return m_status; }
265 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
266 template <typename StatusT = ClientVpnConnectionStatus>
267 void SetStatus(StatusT&& value) {
268 m_statusHasBeenSet = true;
269 m_status = std::forward<StatusT>(value);
270 }
271 template <typename StatusT = ClientVpnConnectionStatus>
272 ClientVpnConnection& WithStatus(StatusT&& value) {
273 SetStatus(std::forward<StatusT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::String& GetConnectionEndTime() const { return m_connectionEndTime; }
283 inline bool ConnectionEndTimeHasBeenSet() const { return m_connectionEndTimeHasBeenSet; }
284 template <typename ConnectionEndTimeT = Aws::String>
285 void SetConnectionEndTime(ConnectionEndTimeT&& value) {
286 m_connectionEndTimeHasBeenSet = true;
287 m_connectionEndTime = std::forward<ConnectionEndTimeT>(value);
288 }
289 template <typename ConnectionEndTimeT = Aws::String>
290 ClientVpnConnection& WithConnectionEndTime(ConnectionEndTimeT&& value) {
291 SetConnectionEndTime(std::forward<ConnectionEndTimeT>(value));
292 return *this;
293 }
295
297
301 inline const Aws::Vector<Aws::String>& GetPostureComplianceStatuses() const { return m_postureComplianceStatuses; }
302 inline bool PostureComplianceStatusesHasBeenSet() const { return m_postureComplianceStatusesHasBeenSet; }
303 template <typename PostureComplianceStatusesT = Aws::Vector<Aws::String>>
304 void SetPostureComplianceStatuses(PostureComplianceStatusesT&& value) {
305 m_postureComplianceStatusesHasBeenSet = true;
306 m_postureComplianceStatuses = std::forward<PostureComplianceStatusesT>(value);
307 }
308 template <typename PostureComplianceStatusesT = Aws::Vector<Aws::String>>
309 ClientVpnConnection& WithPostureComplianceStatuses(PostureComplianceStatusesT&& value) {
310 SetPostureComplianceStatuses(std::forward<PostureComplianceStatusesT>(value));
311 return *this;
312 }
313 template <typename PostureComplianceStatusesT = Aws::String>
314 ClientVpnConnection& AddPostureComplianceStatuses(PostureComplianceStatusesT&& value) {
315 m_postureComplianceStatusesHasBeenSet = true;
316 m_postureComplianceStatuses.emplace_back(std::forward<PostureComplianceStatusesT>(value));
317 return *this;
318 }
320 private:
321 Aws::String m_clientVpnEndpointId;
322
323 Aws::String m_timestamp;
324
325 Aws::String m_connectionId;
326
327 Aws::String m_username;
328
329 Aws::String m_connectionEstablishedTime;
330
331 Aws::String m_ingressBytes;
332
333 Aws::String m_egressBytes;
334
335 Aws::String m_ingressPackets;
336
337 Aws::String m_egressPackets;
338
339 Aws::String m_clientIp;
340
341 Aws::String m_clientIpv6Address;
342
343 Aws::String m_commonName;
344
346
347 Aws::String m_connectionEndTime;
348
349 Aws::Vector<Aws::String> m_postureComplianceStatuses;
350 bool m_clientVpnEndpointIdHasBeenSet = false;
351 bool m_timestampHasBeenSet = false;
352 bool m_connectionIdHasBeenSet = false;
353 bool m_usernameHasBeenSet = false;
354 bool m_connectionEstablishedTimeHasBeenSet = false;
355 bool m_ingressBytesHasBeenSet = false;
356 bool m_egressBytesHasBeenSet = false;
357 bool m_ingressPacketsHasBeenSet = false;
358 bool m_egressPacketsHasBeenSet = false;
359 bool m_clientIpHasBeenSet = false;
360 bool m_clientIpv6AddressHasBeenSet = false;
361 bool m_commonNameHasBeenSet = false;
362 bool m_statusHasBeenSet = false;
363 bool m_connectionEndTimeHasBeenSet = false;
364 bool m_postureComplianceStatusesHasBeenSet = false;
365};
366
367} // namespace Model
368} // namespace EC2
369} // namespace Aws
void SetConnectionEstablishedTime(ConnectionEstablishedTimeT &&value)
void SetEgressPackets(EgressPacketsT &&value)
ClientVpnConnection & WithConnectionEstablishedTime(ConnectionEstablishedTimeT &&value)
void SetIngressBytes(IngressBytesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetClientVpnEndpointId(ClientVpnEndpointIdT &&value)
ClientVpnConnection & WithConnectionId(ConnectionIdT &&value)
AWS_EC2_API ClientVpnConnection & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetConnectionId() const
void SetIngressPackets(IngressPacketsT &&value)
ClientVpnConnection & WithStatus(StatusT &&value)
ClientVpnConnection & WithClientIpv6Address(ClientIpv6AddressT &&value)
ClientVpnConnection & AddPostureComplianceStatuses(PostureComplianceStatusesT &&value)
const Aws::String & GetIngressPackets() const
void SetEgressBytes(EgressBytesT &&value)
ClientVpnConnection & WithIngressBytes(IngressBytesT &&value)
const Aws::String & GetIngressBytes() const
ClientVpnConnection & WithConnectionEndTime(ConnectionEndTimeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetCommonName() const
const Aws::String & GetEgressPackets() const
void SetClientIpv6Address(ClientIpv6AddressT &&value)
ClientVpnConnection & WithEgressBytes(EgressBytesT &&value)
const Aws::String & GetUsername() const
const Aws::String & GetConnectionEstablishedTime() const
ClientVpnConnection & WithCommonName(CommonNameT &&value)
const Aws::Vector< Aws::String > & GetPostureComplianceStatuses() const
const Aws::String & GetClientIp() const
const ClientVpnConnectionStatus & GetStatus() const
ClientVpnConnection & WithUsername(UsernameT &&value)
AWS_EC2_API ClientVpnConnection()=default
AWS_EC2_API ClientVpnConnection(const Aws::Utils::Xml::XmlNode &xmlNode)
ClientVpnConnection & WithClientIp(ClientIpT &&value)
void SetPostureComplianceStatuses(PostureComplianceStatusesT &&value)
ClientVpnConnection & WithIngressPackets(IngressPacketsT &&value)
ClientVpnConnection & WithPostureComplianceStatuses(PostureComplianceStatusesT &&value)
const Aws::String & GetConnectionEndTime() const
void SetConnectionEndTime(ConnectionEndTimeT &&value)
const Aws::String & GetClientVpnEndpointId() const
ClientVpnConnection & WithEgressPackets(EgressPacketsT &&value)
const Aws::String & GetClientIpv6Address() const
void SetConnectionId(ConnectionIdT &&value)
ClientVpnConnection & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
const Aws::String & GetTimestamp() const
const Aws::String & GetEgressBytes() const
ClientVpnConnection & WithTimestamp(TimestampT &&value)
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