1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes a Client VPN endpoint.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ClientVpnEndpoint {
    /// <p>The ID of the Client VPN endpoint.</p>
    pub client_vpn_endpoint_id: ::std::option::Option<::std::string::String>,
    /// <p>A brief description of the endpoint.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The current state of the Client VPN endpoint.</p>
    pub status: ::std::option::Option<crate::types::ClientVpnEndpointStatus>,
    /// <p>The date and time the Client VPN endpoint was created.</p>
    pub creation_time: ::std::option::Option<::std::string::String>,
    /// <p>The date and time the Client VPN endpoint was deleted, if applicable.</p>
    pub deletion_time: ::std::option::Option<::std::string::String>,
    /// <p>The DNS name to be used by clients when connecting to the Client VPN endpoint.</p>
    pub dns_name: ::std::option::Option<::std::string::String>,
    /// <p>The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.</p>
    pub client_cidr_block: ::std::option::Option<::std::string::String>,
    /// <p>Information about the DNS servers to be used for DNS resolution. </p>
    pub dns_servers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>Indicates whether split-tunnel is enabled in the Client VPN endpoint.</p>
    /// <p>For information about split-tunnel VPN endpoints, see <a href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html">Split-Tunnel Client VPN endpoint</a> in the <i>Client VPN Administrator Guide</i>.</p>
    pub split_tunnel: ::std::option::Option<bool>,
    /// <p>The protocol used by the VPN session.</p>
    pub vpn_protocol: ::std::option::Option<crate::types::VpnProtocol>,
    /// <p>The transport protocol used by the Client VPN endpoint.</p>
    pub transport_protocol: ::std::option::Option<crate::types::TransportProtocol>,
    /// <p>The port number for the Client VPN endpoint.</p>
    pub vpn_port: ::std::option::Option<i32>,
    /// <p>Information about the associated target networks. A target network is a subnet in a VPC.</p>
    #[deprecated(
        note = "This property is deprecated. To view the target networks associated with a Client VPN endpoint, call DescribeClientVpnTargetNetworks and inspect the clientVpnTargetNetworks response element."
    )]
    pub associated_target_networks: ::std::option::Option<::std::vec::Vec<crate::types::AssociatedTargetNetwork>>,
    /// <p>The ARN of the server certificate.</p>
    pub server_certificate_arn: ::std::option::Option<::std::string::String>,
    /// <p>Information about the authentication method used by the Client VPN endpoint.</p>
    pub authentication_options: ::std::option::Option<::std::vec::Vec<crate::types::ClientVpnAuthentication>>,
    /// <p>Information about the client connection logging options for the Client VPN endpoint.</p>
    pub connection_log_options: ::std::option::Option<crate::types::ConnectionLogResponseOptions>,
    /// <p>Any tags assigned to the Client VPN endpoint.</p>
    pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
    /// <p>The IDs of the security groups for the target network.</p>
    pub security_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>The ID of the VPC.</p>
    pub vpc_id: ::std::option::Option<::std::string::String>,
    /// <p>The URL of the self-service portal.</p>
    pub self_service_portal_url: ::std::option::Option<::std::string::String>,
    /// <p>The options for managing connection authorization for new client connections.</p>
    pub client_connect_options: ::std::option::Option<crate::types::ClientConnectResponseOptions>,
    /// <p>The maximum VPN session duration time in hours.</p>
    /// <p>Valid values: <code>8 | 10 | 12 | 24</code> </p>
    /// <p>Default value: <code>24</code> </p>
    pub session_timeout_hours: ::std::option::Option<i32>,
    /// <p>Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.</p>
    pub client_login_banner_options: ::std::option::Option<crate::types::ClientLoginBannerResponseOptions>,
}
impl ClientVpnEndpoint {
    /// <p>The ID of the Client VPN endpoint.</p>
    pub fn client_vpn_endpoint_id(&self) -> ::std::option::Option<&str> {
        self.client_vpn_endpoint_id.as_deref()
    }
    /// <p>A brief description of the endpoint.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The current state of the Client VPN endpoint.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::ClientVpnEndpointStatus> {
        self.status.as_ref()
    }
    /// <p>The date and time the Client VPN endpoint was created.</p>
    pub fn creation_time(&self) -> ::std::option::Option<&str> {
        self.creation_time.as_deref()
    }
    /// <p>The date and time the Client VPN endpoint was deleted, if applicable.</p>
    pub fn deletion_time(&self) -> ::std::option::Option<&str> {
        self.deletion_time.as_deref()
    }
    /// <p>The DNS name to be used by clients when connecting to the Client VPN endpoint.</p>
    pub fn dns_name(&self) -> ::std::option::Option<&str> {
        self.dns_name.as_deref()
    }
    /// <p>The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.</p>
    pub fn client_cidr_block(&self) -> ::std::option::Option<&str> {
        self.client_cidr_block.as_deref()
    }
    /// <p>Information about the DNS servers to be used for DNS resolution. </p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.dns_servers.is_none()`.
    pub fn dns_servers(&self) -> &[::std::string::String] {
        self.dns_servers.as_deref().unwrap_or_default()
    }
    /// <p>Indicates whether split-tunnel is enabled in the Client VPN endpoint.</p>
    /// <p>For information about split-tunnel VPN endpoints, see <a href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html">Split-Tunnel Client VPN endpoint</a> in the <i>Client VPN Administrator Guide</i>.</p>
    pub fn split_tunnel(&self) -> ::std::option::Option<bool> {
        self.split_tunnel
    }
    /// <p>The protocol used by the VPN session.</p>
    pub fn vpn_protocol(&self) -> ::std::option::Option<&crate::types::VpnProtocol> {
        self.vpn_protocol.as_ref()
    }
    /// <p>The transport protocol used by the Client VPN endpoint.</p>
    pub fn transport_protocol(&self) -> ::std::option::Option<&crate::types::TransportProtocol> {
        self.transport_protocol.as_ref()
    }
    /// <p>The port number for the Client VPN endpoint.</p>
    pub fn vpn_port(&self) -> ::std::option::Option<i32> {
        self.vpn_port
    }
    /// <p>Information about the associated target networks. A target network is a subnet in a VPC.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.associated_target_networks.is_none()`.
    #[deprecated(
        note = "This property is deprecated. To view the target networks associated with a Client VPN endpoint, call DescribeClientVpnTargetNetworks and inspect the clientVpnTargetNetworks response element."
    )]
    pub fn associated_target_networks(&self) -> &[crate::types::AssociatedTargetNetwork] {
        self.associated_target_networks.as_deref().unwrap_or_default()
    }
    /// <p>The ARN of the server certificate.</p>
    pub fn server_certificate_arn(&self) -> ::std::option::Option<&str> {
        self.server_certificate_arn.as_deref()
    }
    /// <p>Information about the authentication method used by the Client VPN endpoint.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.authentication_options.is_none()`.
    pub fn authentication_options(&self) -> &[crate::types::ClientVpnAuthentication] {
        self.authentication_options.as_deref().unwrap_or_default()
    }
    /// <p>Information about the client connection logging options for the Client VPN endpoint.</p>
    pub fn connection_log_options(&self) -> ::std::option::Option<&crate::types::ConnectionLogResponseOptions> {
        self.connection_log_options.as_ref()
    }
    /// <p>Any tags assigned to the Client VPN endpoint.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
    pub fn tags(&self) -> &[crate::types::Tag] {
        self.tags.as_deref().unwrap_or_default()
    }
    /// <p>The IDs of the security groups for the target network.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.security_group_ids.is_none()`.
    pub fn security_group_ids(&self) -> &[::std::string::String] {
        self.security_group_ids.as_deref().unwrap_or_default()
    }
    /// <p>The ID of the VPC.</p>
    pub fn vpc_id(&self) -> ::std::option::Option<&str> {
        self.vpc_id.as_deref()
    }
    /// <p>The URL of the self-service portal.</p>
    pub fn self_service_portal_url(&self) -> ::std::option::Option<&str> {
        self.self_service_portal_url.as_deref()
    }
    /// <p>The options for managing connection authorization for new client connections.</p>
    pub fn client_connect_options(&self) -> ::std::option::Option<&crate::types::ClientConnectResponseOptions> {
        self.client_connect_options.as_ref()
    }
    /// <p>The maximum VPN session duration time in hours.</p>
    /// <p>Valid values: <code>8 | 10 | 12 | 24</code> </p>
    /// <p>Default value: <code>24</code> </p>
    pub fn session_timeout_hours(&self) -> ::std::option::Option<i32> {
        self.session_timeout_hours
    }
    /// <p>Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.</p>
    pub fn client_login_banner_options(&self) -> ::std::option::Option<&crate::types::ClientLoginBannerResponseOptions> {
        self.client_login_banner_options.as_ref()
    }
}
impl ClientVpnEndpoint {
    /// Creates a new builder-style object to manufacture [`ClientVpnEndpoint`](crate::types::ClientVpnEndpoint).
    pub fn builder() -> crate::types::builders::ClientVpnEndpointBuilder {
        crate::types::builders::ClientVpnEndpointBuilder::default()
    }
}

/// A builder for [`ClientVpnEndpoint`](crate::types::ClientVpnEndpoint).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ClientVpnEndpointBuilder {
    pub(crate) client_vpn_endpoint_id: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::ClientVpnEndpointStatus>,
    pub(crate) creation_time: ::std::option::Option<::std::string::String>,
    pub(crate) deletion_time: ::std::option::Option<::std::string::String>,
    pub(crate) dns_name: ::std::option::Option<::std::string::String>,
    pub(crate) client_cidr_block: ::std::option::Option<::std::string::String>,
    pub(crate) dns_servers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) split_tunnel: ::std::option::Option<bool>,
    pub(crate) vpn_protocol: ::std::option::Option<crate::types::VpnProtocol>,
    pub(crate) transport_protocol: ::std::option::Option<crate::types::TransportProtocol>,
    pub(crate) vpn_port: ::std::option::Option<i32>,
    pub(crate) associated_target_networks: ::std::option::Option<::std::vec::Vec<crate::types::AssociatedTargetNetwork>>,
    pub(crate) server_certificate_arn: ::std::option::Option<::std::string::String>,
    pub(crate) authentication_options: ::std::option::Option<::std::vec::Vec<crate::types::ClientVpnAuthentication>>,
    pub(crate) connection_log_options: ::std::option::Option<crate::types::ConnectionLogResponseOptions>,
    pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
    pub(crate) security_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) vpc_id: ::std::option::Option<::std::string::String>,
    pub(crate) self_service_portal_url: ::std::option::Option<::std::string::String>,
    pub(crate) client_connect_options: ::std::option::Option<crate::types::ClientConnectResponseOptions>,
    pub(crate) session_timeout_hours: ::std::option::Option<i32>,
    pub(crate) client_login_banner_options: ::std::option::Option<crate::types::ClientLoginBannerResponseOptions>,
}
impl ClientVpnEndpointBuilder {
    /// <p>The ID of the Client VPN endpoint.</p>
    pub fn client_vpn_endpoint_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_vpn_endpoint_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Client VPN endpoint.</p>
    pub fn set_client_vpn_endpoint_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_vpn_endpoint_id = input;
        self
    }
    /// <p>The ID of the Client VPN endpoint.</p>
    pub fn get_client_vpn_endpoint_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_vpn_endpoint_id
    }
    /// <p>A brief description of the endpoint.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A brief description of the endpoint.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>A brief description of the endpoint.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The current state of the Client VPN endpoint.</p>
    pub fn status(mut self, input: crate::types::ClientVpnEndpointStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The current state of the Client VPN endpoint.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ClientVpnEndpointStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The current state of the Client VPN endpoint.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::ClientVpnEndpointStatus> {
        &self.status
    }
    /// <p>The date and time the Client VPN endpoint was created.</p>
    pub fn creation_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.creation_time = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The date and time the Client VPN endpoint was created.</p>
    pub fn set_creation_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.creation_time = input;
        self
    }
    /// <p>The date and time the Client VPN endpoint was created.</p>
    pub fn get_creation_time(&self) -> &::std::option::Option<::std::string::String> {
        &self.creation_time
    }
    /// <p>The date and time the Client VPN endpoint was deleted, if applicable.</p>
    pub fn deletion_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.deletion_time = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The date and time the Client VPN endpoint was deleted, if applicable.</p>
    pub fn set_deletion_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.deletion_time = input;
        self
    }
    /// <p>The date and time the Client VPN endpoint was deleted, if applicable.</p>
    pub fn get_deletion_time(&self) -> &::std::option::Option<::std::string::String> {
        &self.deletion_time
    }
    /// <p>The DNS name to be used by clients when connecting to the Client VPN endpoint.</p>
    pub fn dns_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.dns_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The DNS name to be used by clients when connecting to the Client VPN endpoint.</p>
    pub fn set_dns_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.dns_name = input;
        self
    }
    /// <p>The DNS name to be used by clients when connecting to the Client VPN endpoint.</p>
    pub fn get_dns_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.dns_name
    }
    /// <p>The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.</p>
    pub fn client_cidr_block(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_cidr_block = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.</p>
    pub fn set_client_cidr_block(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_cidr_block = input;
        self
    }
    /// <p>The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.</p>
    pub fn get_client_cidr_block(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_cidr_block
    }
    /// Appends an item to `dns_servers`.
    ///
    /// To override the contents of this collection use [`set_dns_servers`](Self::set_dns_servers).
    ///
    /// <p>Information about the DNS servers to be used for DNS resolution. </p>
    pub fn dns_servers(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.dns_servers.unwrap_or_default();
        v.push(input.into());
        self.dns_servers = ::std::option::Option::Some(v);
        self
    }
    /// <p>Information about the DNS servers to be used for DNS resolution. </p>
    pub fn set_dns_servers(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.dns_servers = input;
        self
    }
    /// <p>Information about the DNS servers to be used for DNS resolution. </p>
    pub fn get_dns_servers(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.dns_servers
    }
    /// <p>Indicates whether split-tunnel is enabled in the Client VPN endpoint.</p>
    /// <p>For information about split-tunnel VPN endpoints, see <a href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html">Split-Tunnel Client VPN endpoint</a> in the <i>Client VPN Administrator Guide</i>.</p>
    pub fn split_tunnel(mut self, input: bool) -> Self {
        self.split_tunnel = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether split-tunnel is enabled in the Client VPN endpoint.</p>
    /// <p>For information about split-tunnel VPN endpoints, see <a href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html">Split-Tunnel Client VPN endpoint</a> in the <i>Client VPN Administrator Guide</i>.</p>
    pub fn set_split_tunnel(mut self, input: ::std::option::Option<bool>) -> Self {
        self.split_tunnel = input;
        self
    }
    /// <p>Indicates whether split-tunnel is enabled in the Client VPN endpoint.</p>
    /// <p>For information about split-tunnel VPN endpoints, see <a href="https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html">Split-Tunnel Client VPN endpoint</a> in the <i>Client VPN Administrator Guide</i>.</p>
    pub fn get_split_tunnel(&self) -> &::std::option::Option<bool> {
        &self.split_tunnel
    }
    /// <p>The protocol used by the VPN session.</p>
    pub fn vpn_protocol(mut self, input: crate::types::VpnProtocol) -> Self {
        self.vpn_protocol = ::std::option::Option::Some(input);
        self
    }
    /// <p>The protocol used by the VPN session.</p>
    pub fn set_vpn_protocol(mut self, input: ::std::option::Option<crate::types::VpnProtocol>) -> Self {
        self.vpn_protocol = input;
        self
    }
    /// <p>The protocol used by the VPN session.</p>
    pub fn get_vpn_protocol(&self) -> &::std::option::Option<crate::types::VpnProtocol> {
        &self.vpn_protocol
    }
    /// <p>The transport protocol used by the Client VPN endpoint.</p>
    pub fn transport_protocol(mut self, input: crate::types::TransportProtocol) -> Self {
        self.transport_protocol = ::std::option::Option::Some(input);
        self
    }
    /// <p>The transport protocol used by the Client VPN endpoint.</p>
    pub fn set_transport_protocol(mut self, input: ::std::option::Option<crate::types::TransportProtocol>) -> Self {
        self.transport_protocol = input;
        self
    }
    /// <p>The transport protocol used by the Client VPN endpoint.</p>
    pub fn get_transport_protocol(&self) -> &::std::option::Option<crate::types::TransportProtocol> {
        &self.transport_protocol
    }
    /// <p>The port number for the Client VPN endpoint.</p>
    pub fn vpn_port(mut self, input: i32) -> Self {
        self.vpn_port = ::std::option::Option::Some(input);
        self
    }
    /// <p>The port number for the Client VPN endpoint.</p>
    pub fn set_vpn_port(mut self, input: ::std::option::Option<i32>) -> Self {
        self.vpn_port = input;
        self
    }
    /// <p>The port number for the Client VPN endpoint.</p>
    pub fn get_vpn_port(&self) -> &::std::option::Option<i32> {
        &self.vpn_port
    }
    /// Appends an item to `associated_target_networks`.
    ///
    /// To override the contents of this collection use [`set_associated_target_networks`](Self::set_associated_target_networks).
    ///
    /// <p>Information about the associated target networks. A target network is a subnet in a VPC.</p>
    #[deprecated(
        note = "This property is deprecated. To view the target networks associated with a Client VPN endpoint, call DescribeClientVpnTargetNetworks and inspect the clientVpnTargetNetworks response element."
    )]
    pub fn associated_target_networks(mut self, input: crate::types::AssociatedTargetNetwork) -> Self {
        let mut v = self.associated_target_networks.unwrap_or_default();
        v.push(input);
        self.associated_target_networks = ::std::option::Option::Some(v);
        self
    }
    /// <p>Information about the associated target networks. A target network is a subnet in a VPC.</p>
    #[deprecated(
        note = "This property is deprecated. To view the target networks associated with a Client VPN endpoint, call DescribeClientVpnTargetNetworks and inspect the clientVpnTargetNetworks response element."
    )]
    pub fn set_associated_target_networks(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AssociatedTargetNetwork>>) -> Self {
        self.associated_target_networks = input;
        self
    }
    /// <p>Information about the associated target networks. A target network is a subnet in a VPC.</p>
    #[deprecated(
        note = "This property is deprecated. To view the target networks associated with a Client VPN endpoint, call DescribeClientVpnTargetNetworks and inspect the clientVpnTargetNetworks response element."
    )]
    pub fn get_associated_target_networks(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssociatedTargetNetwork>> {
        &self.associated_target_networks
    }
    /// <p>The ARN of the server certificate.</p>
    pub fn server_certificate_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.server_certificate_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the server certificate.</p>
    pub fn set_server_certificate_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.server_certificate_arn = input;
        self
    }
    /// <p>The ARN of the server certificate.</p>
    pub fn get_server_certificate_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.server_certificate_arn
    }
    /// Appends an item to `authentication_options`.
    ///
    /// To override the contents of this collection use [`set_authentication_options`](Self::set_authentication_options).
    ///
    /// <p>Information about the authentication method used by the Client VPN endpoint.</p>
    pub fn authentication_options(mut self, input: crate::types::ClientVpnAuthentication) -> Self {
        let mut v = self.authentication_options.unwrap_or_default();
        v.push(input);
        self.authentication_options = ::std::option::Option::Some(v);
        self
    }
    /// <p>Information about the authentication method used by the Client VPN endpoint.</p>
    pub fn set_authentication_options(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ClientVpnAuthentication>>) -> Self {
        self.authentication_options = input;
        self
    }
    /// <p>Information about the authentication method used by the Client VPN endpoint.</p>
    pub fn get_authentication_options(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ClientVpnAuthentication>> {
        &self.authentication_options
    }
    /// <p>Information about the client connection logging options for the Client VPN endpoint.</p>
    pub fn connection_log_options(mut self, input: crate::types::ConnectionLogResponseOptions) -> Self {
        self.connection_log_options = ::std::option::Option::Some(input);
        self
    }
    /// <p>Information about the client connection logging options for the Client VPN endpoint.</p>
    pub fn set_connection_log_options(mut self, input: ::std::option::Option<crate::types::ConnectionLogResponseOptions>) -> Self {
        self.connection_log_options = input;
        self
    }
    /// <p>Information about the client connection logging options for the Client VPN endpoint.</p>
    pub fn get_connection_log_options(&self) -> &::std::option::Option<crate::types::ConnectionLogResponseOptions> {
        &self.connection_log_options
    }
    /// Appends an item to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// <p>Any tags assigned to the Client VPN endpoint.</p>
    pub fn tags(mut self, input: crate::types::Tag) -> Self {
        let mut v = self.tags.unwrap_or_default();
        v.push(input);
        self.tags = ::std::option::Option::Some(v);
        self
    }
    /// <p>Any tags assigned to the Client VPN endpoint.</p>
    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
        self.tags = input;
        self
    }
    /// <p>Any tags assigned to the Client VPN endpoint.</p>
    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
        &self.tags
    }
    /// Appends an item to `security_group_ids`.
    ///
    /// To override the contents of this collection use [`set_security_group_ids`](Self::set_security_group_ids).
    ///
    /// <p>The IDs of the security groups for the target network.</p>
    pub fn security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.security_group_ids.unwrap_or_default();
        v.push(input.into());
        self.security_group_ids = ::std::option::Option::Some(v);
        self
    }
    /// <p>The IDs of the security groups for the target network.</p>
    pub fn set_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.security_group_ids = input;
        self
    }
    /// <p>The IDs of the security groups for the target network.</p>
    pub fn get_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.security_group_ids
    }
    /// <p>The ID of the VPC.</p>
    pub fn vpc_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.vpc_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the VPC.</p>
    pub fn set_vpc_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.vpc_id = input;
        self
    }
    /// <p>The ID of the VPC.</p>
    pub fn get_vpc_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.vpc_id
    }
    /// <p>The URL of the self-service portal.</p>
    pub fn self_service_portal_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.self_service_portal_url = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The URL of the self-service portal.</p>
    pub fn set_self_service_portal_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.self_service_portal_url = input;
        self
    }
    /// <p>The URL of the self-service portal.</p>
    pub fn get_self_service_portal_url(&self) -> &::std::option::Option<::std::string::String> {
        &self.self_service_portal_url
    }
    /// <p>The options for managing connection authorization for new client connections.</p>
    pub fn client_connect_options(mut self, input: crate::types::ClientConnectResponseOptions) -> Self {
        self.client_connect_options = ::std::option::Option::Some(input);
        self
    }
    /// <p>The options for managing connection authorization for new client connections.</p>
    pub fn set_client_connect_options(mut self, input: ::std::option::Option<crate::types::ClientConnectResponseOptions>) -> Self {
        self.client_connect_options = input;
        self
    }
    /// <p>The options for managing connection authorization for new client connections.</p>
    pub fn get_client_connect_options(&self) -> &::std::option::Option<crate::types::ClientConnectResponseOptions> {
        &self.client_connect_options
    }
    /// <p>The maximum VPN session duration time in hours.</p>
    /// <p>Valid values: <code>8 | 10 | 12 | 24</code> </p>
    /// <p>Default value: <code>24</code> </p>
    pub fn session_timeout_hours(mut self, input: i32) -> Self {
        self.session_timeout_hours = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum VPN session duration time in hours.</p>
    /// <p>Valid values: <code>8 | 10 | 12 | 24</code> </p>
    /// <p>Default value: <code>24</code> </p>
    pub fn set_session_timeout_hours(mut self, input: ::std::option::Option<i32>) -> Self {
        self.session_timeout_hours = input;
        self
    }
    /// <p>The maximum VPN session duration time in hours.</p>
    /// <p>Valid values: <code>8 | 10 | 12 | 24</code> </p>
    /// <p>Default value: <code>24</code> </p>
    pub fn get_session_timeout_hours(&self) -> &::std::option::Option<i32> {
        &self.session_timeout_hours
    }
    /// <p>Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.</p>
    pub fn client_login_banner_options(mut self, input: crate::types::ClientLoginBannerResponseOptions) -> Self {
        self.client_login_banner_options = ::std::option::Option::Some(input);
        self
    }
    /// <p>Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.</p>
    pub fn set_client_login_banner_options(mut self, input: ::std::option::Option<crate::types::ClientLoginBannerResponseOptions>) -> Self {
        self.client_login_banner_options = input;
        self
    }
    /// <p>Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.</p>
    pub fn get_client_login_banner_options(&self) -> &::std::option::Option<crate::types::ClientLoginBannerResponseOptions> {
        &self.client_login_banner_options
    }
    /// Consumes the builder and constructs a [`ClientVpnEndpoint`](crate::types::ClientVpnEndpoint).
    pub fn build(self) -> crate::types::ClientVpnEndpoint {
        crate::types::ClientVpnEndpoint {
            client_vpn_endpoint_id: self.client_vpn_endpoint_id,
            description: self.description,
            status: self.status,
            creation_time: self.creation_time,
            deletion_time: self.deletion_time,
            dns_name: self.dns_name,
            client_cidr_block: self.client_cidr_block,
            dns_servers: self.dns_servers,
            split_tunnel: self.split_tunnel,
            vpn_protocol: self.vpn_protocol,
            transport_protocol: self.transport_protocol,
            vpn_port: self.vpn_port,
            associated_target_networks: self.associated_target_networks,
            server_certificate_arn: self.server_certificate_arn,
            authentication_options: self.authentication_options,
            connection_log_options: self.connection_log_options,
            tags: self.tags,
            security_group_ids: self.security_group_ids,
            vpc_id: self.vpc_id,
            self_service_portal_url: self.self_service_portal_url,
            client_connect_options: self.client_connect_options,
            session_timeout_hours: self.session_timeout_hours,
            client_login_banner_options: self.client_login_banner_options,
        }
    }
}