AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; }
51 inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); }
52 inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); }
54 inline ClientVpnConnection& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;}
55 inline ClientVpnConnection& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;}
57
59
62 inline const Aws::String& GetTimestamp() const{ return m_timestamp; }
63 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
64 inline void SetTimestamp(const Aws::String& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
65 inline void SetTimestamp(Aws::String&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
66 inline void SetTimestamp(const char* value) { m_timestampHasBeenSet = true; m_timestamp.assign(value); }
67 inline ClientVpnConnection& WithTimestamp(const Aws::String& value) { SetTimestamp(value); return *this;}
68 inline ClientVpnConnection& WithTimestamp(Aws::String&& value) { SetTimestamp(std::move(value)); return *this;}
69 inline ClientVpnConnection& WithTimestamp(const char* value) { SetTimestamp(value); return *this;}
71
73
76 inline const Aws::String& GetConnectionId() const{ return m_connectionId; }
77 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
78 inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
79 inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); }
80 inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); }
81 inline ClientVpnConnection& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;}
82 inline ClientVpnConnection& WithConnectionId(Aws::String&& value) { SetConnectionId(std::move(value)); return *this;}
83 inline ClientVpnConnection& WithConnectionId(const char* value) { SetConnectionId(value); return *this;}
85
87
92 inline const Aws::String& GetUsername() const{ return m_username; }
93 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
94 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
95 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
96 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
97 inline ClientVpnConnection& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
98 inline ClientVpnConnection& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
99 inline ClientVpnConnection& WithUsername(const char* value) { SetUsername(value); return *this;}
101
103
106 inline const Aws::String& GetConnectionEstablishedTime() const{ return m_connectionEstablishedTime; }
107 inline bool ConnectionEstablishedTimeHasBeenSet() const { return m_connectionEstablishedTimeHasBeenSet; }
108 inline void SetConnectionEstablishedTime(const Aws::String& value) { m_connectionEstablishedTimeHasBeenSet = true; m_connectionEstablishedTime = value; }
109 inline void SetConnectionEstablishedTime(Aws::String&& value) { m_connectionEstablishedTimeHasBeenSet = true; m_connectionEstablishedTime = std::move(value); }
110 inline void SetConnectionEstablishedTime(const char* value) { m_connectionEstablishedTimeHasBeenSet = true; m_connectionEstablishedTime.assign(value); }
113 inline ClientVpnConnection& WithConnectionEstablishedTime(const char* value) { SetConnectionEstablishedTime(value); return *this;}
115
117
120 inline const Aws::String& GetIngressBytes() const{ return m_ingressBytes; }
121 inline bool IngressBytesHasBeenSet() const { return m_ingressBytesHasBeenSet; }
122 inline void SetIngressBytes(const Aws::String& value) { m_ingressBytesHasBeenSet = true; m_ingressBytes = value; }
123 inline void SetIngressBytes(Aws::String&& value) { m_ingressBytesHasBeenSet = true; m_ingressBytes = std::move(value); }
124 inline void SetIngressBytes(const char* value) { m_ingressBytesHasBeenSet = true; m_ingressBytes.assign(value); }
125 inline ClientVpnConnection& WithIngressBytes(const Aws::String& value) { SetIngressBytes(value); return *this;}
126 inline ClientVpnConnection& WithIngressBytes(Aws::String&& value) { SetIngressBytes(std::move(value)); return *this;}
127 inline ClientVpnConnection& WithIngressBytes(const char* value) { SetIngressBytes(value); return *this;}
129
131
134 inline const Aws::String& GetEgressBytes() const{ return m_egressBytes; }
135 inline bool EgressBytesHasBeenSet() const { return m_egressBytesHasBeenSet; }
136 inline void SetEgressBytes(const Aws::String& value) { m_egressBytesHasBeenSet = true; m_egressBytes = value; }
137 inline void SetEgressBytes(Aws::String&& value) { m_egressBytesHasBeenSet = true; m_egressBytes = std::move(value); }
138 inline void SetEgressBytes(const char* value) { m_egressBytesHasBeenSet = true; m_egressBytes.assign(value); }
139 inline ClientVpnConnection& WithEgressBytes(const Aws::String& value) { SetEgressBytes(value); return *this;}
140 inline ClientVpnConnection& WithEgressBytes(Aws::String&& value) { SetEgressBytes(std::move(value)); return *this;}
141 inline ClientVpnConnection& WithEgressBytes(const char* value) { SetEgressBytes(value); return *this;}
143
145
148 inline const Aws::String& GetIngressPackets() const{ return m_ingressPackets; }
149 inline bool IngressPacketsHasBeenSet() const { return m_ingressPacketsHasBeenSet; }
150 inline void SetIngressPackets(const Aws::String& value) { m_ingressPacketsHasBeenSet = true; m_ingressPackets = value; }
151 inline void SetIngressPackets(Aws::String&& value) { m_ingressPacketsHasBeenSet = true; m_ingressPackets = std::move(value); }
152 inline void SetIngressPackets(const char* value) { m_ingressPacketsHasBeenSet = true; m_ingressPackets.assign(value); }
153 inline ClientVpnConnection& WithIngressPackets(const Aws::String& value) { SetIngressPackets(value); return *this;}
154 inline ClientVpnConnection& WithIngressPackets(Aws::String&& value) { SetIngressPackets(std::move(value)); return *this;}
155 inline ClientVpnConnection& WithIngressPackets(const char* value) { SetIngressPackets(value); return *this;}
157
159
162 inline const Aws::String& GetEgressPackets() const{ return m_egressPackets; }
163 inline bool EgressPacketsHasBeenSet() const { return m_egressPacketsHasBeenSet; }
164 inline void SetEgressPackets(const Aws::String& value) { m_egressPacketsHasBeenSet = true; m_egressPackets = value; }
165 inline void SetEgressPackets(Aws::String&& value) { m_egressPacketsHasBeenSet = true; m_egressPackets = std::move(value); }
166 inline void SetEgressPackets(const char* value) { m_egressPacketsHasBeenSet = true; m_egressPackets.assign(value); }
167 inline ClientVpnConnection& WithEgressPackets(const Aws::String& value) { SetEgressPackets(value); return *this;}
168 inline ClientVpnConnection& WithEgressPackets(Aws::String&& value) { SetEgressPackets(std::move(value)); return *this;}
169 inline ClientVpnConnection& WithEgressPackets(const char* value) { SetEgressPackets(value); return *this;}
171
173
176 inline const Aws::String& GetClientIp() const{ return m_clientIp; }
177 inline bool ClientIpHasBeenSet() const { return m_clientIpHasBeenSet; }
178 inline void SetClientIp(const Aws::String& value) { m_clientIpHasBeenSet = true; m_clientIp = value; }
179 inline void SetClientIp(Aws::String&& value) { m_clientIpHasBeenSet = true; m_clientIp = std::move(value); }
180 inline void SetClientIp(const char* value) { m_clientIpHasBeenSet = true; m_clientIp.assign(value); }
181 inline ClientVpnConnection& WithClientIp(const Aws::String& value) { SetClientIp(value); return *this;}
182 inline ClientVpnConnection& WithClientIp(Aws::String&& value) { SetClientIp(std::move(value)); return *this;}
183 inline ClientVpnConnection& WithClientIp(const char* value) { SetClientIp(value); return *this;}
185
187
191 inline const Aws::String& GetCommonName() const{ return m_commonName; }
192 inline bool CommonNameHasBeenSet() const { return m_commonNameHasBeenSet; }
193 inline void SetCommonName(const Aws::String& value) { m_commonNameHasBeenSet = true; m_commonName = value; }
194 inline void SetCommonName(Aws::String&& value) { m_commonNameHasBeenSet = true; m_commonName = std::move(value); }
195 inline void SetCommonName(const char* value) { m_commonNameHasBeenSet = true; m_commonName.assign(value); }
196 inline ClientVpnConnection& WithCommonName(const Aws::String& value) { SetCommonName(value); return *this;}
197 inline ClientVpnConnection& WithCommonName(Aws::String&& value) { SetCommonName(std::move(value)); return *this;}
198 inline ClientVpnConnection& WithCommonName(const char* value) { SetCommonName(value); return *this;}
200
202
205 inline const ClientVpnConnectionStatus& GetStatus() const{ return m_status; }
206 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
207 inline void SetStatus(const ClientVpnConnectionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
208 inline void SetStatus(ClientVpnConnectionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
209 inline ClientVpnConnection& WithStatus(const ClientVpnConnectionStatus& value) { SetStatus(value); return *this;}
210 inline ClientVpnConnection& WithStatus(ClientVpnConnectionStatus&& value) { SetStatus(std::move(value)); return *this;}
212
214
217 inline const Aws::String& GetConnectionEndTime() const{ return m_connectionEndTime; }
218 inline bool ConnectionEndTimeHasBeenSet() const { return m_connectionEndTimeHasBeenSet; }
219 inline void SetConnectionEndTime(const Aws::String& value) { m_connectionEndTimeHasBeenSet = true; m_connectionEndTime = value; }
220 inline void SetConnectionEndTime(Aws::String&& value) { m_connectionEndTimeHasBeenSet = true; m_connectionEndTime = std::move(value); }
221 inline void SetConnectionEndTime(const char* value) { m_connectionEndTimeHasBeenSet = true; m_connectionEndTime.assign(value); }
222 inline ClientVpnConnection& WithConnectionEndTime(const Aws::String& value) { SetConnectionEndTime(value); return *this;}
223 inline ClientVpnConnection& WithConnectionEndTime(Aws::String&& value) { SetConnectionEndTime(std::move(value)); return *this;}
224 inline ClientVpnConnection& WithConnectionEndTime(const char* value) { SetConnectionEndTime(value); return *this;}
226
228
232 inline const Aws::Vector<Aws::String>& GetPostureComplianceStatuses() const{ return m_postureComplianceStatuses; }
233 inline bool PostureComplianceStatusesHasBeenSet() const { return m_postureComplianceStatusesHasBeenSet; }
234 inline void SetPostureComplianceStatuses(const Aws::Vector<Aws::String>& value) { m_postureComplianceStatusesHasBeenSet = true; m_postureComplianceStatuses = value; }
235 inline void SetPostureComplianceStatuses(Aws::Vector<Aws::String>&& value) { m_postureComplianceStatusesHasBeenSet = true; m_postureComplianceStatuses = std::move(value); }
238 inline ClientVpnConnection& AddPostureComplianceStatuses(const Aws::String& value) { m_postureComplianceStatusesHasBeenSet = true; m_postureComplianceStatuses.push_back(value); return *this; }
239 inline ClientVpnConnection& AddPostureComplianceStatuses(Aws::String&& value) { m_postureComplianceStatusesHasBeenSet = true; m_postureComplianceStatuses.push_back(std::move(value)); return *this; }
240 inline ClientVpnConnection& AddPostureComplianceStatuses(const char* value) { m_postureComplianceStatusesHasBeenSet = true; m_postureComplianceStatuses.push_back(value); return *this; }
242 private:
243
244 Aws::String m_clientVpnEndpointId;
245 bool m_clientVpnEndpointIdHasBeenSet = false;
246
247 Aws::String m_timestamp;
248 bool m_timestampHasBeenSet = false;
249
250 Aws::String m_connectionId;
251 bool m_connectionIdHasBeenSet = false;
252
253 Aws::String m_username;
254 bool m_usernameHasBeenSet = false;
255
256 Aws::String m_connectionEstablishedTime;
257 bool m_connectionEstablishedTimeHasBeenSet = false;
258
259 Aws::String m_ingressBytes;
260 bool m_ingressBytesHasBeenSet = false;
261
262 Aws::String m_egressBytes;
263 bool m_egressBytesHasBeenSet = false;
264
265 Aws::String m_ingressPackets;
266 bool m_ingressPacketsHasBeenSet = false;
267
268 Aws::String m_egressPackets;
269 bool m_egressPacketsHasBeenSet = false;
270
271 Aws::String m_clientIp;
272 bool m_clientIpHasBeenSet = false;
273
274 Aws::String m_commonName;
275 bool m_commonNameHasBeenSet = false;
276
278 bool m_statusHasBeenSet = false;
279
280 Aws::String m_connectionEndTime;
281 bool m_connectionEndTimeHasBeenSet = false;
282
283 Aws::Vector<Aws::String> m_postureComplianceStatuses;
284 bool m_postureComplianceStatusesHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace EC2
289} // namespace Aws
ClientVpnConnection & WithClientIp(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ClientVpnConnection & WithCommonName(const Aws::String &value)
ClientVpnConnection & WithCommonName(const char *value)
AWS_EC2_API ClientVpnConnection & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClientVpnConnection & WithConnectionId(const Aws::String &value)
ClientVpnConnection & WithStatus(ClientVpnConnectionStatus &&value)
ClientVpnConnection & WithCommonName(Aws::String &&value)
const Aws::String & GetConnectionId() const
void SetEgressPackets(Aws::String &&value)
ClientVpnConnection & WithPostureComplianceStatuses(const Aws::Vector< Aws::String > &value)
ClientVpnConnection & WithEgressPackets(const Aws::String &value)
void SetConnectionId(Aws::String &&value)
void SetIngressPackets(Aws::String &&value)
ClientVpnConnection & WithConnectionId(const char *value)
void SetClientVpnEndpointId(const Aws::String &value)
ClientVpnConnection & WithIngressBytes(const char *value)
ClientVpnConnection & WithEgressPackets(const char *value)
void SetStatus(const ClientVpnConnectionStatus &value)
ClientVpnConnection & WithConnectionEstablishedTime(Aws::String &&value)
void SetTimestamp(const Aws::String &value)
ClientVpnConnection & WithConnectionEndTime(Aws::String &&value)
void SetUsername(const Aws::String &value)
ClientVpnConnection & AddPostureComplianceStatuses(const Aws::String &value)
ClientVpnConnection & WithConnectionEndTime(const Aws::String &value)
void SetIngressPackets(const Aws::String &value)
ClientVpnConnection & WithUsername(const Aws::String &value)
const Aws::String & GetIngressPackets() const
const Aws::String & GetIngressBytes() const
void SetClientVpnEndpointId(const char *value)
void SetClientIp(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetCommonName() const
ClientVpnConnection & WithClientIp(Aws::String &&value)
ClientVpnConnection & AddPostureComplianceStatuses(const char *value)
const Aws::String & GetEgressPackets() const
ClientVpnConnection & WithEgressBytes(const Aws::String &value)
void SetConnectionEstablishedTime(Aws::String &&value)
void SetConnectionEndTime(const Aws::String &value)
ClientVpnConnection & WithIngressPackets(const char *value)
const Aws::String & GetUsername() const
void SetConnectionEstablishedTime(const Aws::String &value)
ClientVpnConnection & WithIngressPackets(Aws::String &&value)
const Aws::String & GetConnectionEstablishedTime() const
const Aws::Vector< Aws::String > & GetPostureComplianceStatuses() const
ClientVpnConnection & WithEgressBytes(Aws::String &&value)
const Aws::String & GetClientIp() const
ClientVpnConnection & AddPostureComplianceStatuses(Aws::String &&value)
ClientVpnConnection & WithIngressPackets(const Aws::String &value)
ClientVpnConnection & WithConnectionEstablishedTime(const Aws::String &value)
const ClientVpnConnectionStatus & GetStatus() const
AWS_EC2_API ClientVpnConnection(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPostureComplianceStatuses(Aws::Vector< Aws::String > &&value)
void SetStatus(ClientVpnConnectionStatus &&value)
ClientVpnConnection & WithEgressBytes(const char *value)
void SetIngressBytes(Aws::String &&value)
ClientVpnConnection & WithEgressPackets(Aws::String &&value)
ClientVpnConnection & WithConnectionEndTime(const char *value)
void SetEgressBytes(const Aws::String &value)
ClientVpnConnection & WithStatus(const ClientVpnConnectionStatus &value)
const Aws::String & GetConnectionEndTime() const
ClientVpnConnection & WithClientVpnEndpointId(const Aws::String &value)
ClientVpnConnection & WithTimestamp(const char *value)
ClientVpnConnection & WithIngressBytes(Aws::String &&value)
ClientVpnConnection & WithClientVpnEndpointId(Aws::String &&value)
void SetCommonName(const Aws::String &value)
ClientVpnConnection & WithClientVpnEndpointId(const char *value)
ClientVpnConnection & WithTimestamp(const Aws::String &value)
ClientVpnConnection & WithTimestamp(Aws::String &&value)
ClientVpnConnection & WithClientIp(const char *value)
void SetClientVpnEndpointId(Aws::String &&value)
void SetIngressBytes(const Aws::String &value)
void SetEgressPackets(const Aws::String &value)
void SetConnectionEndTime(Aws::String &&value)
ClientVpnConnection & WithUsername(const char *value)
void SetConnectionEstablishedTime(const char *value)
ClientVpnConnection & WithIngressBytes(const Aws::String &value)
ClientVpnConnection & WithConnectionId(Aws::String &&value)
const Aws::String & GetClientVpnEndpointId() const
void SetConnectionId(const Aws::String &value)
ClientVpnConnection & WithUsername(Aws::String &&value)
ClientVpnConnection & WithPostureComplianceStatuses(Aws::Vector< Aws::String > &&value)
const Aws::String & GetTimestamp() const
const Aws::String & GetEgressBytes() const
ClientVpnConnection & WithConnectionEstablishedTime(const char *value)
void SetPostureComplianceStatuses(const Aws::Vector< Aws::String > &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