AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
171 inline const Aws::String& GetCommonName() const { return m_commonName; }
172 inline bool CommonNameHasBeenSet() const { return m_commonNameHasBeenSet; }
173 template<typename CommonNameT = Aws::String>
174 void SetCommonName(CommonNameT&& value) { m_commonNameHasBeenSet = true; m_commonName = std::forward<CommonNameT>(value); }
175 template<typename CommonNameT = Aws::String>
176 ClientVpnConnection& WithCommonName(CommonNameT&& value) { SetCommonName(std::forward<CommonNameT>(value)); return *this;}
178
180
183 inline const ClientVpnConnectionStatus& GetStatus() const { return m_status; }
184 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
185 template<typename StatusT = ClientVpnConnectionStatus>
186 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
187 template<typename StatusT = ClientVpnConnectionStatus>
188 ClientVpnConnection& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
190
192
195 inline const Aws::String& GetConnectionEndTime() const { return m_connectionEndTime; }
196 inline bool ConnectionEndTimeHasBeenSet() const { return m_connectionEndTimeHasBeenSet; }
197 template<typename ConnectionEndTimeT = Aws::String>
198 void SetConnectionEndTime(ConnectionEndTimeT&& value) { m_connectionEndTimeHasBeenSet = true; m_connectionEndTime = std::forward<ConnectionEndTimeT>(value); }
199 template<typename ConnectionEndTimeT = Aws::String>
200 ClientVpnConnection& WithConnectionEndTime(ConnectionEndTimeT&& value) { SetConnectionEndTime(std::forward<ConnectionEndTimeT>(value)); return *this;}
202
204
208 inline const Aws::Vector<Aws::String>& GetPostureComplianceStatuses() const { return m_postureComplianceStatuses; }
209 inline bool PostureComplianceStatusesHasBeenSet() const { return m_postureComplianceStatusesHasBeenSet; }
210 template<typename PostureComplianceStatusesT = Aws::Vector<Aws::String>>
211 void SetPostureComplianceStatuses(PostureComplianceStatusesT&& value) { m_postureComplianceStatusesHasBeenSet = true; m_postureComplianceStatuses = std::forward<PostureComplianceStatusesT>(value); }
212 template<typename PostureComplianceStatusesT = Aws::Vector<Aws::String>>
213 ClientVpnConnection& WithPostureComplianceStatuses(PostureComplianceStatusesT&& value) { SetPostureComplianceStatuses(std::forward<PostureComplianceStatusesT>(value)); return *this;}
214 template<typename PostureComplianceStatusesT = Aws::String>
215 ClientVpnConnection& AddPostureComplianceStatuses(PostureComplianceStatusesT&& value) { m_postureComplianceStatusesHasBeenSet = true; m_postureComplianceStatuses.emplace_back(std::forward<PostureComplianceStatusesT>(value)); return *this; }
217 private:
218
219 Aws::String m_clientVpnEndpointId;
220 bool m_clientVpnEndpointIdHasBeenSet = false;
221
222 Aws::String m_timestamp;
223 bool m_timestampHasBeenSet = false;
224
225 Aws::String m_connectionId;
226 bool m_connectionIdHasBeenSet = false;
227
228 Aws::String m_username;
229 bool m_usernameHasBeenSet = false;
230
231 Aws::String m_connectionEstablishedTime;
232 bool m_connectionEstablishedTimeHasBeenSet = false;
233
234 Aws::String m_ingressBytes;
235 bool m_ingressBytesHasBeenSet = false;
236
237 Aws::String m_egressBytes;
238 bool m_egressBytesHasBeenSet = false;
239
240 Aws::String m_ingressPackets;
241 bool m_ingressPacketsHasBeenSet = false;
242
243 Aws::String m_egressPackets;
244 bool m_egressPacketsHasBeenSet = false;
245
246 Aws::String m_clientIp;
247 bool m_clientIpHasBeenSet = false;
248
249 Aws::String m_commonName;
250 bool m_commonNameHasBeenSet = false;
251
253 bool m_statusHasBeenSet = false;
254
255 Aws::String m_connectionEndTime;
256 bool m_connectionEndTimeHasBeenSet = false;
257
258 Aws::Vector<Aws::String> m_postureComplianceStatuses;
259 bool m_postureComplianceStatusesHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace EC2
264} // 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 & 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
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)
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