AWS SDK for C++

AWS SDK for C++ Version 1.11.635

Loading...
Searching...
No Matches
ClientVpnConnection.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/ClientVpnConnectionStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API ClientVpnConnection() = default;
37 AWS_EC2_API ClientVpnConnection(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetClientVpnEndpointId() const { return m_clientVpnEndpointId; }
49 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
50 template<typename ClientVpnEndpointIdT = Aws::String>
51 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value); }
52 template<typename ClientVpnEndpointIdT = Aws::String>
53 ClientVpnConnection& WithClientVpnEndpointId(ClientVpnEndpointIdT&& value) { SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value)); return *this;}
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) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
64 template<typename TimestampT = Aws::String>
65 ClientVpnConnection& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
67
69
72 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
73 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
74 template<typename ConnectionIdT = Aws::String>
75 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
76 template<typename ConnectionIdT = Aws::String>
77 ClientVpnConnection& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
79
81
86 inline const Aws::String& GetUsername() const { return m_username; }
87 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
88 template<typename UsernameT = Aws::String>
89 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
90 template<typename UsernameT = Aws::String>
91 ClientVpnConnection& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
93
95
98 inline const Aws::String& GetConnectionEstablishedTime() const { return m_connectionEstablishedTime; }
99 inline bool ConnectionEstablishedTimeHasBeenSet() const { return m_connectionEstablishedTimeHasBeenSet; }
100 template<typename ConnectionEstablishedTimeT = Aws::String>
101 void SetConnectionEstablishedTime(ConnectionEstablishedTimeT&& value) { m_connectionEstablishedTimeHasBeenSet = true; m_connectionEstablishedTime = std::forward<ConnectionEstablishedTimeT>(value); }
102 template<typename ConnectionEstablishedTimeT = Aws::String>
103 ClientVpnConnection& WithConnectionEstablishedTime(ConnectionEstablishedTimeT&& value) { SetConnectionEstablishedTime(std::forward<ConnectionEstablishedTimeT>(value)); return *this;}
105
107
110 inline const Aws::String& GetIngressBytes() const { return m_ingressBytes; }
111 inline bool IngressBytesHasBeenSet() const { return m_ingressBytesHasBeenSet; }
112 template<typename IngressBytesT = Aws::String>
113 void SetIngressBytes(IngressBytesT&& value) { m_ingressBytesHasBeenSet = true; m_ingressBytes = std::forward<IngressBytesT>(value); }
114 template<typename IngressBytesT = Aws::String>
115 ClientVpnConnection& WithIngressBytes(IngressBytesT&& value) { SetIngressBytes(std::forward<IngressBytesT>(value)); return *this;}
117
119
122 inline const Aws::String& GetEgressBytes() const { return m_egressBytes; }
123 inline bool EgressBytesHasBeenSet() const { return m_egressBytesHasBeenSet; }
124 template<typename EgressBytesT = Aws::String>
125 void SetEgressBytes(EgressBytesT&& value) { m_egressBytesHasBeenSet = true; m_egressBytes = std::forward<EgressBytesT>(value); }
126 template<typename EgressBytesT = Aws::String>
127 ClientVpnConnection& WithEgressBytes(EgressBytesT&& value) { SetEgressBytes(std::forward<EgressBytesT>(value)); return *this;}
129
131
134 inline const Aws::String& GetIngressPackets() const { return m_ingressPackets; }
135 inline bool IngressPacketsHasBeenSet() const { return m_ingressPacketsHasBeenSet; }
136 template<typename IngressPacketsT = Aws::String>
137 void SetIngressPackets(IngressPacketsT&& value) { m_ingressPacketsHasBeenSet = true; m_ingressPackets = std::forward<IngressPacketsT>(value); }
138 template<typename IngressPacketsT = Aws::String>
139 ClientVpnConnection& WithIngressPackets(IngressPacketsT&& value) { SetIngressPackets(std::forward<IngressPacketsT>(value)); return *this;}
141
143
146 inline const Aws::String& GetEgressPackets() const { return m_egressPackets; }
147 inline bool EgressPacketsHasBeenSet() const { return m_egressPacketsHasBeenSet; }
148 template<typename EgressPacketsT = Aws::String>
149 void SetEgressPackets(EgressPacketsT&& value) { m_egressPacketsHasBeenSet = true; m_egressPackets = std::forward<EgressPacketsT>(value); }
150 template<typename EgressPacketsT = Aws::String>
151 ClientVpnConnection& WithEgressPackets(EgressPacketsT&& value) { SetEgressPackets(std::forward<EgressPacketsT>(value)); return *this;}
153
155
158 inline const Aws::String& GetClientIp() const { return m_clientIp; }
159 inline bool ClientIpHasBeenSet() const { return m_clientIpHasBeenSet; }
160 template<typename ClientIpT = Aws::String>
161 void SetClientIp(ClientIpT&& value) { m_clientIpHasBeenSet = true; m_clientIp = std::forward<ClientIpT>(value); }
162 template<typename ClientIpT = Aws::String>
163 ClientVpnConnection& WithClientIp(ClientIpT&& value) { SetClientIp(std::forward<ClientIpT>(value)); return *this;}
165
167
173 inline const Aws::String& GetClientIpv6Address() const { return m_clientIpv6Address; }
174 inline bool ClientIpv6AddressHasBeenSet() const { return m_clientIpv6AddressHasBeenSet; }
175 template<typename ClientIpv6AddressT = Aws::String>
176 void SetClientIpv6Address(ClientIpv6AddressT&& value) { m_clientIpv6AddressHasBeenSet = true; m_clientIpv6Address = std::forward<ClientIpv6AddressT>(value); }
177 template<typename ClientIpv6AddressT = Aws::String>
178 ClientVpnConnection& WithClientIpv6Address(ClientIpv6AddressT&& value) { SetClientIpv6Address(std::forward<ClientIpv6AddressT>(value)); return *this;}
180
182
186 inline const Aws::String& GetCommonName() const { return m_commonName; }
187 inline bool CommonNameHasBeenSet() const { return m_commonNameHasBeenSet; }
188 template<typename CommonNameT = Aws::String>
189 void SetCommonName(CommonNameT&& value) { m_commonNameHasBeenSet = true; m_commonName = std::forward<CommonNameT>(value); }
190 template<typename CommonNameT = Aws::String>
191 ClientVpnConnection& WithCommonName(CommonNameT&& value) { SetCommonName(std::forward<CommonNameT>(value)); return *this;}
193
195
198 inline const ClientVpnConnectionStatus& GetStatus() const { return m_status; }
199 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
200 template<typename StatusT = ClientVpnConnectionStatus>
201 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
202 template<typename StatusT = ClientVpnConnectionStatus>
203 ClientVpnConnection& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
205
207
210 inline const Aws::String& GetConnectionEndTime() const { return m_connectionEndTime; }
211 inline bool ConnectionEndTimeHasBeenSet() const { return m_connectionEndTimeHasBeenSet; }
212 template<typename ConnectionEndTimeT = Aws::String>
213 void SetConnectionEndTime(ConnectionEndTimeT&& value) { m_connectionEndTimeHasBeenSet = true; m_connectionEndTime = std::forward<ConnectionEndTimeT>(value); }
214 template<typename ConnectionEndTimeT = Aws::String>
215 ClientVpnConnection& WithConnectionEndTime(ConnectionEndTimeT&& value) { SetConnectionEndTime(std::forward<ConnectionEndTimeT>(value)); return *this;}
217
219
223 inline const Aws::Vector<Aws::String>& GetPostureComplianceStatuses() const { return m_postureComplianceStatuses; }
224 inline bool PostureComplianceStatusesHasBeenSet() const { return m_postureComplianceStatusesHasBeenSet; }
225 template<typename PostureComplianceStatusesT = Aws::Vector<Aws::String>>
226 void SetPostureComplianceStatuses(PostureComplianceStatusesT&& value) { m_postureComplianceStatusesHasBeenSet = true; m_postureComplianceStatuses = std::forward<PostureComplianceStatusesT>(value); }
227 template<typename PostureComplianceStatusesT = Aws::Vector<Aws::String>>
228 ClientVpnConnection& WithPostureComplianceStatuses(PostureComplianceStatusesT&& value) { SetPostureComplianceStatuses(std::forward<PostureComplianceStatusesT>(value)); return *this;}
229 template<typename PostureComplianceStatusesT = Aws::String>
230 ClientVpnConnection& AddPostureComplianceStatuses(PostureComplianceStatusesT&& value) { m_postureComplianceStatusesHasBeenSet = true; m_postureComplianceStatuses.emplace_back(std::forward<PostureComplianceStatusesT>(value)); return *this; }
232 private:
233
234 Aws::String m_clientVpnEndpointId;
235 bool m_clientVpnEndpointIdHasBeenSet = false;
236
237 Aws::String m_timestamp;
238 bool m_timestampHasBeenSet = false;
239
240 Aws::String m_connectionId;
241 bool m_connectionIdHasBeenSet = false;
242
243 Aws::String m_username;
244 bool m_usernameHasBeenSet = false;
245
246 Aws::String m_connectionEstablishedTime;
247 bool m_connectionEstablishedTimeHasBeenSet = false;
248
249 Aws::String m_ingressBytes;
250 bool m_ingressBytesHasBeenSet = false;
251
252 Aws::String m_egressBytes;
253 bool m_egressBytesHasBeenSet = false;
254
255 Aws::String m_ingressPackets;
256 bool m_ingressPacketsHasBeenSet = false;
257
258 Aws::String m_egressPackets;
259 bool m_egressPacketsHasBeenSet = false;
260
261 Aws::String m_clientIp;
262 bool m_clientIpHasBeenSet = false;
263
264 Aws::String m_clientIpv6Address;
265 bool m_clientIpv6AddressHasBeenSet = false;
266
267 Aws::String m_commonName;
268 bool m_commonNameHasBeenSet = false;
269
271 bool m_statusHasBeenSet = false;
272
273 Aws::String m_connectionEndTime;
274 bool m_connectionEndTimeHasBeenSet = false;
275
276 Aws::Vector<Aws::String> m_postureComplianceStatuses;
277 bool m_postureComplianceStatusesHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace EC2
282} // 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