AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEc2ClientVpnEndpointDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsEc2ClientVpnEndpointConnectionLogOptionsDetails.h>
11#include <aws/securityhub/model/AwsEc2ClientVpnEndpointClientConnectOptionsDetails.h>
12#include <aws/securityhub/model/AwsEc2ClientVpnEndpointClientLoginBannerOptionsDetails.h>
13#include <aws/securityhub/model/AwsEc2ClientVpnEndpointAuthenticationOptionsDetails.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityHub
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_SECURITYHUB_API AwsEc2ClientVpnEndpointDetails() = default;
44 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetClientVpnEndpointId() const { return m_clientVpnEndpointId; }
52 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
53 template<typename ClientVpnEndpointIdT = Aws::String>
54 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value); }
55 template<typename ClientVpnEndpointIdT = Aws::String>
56 AwsEc2ClientVpnEndpointDetails& WithClientVpnEndpointId(ClientVpnEndpointIdT&& value) { SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value)); return *this;}
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template<typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
67 template<typename DescriptionT = Aws::String>
68 AwsEc2ClientVpnEndpointDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
70
72
76 inline const Aws::String& GetClientCidrBlock() const { return m_clientCidrBlock; }
77 inline bool ClientCidrBlockHasBeenSet() const { return m_clientCidrBlockHasBeenSet; }
78 template<typename ClientCidrBlockT = Aws::String>
79 void SetClientCidrBlock(ClientCidrBlockT&& value) { m_clientCidrBlockHasBeenSet = true; m_clientCidrBlock = std::forward<ClientCidrBlockT>(value); }
80 template<typename ClientCidrBlockT = Aws::String>
81 AwsEc2ClientVpnEndpointDetails& WithClientCidrBlock(ClientCidrBlockT&& value) { SetClientCidrBlock(std::forward<ClientCidrBlockT>(value)); return *this;}
83
85
88 inline const Aws::Vector<Aws::String>& GetDnsServer() const { return m_dnsServer; }
89 inline bool DnsServerHasBeenSet() const { return m_dnsServerHasBeenSet; }
90 template<typename DnsServerT = Aws::Vector<Aws::String>>
91 void SetDnsServer(DnsServerT&& value) { m_dnsServerHasBeenSet = true; m_dnsServer = std::forward<DnsServerT>(value); }
92 template<typename DnsServerT = Aws::Vector<Aws::String>>
93 AwsEc2ClientVpnEndpointDetails& WithDnsServer(DnsServerT&& value) { SetDnsServer(std::forward<DnsServerT>(value)); return *this;}
94 template<typename DnsServerT = Aws::String>
95 AwsEc2ClientVpnEndpointDetails& AddDnsServer(DnsServerT&& value) { m_dnsServerHasBeenSet = true; m_dnsServer.emplace_back(std::forward<DnsServerT>(value)); return *this; }
97
99
102 inline bool GetSplitTunnel() const { return m_splitTunnel; }
103 inline bool SplitTunnelHasBeenSet() const { return m_splitTunnelHasBeenSet; }
104 inline void SetSplitTunnel(bool value) { m_splitTunnelHasBeenSet = true; m_splitTunnel = value; }
105 inline AwsEc2ClientVpnEndpointDetails& WithSplitTunnel(bool value) { SetSplitTunnel(value); return *this;}
107
109
112 inline const Aws::String& GetTransportProtocol() const { return m_transportProtocol; }
113 inline bool TransportProtocolHasBeenSet() const { return m_transportProtocolHasBeenSet; }
114 template<typename TransportProtocolT = Aws::String>
115 void SetTransportProtocol(TransportProtocolT&& value) { m_transportProtocolHasBeenSet = true; m_transportProtocol = std::forward<TransportProtocolT>(value); }
116 template<typename TransportProtocolT = Aws::String>
117 AwsEc2ClientVpnEndpointDetails& WithTransportProtocol(TransportProtocolT&& value) { SetTransportProtocol(std::forward<TransportProtocolT>(value)); return *this;}
119
121
124 inline int GetVpnPort() const { return m_vpnPort; }
125 inline bool VpnPortHasBeenSet() const { return m_vpnPortHasBeenSet; }
126 inline void SetVpnPort(int value) { m_vpnPortHasBeenSet = true; m_vpnPort = value; }
127 inline AwsEc2ClientVpnEndpointDetails& WithVpnPort(int value) { SetVpnPort(value); return *this;}
129
131
134 inline const Aws::String& GetServerCertificateArn() const { return m_serverCertificateArn; }
135 inline bool ServerCertificateArnHasBeenSet() const { return m_serverCertificateArnHasBeenSet; }
136 template<typename ServerCertificateArnT = Aws::String>
137 void SetServerCertificateArn(ServerCertificateArnT&& value) { m_serverCertificateArnHasBeenSet = true; m_serverCertificateArn = std::forward<ServerCertificateArnT>(value); }
138 template<typename ServerCertificateArnT = Aws::String>
139 AwsEc2ClientVpnEndpointDetails& WithServerCertificateArn(ServerCertificateArnT&& value) { SetServerCertificateArn(std::forward<ServerCertificateArnT>(value)); return *this;}
141
143
148 inline bool AuthenticationOptionsHasBeenSet() const { return m_authenticationOptionsHasBeenSet; }
149 template<typename AuthenticationOptionsT = Aws::Vector<AwsEc2ClientVpnEndpointAuthenticationOptionsDetails>>
150 void SetAuthenticationOptions(AuthenticationOptionsT&& value) { m_authenticationOptionsHasBeenSet = true; m_authenticationOptions = std::forward<AuthenticationOptionsT>(value); }
151 template<typename AuthenticationOptionsT = Aws::Vector<AwsEc2ClientVpnEndpointAuthenticationOptionsDetails>>
152 AwsEc2ClientVpnEndpointDetails& WithAuthenticationOptions(AuthenticationOptionsT&& value) { SetAuthenticationOptions(std::forward<AuthenticationOptionsT>(value)); return *this;}
153 template<typename AuthenticationOptionsT = AwsEc2ClientVpnEndpointAuthenticationOptionsDetails>
154 AwsEc2ClientVpnEndpointDetails& AddAuthenticationOptions(AuthenticationOptionsT&& value) { m_authenticationOptionsHasBeenSet = true; m_authenticationOptions.emplace_back(std::forward<AuthenticationOptionsT>(value)); return *this; }
156
158
162 inline const AwsEc2ClientVpnEndpointConnectionLogOptionsDetails& GetConnectionLogOptions() const { return m_connectionLogOptions; }
163 inline bool ConnectionLogOptionsHasBeenSet() const { return m_connectionLogOptionsHasBeenSet; }
164 template<typename ConnectionLogOptionsT = AwsEc2ClientVpnEndpointConnectionLogOptionsDetails>
165 void SetConnectionLogOptions(ConnectionLogOptionsT&& value) { m_connectionLogOptionsHasBeenSet = true; m_connectionLogOptions = std::forward<ConnectionLogOptionsT>(value); }
166 template<typename ConnectionLogOptionsT = AwsEc2ClientVpnEndpointConnectionLogOptionsDetails>
167 AwsEc2ClientVpnEndpointDetails& WithConnectionLogOptions(ConnectionLogOptionsT&& value) { SetConnectionLogOptions(std::forward<ConnectionLogOptionsT>(value)); return *this;}
169
171
174 inline const Aws::Vector<Aws::String>& GetSecurityGroupIdSet() const { return m_securityGroupIdSet; }
175 inline bool SecurityGroupIdSetHasBeenSet() const { return m_securityGroupIdSetHasBeenSet; }
176 template<typename SecurityGroupIdSetT = Aws::Vector<Aws::String>>
177 void SetSecurityGroupIdSet(SecurityGroupIdSetT&& value) { m_securityGroupIdSetHasBeenSet = true; m_securityGroupIdSet = std::forward<SecurityGroupIdSetT>(value); }
178 template<typename SecurityGroupIdSetT = Aws::Vector<Aws::String>>
179 AwsEc2ClientVpnEndpointDetails& WithSecurityGroupIdSet(SecurityGroupIdSetT&& value) { SetSecurityGroupIdSet(std::forward<SecurityGroupIdSetT>(value)); return *this;}
180 template<typename SecurityGroupIdSetT = Aws::String>
181 AwsEc2ClientVpnEndpointDetails& AddSecurityGroupIdSet(SecurityGroupIdSetT&& value) { m_securityGroupIdSetHasBeenSet = true; m_securityGroupIdSet.emplace_back(std::forward<SecurityGroupIdSetT>(value)); return *this; }
183
185
188 inline const Aws::String& GetVpcId() const { return m_vpcId; }
189 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
190 template<typename VpcIdT = Aws::String>
191 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
192 template<typename VpcIdT = Aws::String>
193 AwsEc2ClientVpnEndpointDetails& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
195
197
200 inline const Aws::String& GetSelfServicePortalUrl() const { return m_selfServicePortalUrl; }
201 inline bool SelfServicePortalUrlHasBeenSet() const { return m_selfServicePortalUrlHasBeenSet; }
202 template<typename SelfServicePortalUrlT = Aws::String>
203 void SetSelfServicePortalUrl(SelfServicePortalUrlT&& value) { m_selfServicePortalUrlHasBeenSet = true; m_selfServicePortalUrl = std::forward<SelfServicePortalUrlT>(value); }
204 template<typename SelfServicePortalUrlT = Aws::String>
205 AwsEc2ClientVpnEndpointDetails& WithSelfServicePortalUrl(SelfServicePortalUrlT&& value) { SetSelfServicePortalUrl(std::forward<SelfServicePortalUrlT>(value)); return *this;}
207
209
213 inline const AwsEc2ClientVpnEndpointClientConnectOptionsDetails& GetClientConnectOptions() const { return m_clientConnectOptions; }
214 inline bool ClientConnectOptionsHasBeenSet() const { return m_clientConnectOptionsHasBeenSet; }
215 template<typename ClientConnectOptionsT = AwsEc2ClientVpnEndpointClientConnectOptionsDetails>
216 void SetClientConnectOptions(ClientConnectOptionsT&& value) { m_clientConnectOptionsHasBeenSet = true; m_clientConnectOptions = std::forward<ClientConnectOptionsT>(value); }
217 template<typename ClientConnectOptionsT = AwsEc2ClientVpnEndpointClientConnectOptionsDetails>
218 AwsEc2ClientVpnEndpointDetails& WithClientConnectOptions(ClientConnectOptionsT&& value) { SetClientConnectOptions(std::forward<ClientConnectOptionsT>(value)); return *this;}
220
222
225 inline int GetSessionTimeoutHours() const { return m_sessionTimeoutHours; }
226 inline bool SessionTimeoutHoursHasBeenSet() const { return m_sessionTimeoutHoursHasBeenSet; }
227 inline void SetSessionTimeoutHours(int value) { m_sessionTimeoutHoursHasBeenSet = true; m_sessionTimeoutHours = value; }
230
232
236 inline const AwsEc2ClientVpnEndpointClientLoginBannerOptionsDetails& GetClientLoginBannerOptions() const { return m_clientLoginBannerOptions; }
237 inline bool ClientLoginBannerOptionsHasBeenSet() const { return m_clientLoginBannerOptionsHasBeenSet; }
238 template<typename ClientLoginBannerOptionsT = AwsEc2ClientVpnEndpointClientLoginBannerOptionsDetails>
239 void SetClientLoginBannerOptions(ClientLoginBannerOptionsT&& value) { m_clientLoginBannerOptionsHasBeenSet = true; m_clientLoginBannerOptions = std::forward<ClientLoginBannerOptionsT>(value); }
240 template<typename ClientLoginBannerOptionsT = AwsEc2ClientVpnEndpointClientLoginBannerOptionsDetails>
241 AwsEc2ClientVpnEndpointDetails& WithClientLoginBannerOptions(ClientLoginBannerOptionsT&& value) { SetClientLoginBannerOptions(std::forward<ClientLoginBannerOptionsT>(value)); return *this;}
243 private:
244
245 Aws::String m_clientVpnEndpointId;
246 bool m_clientVpnEndpointIdHasBeenSet = false;
247
248 Aws::String m_description;
249 bool m_descriptionHasBeenSet = false;
250
251 Aws::String m_clientCidrBlock;
252 bool m_clientCidrBlockHasBeenSet = false;
253
254 Aws::Vector<Aws::String> m_dnsServer;
255 bool m_dnsServerHasBeenSet = false;
256
257 bool m_splitTunnel{false};
258 bool m_splitTunnelHasBeenSet = false;
259
260 Aws::String m_transportProtocol;
261 bool m_transportProtocolHasBeenSet = false;
262
263 int m_vpnPort{0};
264 bool m_vpnPortHasBeenSet = false;
265
266 Aws::String m_serverCertificateArn;
267 bool m_serverCertificateArnHasBeenSet = false;
268
270 bool m_authenticationOptionsHasBeenSet = false;
271
272 AwsEc2ClientVpnEndpointConnectionLogOptionsDetails m_connectionLogOptions;
273 bool m_connectionLogOptionsHasBeenSet = false;
274
275 Aws::Vector<Aws::String> m_securityGroupIdSet;
276 bool m_securityGroupIdSetHasBeenSet = false;
277
278 Aws::String m_vpcId;
279 bool m_vpcIdHasBeenSet = false;
280
281 Aws::String m_selfServicePortalUrl;
282 bool m_selfServicePortalUrlHasBeenSet = false;
283
284 AwsEc2ClientVpnEndpointClientConnectOptionsDetails m_clientConnectOptions;
285 bool m_clientConnectOptionsHasBeenSet = false;
286
287 int m_sessionTimeoutHours{0};
288 bool m_sessionTimeoutHoursHasBeenSet = false;
289
290 AwsEc2ClientVpnEndpointClientLoginBannerOptionsDetails m_clientLoginBannerOptions;
291 bool m_clientLoginBannerOptionsHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace SecurityHub
296} // namespace Aws
AWS_SECURITYHUB_API AwsEc2ClientVpnEndpointDetails()=default
AwsEc2ClientVpnEndpointDetails & WithVpcId(VpcIdT &&value)
AwsEc2ClientVpnEndpointDetails & AddSecurityGroupIdSet(SecurityGroupIdSetT &&value)
AwsEc2ClientVpnEndpointDetails & WithClientLoginBannerOptions(ClientLoginBannerOptionsT &&value)
AwsEc2ClientVpnEndpointDetails & WithClientCidrBlock(ClientCidrBlockT &&value)
const AwsEc2ClientVpnEndpointConnectionLogOptionsDetails & GetConnectionLogOptions() const
AwsEc2ClientVpnEndpointDetails & WithAuthenticationOptions(AuthenticationOptionsT &&value)
AwsEc2ClientVpnEndpointDetails & WithTransportProtocol(TransportProtocolT &&value)
const AwsEc2ClientVpnEndpointClientLoginBannerOptionsDetails & GetClientLoginBannerOptions() const
AwsEc2ClientVpnEndpointDetails & WithSelfServicePortalUrl(SelfServicePortalUrlT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2ClientVpnEndpointDetails & WithDescription(DescriptionT &&value)
AwsEc2ClientVpnEndpointDetails & AddAuthenticationOptions(AuthenticationOptionsT &&value)
AwsEc2ClientVpnEndpointDetails & WithServerCertificateArn(ServerCertificateArnT &&value)
AwsEc2ClientVpnEndpointDetails & AddDnsServer(DnsServerT &&value)
AwsEc2ClientVpnEndpointDetails & WithSecurityGroupIdSet(SecurityGroupIdSetT &&value)
AwsEc2ClientVpnEndpointDetails & WithConnectionLogOptions(ConnectionLogOptionsT &&value)
AwsEc2ClientVpnEndpointDetails & WithDnsServer(DnsServerT &&value)
AwsEc2ClientVpnEndpointDetails & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
const AwsEc2ClientVpnEndpointClientConnectOptionsDetails & GetClientConnectOptions() const
AWS_SECURITYHUB_API AwsEc2ClientVpnEndpointDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AwsEc2ClientVpnEndpointAuthenticationOptionsDetails > & GetAuthenticationOptions() const
AWS_SECURITYHUB_API AwsEc2ClientVpnEndpointDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2ClientVpnEndpointDetails & WithClientConnectOptions(ClientConnectOptionsT &&value)
AwsEc2ClientVpnEndpointDetails & WithSessionTimeoutHours(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue