195 195 | }
|
196 196 | static CLIENTVPNENDPOINT_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
|
197 197 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#ClientVpnEndpoint", "com.amazonaws.ec2", "ClientVpnEndpoint");
|
198 198 | static CLIENTVPNENDPOINT_MEMBER_CLIENT_VPN_ENDPOINT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
199 199 | ::aws_smithy_schema::ShapeId::from_static(
|
200 200 | "com.amazonaws.ec2#ClientVpnEndpoint$ClientVpnEndpointId",
|
201 201 | "com.amazonaws.ec2",
|
202 202 | "ClientVpnEndpoint",
|
203 203 | ),
|
204 204 | ::aws_smithy_schema::ShapeType::String,
|
205 - | "client_vpn_endpoint_id",
|
205 + | "ClientVpnEndpointId",
|
206 206 | 0,
|
207 207 | )
|
208 208 | .with_xml_name("clientVpnEndpointId");
|
209 209 | static CLIENTVPNENDPOINT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
210 210 | ::aws_smithy_schema::ShapeId::from_static(
|
211 211 | "com.amazonaws.ec2#ClientVpnEndpoint$Description",
|
212 212 | "com.amazonaws.ec2",
|
213 213 | "ClientVpnEndpoint",
|
214 214 | ),
|
215 215 | ::aws_smithy_schema::ShapeType::String,
|
216 - | "description",
|
216 + | "Description",
|
217 217 | 1,
|
218 218 | )
|
219 219 | .with_xml_name("description");
|
220 220 | static CLIENTVPNENDPOINT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
221 221 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#ClientVpnEndpoint$Status", "com.amazonaws.ec2", "ClientVpnEndpoint"),
|
222 222 | ::aws_smithy_schema::ShapeType::Structure,
|
223 - | "status",
|
223 + | "Status",
|
224 224 | 2,
|
225 225 | )
|
226 226 | .with_xml_name("status");
|
227 227 | static CLIENTVPNENDPOINT_MEMBER_CREATION_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
228 228 | ::aws_smithy_schema::ShapeId::from_static(
|
229 229 | "com.amazonaws.ec2#ClientVpnEndpoint$CreationTime",
|
230 230 | "com.amazonaws.ec2",
|
231 231 | "ClientVpnEndpoint",
|
232 232 | ),
|
233 233 | ::aws_smithy_schema::ShapeType::String,
|
234 - | "creation_time",
|
234 + | "CreationTime",
|
235 235 | 3,
|
236 236 | )
|
237 237 | .with_xml_name("creationTime");
|
238 238 | static CLIENTVPNENDPOINT_MEMBER_DELETION_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
239 239 | ::aws_smithy_schema::ShapeId::from_static(
|
240 240 | "com.amazonaws.ec2#ClientVpnEndpoint$DeletionTime",
|
241 241 | "com.amazonaws.ec2",
|
242 242 | "ClientVpnEndpoint",
|
243 243 | ),
|
244 244 | ::aws_smithy_schema::ShapeType::String,
|
245 - | "deletion_time",
|
245 + | "DeletionTime",
|
246 246 | 4,
|
247 247 | )
|
248 248 | .with_xml_name("deletionTime");
|
249 249 | static CLIENTVPNENDPOINT_MEMBER_DNS_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
250 250 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#ClientVpnEndpoint$DnsName", "com.amazonaws.ec2", "ClientVpnEndpoint"),
|
251 251 | ::aws_smithy_schema::ShapeType::String,
|
252 - | "dns_name",
|
252 + | "DnsName",
|
253 253 | 5,
|
254 254 | )
|
255 255 | .with_xml_name("dnsName");
|
256 256 | static CLIENTVPNENDPOINT_MEMBER_CLIENT_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
257 257 | ::aws_smithy_schema::ShapeId::from_static(
|
258 258 | "com.amazonaws.ec2#ClientVpnEndpoint$ClientCidrBlock",
|
259 259 | "com.amazonaws.ec2",
|
260 260 | "ClientVpnEndpoint",
|
261 261 | ),
|
262 262 | ::aws_smithy_schema::ShapeType::String,
|
263 - | "client_cidr_block",
|
263 + | "ClientCidrBlock",
|
264 264 | 6,
|
265 265 | )
|
266 266 | .with_xml_name("clientCidrBlock");
|
267 267 | static CLIENTVPNENDPOINT_MEMBER_DNS_SERVERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
268 268 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#ClientVpnEndpoint$DnsServers", "com.amazonaws.ec2", "ClientVpnEndpoint"),
|
269 269 | ::aws_smithy_schema::ShapeType::List,
|
270 - | "dns_servers",
|
270 + | "DnsServers",
|
271 271 | 7,
|
272 272 | )
|
273 273 | .with_xml_name("dnsServer");
|
274 274 | static CLIENTVPNENDPOINT_MEMBER_SPLIT_TUNNEL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
275 275 | ::aws_smithy_schema::ShapeId::from_static(
|
276 276 | "com.amazonaws.ec2#ClientVpnEndpoint$SplitTunnel",
|
277 277 | "com.amazonaws.ec2",
|
278 278 | "ClientVpnEndpoint",
|
279 279 | ),
|
280 280 | ::aws_smithy_schema::ShapeType::Boolean,
|
281 - | "split_tunnel",
|
281 + | "SplitTunnel",
|
282 282 | 8,
|
283 283 | )
|
284 284 | .with_xml_name("splitTunnel");
|
285 285 | static CLIENTVPNENDPOINT_MEMBER_VPN_PROTOCOL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
286 286 | ::aws_smithy_schema::ShapeId::from_static(
|
287 287 | "com.amazonaws.ec2#ClientVpnEndpoint$VpnProtocol",
|
288 288 | "com.amazonaws.ec2",
|
289 289 | "ClientVpnEndpoint",
|
290 290 | ),
|
291 291 | ::aws_smithy_schema::ShapeType::String,
|
292 - | "vpn_protocol",
|
292 + | "VpnProtocol",
|
293 293 | 9,
|
294 294 | )
|
295 295 | .with_xml_name("vpnProtocol");
|
296 296 | static CLIENTVPNENDPOINT_MEMBER_TRANSPORT_PROTOCOL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
297 297 | ::aws_smithy_schema::ShapeId::from_static(
|
298 298 | "com.amazonaws.ec2#ClientVpnEndpoint$TransportProtocol",
|
299 299 | "com.amazonaws.ec2",
|
300 300 | "ClientVpnEndpoint",
|
301 301 | ),
|
302 302 | ::aws_smithy_schema::ShapeType::String,
|
303 - | "transport_protocol",
|
303 + | "TransportProtocol",
|
304 304 | 10,
|
305 305 | )
|
306 306 | .with_xml_name("transportProtocol");
|
307 307 | static CLIENTVPNENDPOINT_MEMBER_VPN_PORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
308 308 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#ClientVpnEndpoint$VpnPort", "com.amazonaws.ec2", "ClientVpnEndpoint"),
|
309 309 | ::aws_smithy_schema::ShapeType::Integer,
|
310 - | "vpn_port",
|
310 + | "VpnPort",
|
311 311 | 11,
|
312 312 | )
|
313 313 | .with_xml_name("vpnPort");
|
314 314 | static CLIENTVPNENDPOINT_MEMBER_ASSOCIATED_TARGET_NETWORKS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
315 315 | ::aws_smithy_schema::ShapeId::from_static(
|
316 316 | "com.amazonaws.ec2#ClientVpnEndpoint$AssociatedTargetNetworks",
|
317 317 | "com.amazonaws.ec2",
|
318 318 | "ClientVpnEndpoint",
|
319 319 | ),
|
320 320 | ::aws_smithy_schema::ShapeType::List,
|
321 - | "associated_target_networks",
|
321 + | "AssociatedTargetNetworks",
|
322 322 | 12,
|
323 323 | )
|
324 324 | .with_xml_name("associatedTargetNetwork");
|
325 325 | static CLIENTVPNENDPOINT_MEMBER_SERVER_CERTIFICATE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
326 326 | ::aws_smithy_schema::ShapeId::from_static(
|
327 327 | "com.amazonaws.ec2#ClientVpnEndpoint$ServerCertificateArn",
|
328 328 | "com.amazonaws.ec2",
|
329 329 | "ClientVpnEndpoint",
|
330 330 | ),
|
331 331 | ::aws_smithy_schema::ShapeType::String,
|
332 - | "server_certificate_arn",
|
332 + | "ServerCertificateArn",
|
333 333 | 13,
|
334 334 | )
|
335 335 | .with_xml_name("serverCertificateArn");
|
336 336 | static CLIENTVPNENDPOINT_MEMBER_AUTHENTICATION_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
337 337 | ::aws_smithy_schema::ShapeId::from_static(
|
338 338 | "com.amazonaws.ec2#ClientVpnEndpoint$AuthenticationOptions",
|
339 339 | "com.amazonaws.ec2",
|
340 340 | "ClientVpnEndpoint",
|
341 341 | ),
|
342 342 | ::aws_smithy_schema::ShapeType::List,
|
343 - | "authentication_options",
|
343 + | "AuthenticationOptions",
|
344 344 | 14,
|
345 345 | )
|
346 346 | .with_xml_name("authenticationOptions");
|
347 347 | static CLIENTVPNENDPOINT_MEMBER_CONNECTION_LOG_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
348 348 | ::aws_smithy_schema::ShapeId::from_static(
|
349 349 | "com.amazonaws.ec2#ClientVpnEndpoint$ConnectionLogOptions",
|
350 350 | "com.amazonaws.ec2",
|
351 351 | "ClientVpnEndpoint",
|
352 352 | ),
|
353 353 | ::aws_smithy_schema::ShapeType::Structure,
|
354 - | "connection_log_options",
|
354 + | "ConnectionLogOptions",
|
355 355 | 15,
|
356 356 | )
|
357 357 | .with_xml_name("connectionLogOptions");
|
358 358 | static CLIENTVPNENDPOINT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
359 359 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#ClientVpnEndpoint$Tags", "com.amazonaws.ec2", "ClientVpnEndpoint"),
|
360 360 | ::aws_smithy_schema::ShapeType::List,
|
361 - | "tags",
|
361 + | "Tags",
|
362 362 | 16,
|
363 363 | )
|
364 364 | .with_xml_name("tagSet");
|
365 365 | static CLIENTVPNENDPOINT_MEMBER_SECURITY_GROUP_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
366 366 | ::aws_smithy_schema::ShapeId::from_static(
|
367 367 | "com.amazonaws.ec2#ClientVpnEndpoint$SecurityGroupIds",
|
368 368 | "com.amazonaws.ec2",
|
369 369 | "ClientVpnEndpoint",
|
370 370 | ),
|
371 371 | ::aws_smithy_schema::ShapeType::List,
|
372 - | "security_group_ids",
|
372 + | "SecurityGroupIds",
|
373 373 | 17,
|
374 374 | )
|
375 375 | .with_xml_name("securityGroupIdSet");
|
376 376 | static CLIENTVPNENDPOINT_MEMBER_VPC_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
377 377 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#ClientVpnEndpoint$VpcId", "com.amazonaws.ec2", "ClientVpnEndpoint"),
|
378 378 | ::aws_smithy_schema::ShapeType::String,
|
379 - | "vpc_id",
|
379 + | "VpcId",
|
380 380 | 18,
|
381 381 | )
|
382 382 | .with_xml_name("vpcId");
|
383 383 | static CLIENTVPNENDPOINT_MEMBER_SELF_SERVICE_PORTAL_URL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
384 384 | ::aws_smithy_schema::ShapeId::from_static(
|
385 385 | "com.amazonaws.ec2#ClientVpnEndpoint$SelfServicePortalUrl",
|
386 386 | "com.amazonaws.ec2",
|
387 387 | "ClientVpnEndpoint",
|
388 388 | ),
|
389 389 | ::aws_smithy_schema::ShapeType::String,
|
390 - | "self_service_portal_url",
|
390 + | "SelfServicePortalUrl",
|
391 391 | 19,
|
392 392 | )
|
393 393 | .with_xml_name("selfServicePortalUrl");
|
394 394 | static CLIENTVPNENDPOINT_MEMBER_CLIENT_CONNECT_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
395 395 | ::aws_smithy_schema::ShapeId::from_static(
|
396 396 | "com.amazonaws.ec2#ClientVpnEndpoint$ClientConnectOptions",
|
397 397 | "com.amazonaws.ec2",
|
398 398 | "ClientVpnEndpoint",
|
399 399 | ),
|
400 400 | ::aws_smithy_schema::ShapeType::Structure,
|
401 - | "client_connect_options",
|
401 + | "ClientConnectOptions",
|
402 402 | 20,
|
403 403 | )
|
404 404 | .with_xml_name("clientConnectOptions");
|
405 405 | static CLIENTVPNENDPOINT_MEMBER_SESSION_TIMEOUT_HOURS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
406 406 | ::aws_smithy_schema::ShapeId::from_static(
|
407 407 | "com.amazonaws.ec2#ClientVpnEndpoint$SessionTimeoutHours",
|
408 408 | "com.amazonaws.ec2",
|
409 409 | "ClientVpnEndpoint",
|
410 410 | ),
|
411 411 | ::aws_smithy_schema::ShapeType::Integer,
|
412 - | "session_timeout_hours",
|
412 + | "SessionTimeoutHours",
|
413 413 | 21,
|
414 414 | )
|
415 415 | .with_xml_name("sessionTimeoutHours");
|
416 416 | static CLIENTVPNENDPOINT_MEMBER_CLIENT_LOGIN_BANNER_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
417 417 | ::aws_smithy_schema::ShapeId::from_static(
|
418 418 | "com.amazonaws.ec2#ClientVpnEndpoint$ClientLoginBannerOptions",
|
419 419 | "com.amazonaws.ec2",
|
420 420 | "ClientVpnEndpoint",
|
421 421 | ),
|
422 422 | ::aws_smithy_schema::ShapeType::Structure,
|
423 - | "client_login_banner_options",
|
423 + | "ClientLoginBannerOptions",
|
424 424 | 22,
|
425 425 | )
|
426 426 | .with_xml_name("clientLoginBannerOptions");
|
427 427 | static CLIENTVPNENDPOINT_MEMBER_CLIENT_ROUTE_ENFORCEMENT_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
428 428 | ::aws_smithy_schema::ShapeId::from_static(
|
429 429 | "com.amazonaws.ec2#ClientVpnEndpoint$ClientRouteEnforcementOptions",
|
430 430 | "com.amazonaws.ec2",
|
431 431 | "ClientVpnEndpoint",
|
432 432 | ),
|
433 433 | ::aws_smithy_schema::ShapeType::Structure,
|
434 - | "client_route_enforcement_options",
|
434 + | "ClientRouteEnforcementOptions",
|
435 435 | 23,
|
436 436 | )
|
437 437 | .with_xml_name("clientRouteEnforcementOptions");
|
438 438 | static CLIENTVPNENDPOINT_MEMBER_DISCONNECT_ON_SESSION_TIMEOUT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
439 439 | ::aws_smithy_schema::ShapeId::from_static(
|
440 440 | "com.amazonaws.ec2#ClientVpnEndpoint$DisconnectOnSessionTimeout",
|
441 441 | "com.amazonaws.ec2",
|
442 442 | "ClientVpnEndpoint",
|
443 443 | ),
|
444 444 | ::aws_smithy_schema::ShapeType::Boolean,
|
445 - | "disconnect_on_session_timeout",
|
445 + | "DisconnectOnSessionTimeout",
|
446 446 | 24,
|
447 447 | )
|
448 448 | .with_xml_name("disconnectOnSessionTimeout");
|
449 449 | static CLIENTVPNENDPOINT_MEMBER_ENDPOINT_IP_ADDRESS_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
450 450 | ::aws_smithy_schema::ShapeId::from_static(
|
451 451 | "com.amazonaws.ec2#ClientVpnEndpoint$EndpointIpAddressType",
|
452 452 | "com.amazonaws.ec2",
|
453 453 | "ClientVpnEndpoint",
|
454 454 | ),
|
455 455 | ::aws_smithy_schema::ShapeType::String,
|
456 - | "endpoint_ip_address_type",
|
456 + | "EndpointIpAddressType",
|
457 457 | 25,
|
458 458 | )
|
459 459 | .with_xml_name("endpointIpAddressType");
|
460 460 | static CLIENTVPNENDPOINT_MEMBER_TRAFFIC_IP_ADDRESS_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
461 461 | ::aws_smithy_schema::ShapeId::from_static(
|
462 462 | "com.amazonaws.ec2#ClientVpnEndpoint$TrafficIpAddressType",
|
463 463 | "com.amazonaws.ec2",
|
464 464 | "ClientVpnEndpoint",
|
465 465 | ),
|
466 466 | ::aws_smithy_schema::ShapeType::String,
|
467 - | "traffic_ip_address_type",
|
467 + | "TrafficIpAddressType",
|
468 468 | 26,
|
469 469 | )
|
470 470 | .with_xml_name("trafficIpAddressType");
|
471 471 | static CLIENTVPNENDPOINT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
472 472 | CLIENTVPNENDPOINT_SCHEMA_ID,
|
473 473 | ::aws_smithy_schema::ShapeType::Structure,
|
474 474 | &[
|
475 475 | &CLIENTVPNENDPOINT_MEMBER_CLIENT_VPN_ENDPOINT_ID,
|
476 476 | &CLIENTVPNENDPOINT_MEMBER_DESCRIPTION,
|
477 477 | &CLIENTVPNENDPOINT_MEMBER_STATUS,
|
630 630 | ser.write_string(&CLIENTVPNENDPOINT_MEMBER_ENDPOINT_IP_ADDRESS_TYPE, val.as_str())?;
|
631 631 | }
|
632 632 | if let Some(ref val) = self.traffic_ip_address_type {
|
633 633 | ser.write_string(&CLIENTVPNENDPOINT_MEMBER_TRAFFIC_IP_ADDRESS_TYPE, val.as_str())?;
|
634 634 | }
|
635 635 | Ok(())
|
636 636 | }
|
637 637 | }
|
638 638 | impl ClientVpnEndpoint {
|
639 639 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
640 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
641 - | deserializer: &mut D,
|
640 + | pub fn deserialize(
|
641 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
642 642 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
643 643 | #[allow(unused_variables, unused_mut)]
|
644 644 | let mut builder = Self::builder();
|
645 645 | #[allow(
|
646 646 | unused_variables,
|
647 647 | unreachable_code,
|
648 648 | clippy::single_match,
|
649 649 | clippy::match_single_binding,
|
650 650 | clippy::diverging_sub_expression
|
651 651 | )]
|
652 - | deserializer.read_struct(&CLIENTVPNENDPOINT_SCHEMA, (), |_, member, deser| {
|
652 + | deserializer.read_struct(&CLIENTVPNENDPOINT_SCHEMA, &mut |member, deser| {
|
653 653 | match member.member_index() {
|
654 654 | Some(0) => {
|
655 655 | builder.client_vpn_endpoint_id = Some(deser.read_string(member)?);
|
656 656 | }
|
657 657 | Some(1) => {
|
658 658 | builder.description = Some(deser.read_string(member)?);
|
659 659 | }
|
660 660 | Some(2) => {
|
661 661 | builder.status = Some(crate::types::ClientVpnEndpointStatus::deserialize(deser)?);
|
662 662 | }
|
663 663 | Some(3) => {
|
664 664 | builder.creation_time = Some(deser.read_string(member)?);
|
665 665 | }
|
666 666 | Some(4) => {
|
667 667 | builder.deletion_time = Some(deser.read_string(member)?);
|
668 668 | }
|
669 669 | Some(5) => {
|
670 670 | builder.dns_name = Some(deser.read_string(member)?);
|
671 671 | }
|
672 672 | Some(6) => {
|
673 673 | builder.client_cidr_block = Some(deser.read_string(member)?);
|
674 674 | }
|
675 675 | Some(7) => {
|
676 - | builder.dns_servers = Some({
|
677 - | let container = if let Some(cap) = deser.container_size() {
|
678 - | Vec::with_capacity(cap)
|
679 - | } else {
|
680 - | Vec::new()
|
681 - | };
|
682 - | deser.read_list(member, container, |mut list, deser| {
|
683 - | list.push(deser.read_string(member)?);
|
684 - | Ok(list)
|
685 - | })?
|
686 - | });
|
676 + | builder.dns_servers = Some(deser.read_string_list(member)?);
|
687 677 | }
|
688 678 | Some(8) => {
|
689 679 | builder.split_tunnel = Some(deser.read_boolean(member)?);
|
690 680 | }
|
691 681 | Some(9) => {
|
692 682 | builder.vpn_protocol = Some(crate::types::VpnProtocol::from(deser.read_string(member)?.as_str()));
|
693 683 | }
|
694 684 | Some(10) => {
|
695 685 | builder.transport_protocol = Some(crate::types::TransportProtocol::from(deser.read_string(member)?.as_str()));
|
696 686 | }
|
697 687 | Some(11) => {
|
698 688 | builder.vpn_port = Some(deser.read_integer(member)?);
|
699 689 | }
|
700 690 | Some(12) => {
|
701 691 | builder.associated_target_networks = Some({
|
702 - | let container = if let Some(cap) = deser.container_size() {
|
703 - | Vec::with_capacity(cap)
|
704 - | } else {
|
705 - | Vec::new()
|
706 - | };
|
707 - | deser.read_list(member, container, |mut list, deser| {
|
708 - | list.push(crate::types::AssociatedTargetNetwork::deserialize(deser)?);
|
709 - | Ok(list)
|
710 - | })?
|
692 + | let mut container = Vec::new();
|
693 + | deser.read_list(member, &mut |deser| {
|
694 + | container.push(crate::types::AssociatedTargetNetwork::deserialize(deser)?);
|
695 + | Ok(())
|
696 + | })?;
|
697 + | container
|
711 698 | });
|
712 699 | }
|
713 700 | Some(13) => {
|
714 701 | builder.server_certificate_arn = Some(deser.read_string(member)?);
|
715 702 | }
|
716 703 | Some(14) => {
|
717 704 | builder.authentication_options = Some({
|
718 - | let container = if let Some(cap) = deser.container_size() {
|
719 - | Vec::with_capacity(cap)
|
720 - | } else {
|
721 - | Vec::new()
|
722 - | };
|
723 - | deser.read_list(member, container, |mut list, deser| {
|
724 - | list.push(crate::types::ClientVpnAuthentication::deserialize(deser)?);
|
725 - | Ok(list)
|
726 - | })?
|
705 + | let mut container = Vec::new();
|
706 + | deser.read_list(member, &mut |deser| {
|
707 + | container.push(crate::types::ClientVpnAuthentication::deserialize(deser)?);
|
708 + | Ok(())
|
709 + | })?;
|
710 + | container
|
727 711 | });
|
728 712 | }
|
729 713 | Some(15) => {
|
730 714 | builder.connection_log_options = Some(crate::types::ConnectionLogResponseOptions::deserialize(deser)?);
|
731 715 | }
|
732 716 | Some(16) => {
|
733 717 | builder.tags = Some({
|
734 - | let container = if let Some(cap) = deser.container_size() {
|
735 - | Vec::with_capacity(cap)
|
736 - | } else {
|
737 - | Vec::new()
|
738 - | };
|
739 - | deser.read_list(member, container, |mut list, deser| {
|
740 - | list.push(crate::types::Tag::deserialize(deser)?);
|
741 - | Ok(list)
|
742 - | })?
|
718 + | let mut container = Vec::new();
|
719 + | deser.read_list(member, &mut |deser| {
|
720 + | container.push(crate::types::Tag::deserialize(deser)?);
|
721 + | Ok(())
|
722 + | })?;
|
723 + | container
|
743 724 | });
|
744 725 | }
|
745 726 | Some(17) => {
|
746 - | builder.security_group_ids = Some({
|
747 - | let container = if let Some(cap) = deser.container_size() {
|
748 - | Vec::with_capacity(cap)
|
749 - | } else {
|
750 - | Vec::new()
|
751 - | };
|
752 - | deser.read_list(member, container, |mut list, deser| {
|
753 - | list.push(deser.read_string(member)?);
|
754 - | Ok(list)
|
755 - | })?
|
756 - | });
|
727 + | builder.security_group_ids = Some(deser.read_string_list(member)?);
|
757 728 | }
|
758 729 | Some(18) => {
|
759 730 | builder.vpc_id = Some(deser.read_string(member)?);
|
760 731 | }
|
761 732 | Some(19) => {
|
762 733 | builder.self_service_portal_url = Some(deser.read_string(member)?);
|
763 734 | }
|
764 735 | Some(20) => {
|
765 736 | builder.client_connect_options = Some(crate::types::ClientConnectResponseOptions::deserialize(deser)?);
|
766 737 | }
|
767 738 | Some(21) => {
|
768 739 | builder.session_timeout_hours = Some(deser.read_integer(member)?);
|
769 740 | }
|
770 741 | Some(22) => {
|
771 742 | builder.client_login_banner_options = Some(crate::types::ClientLoginBannerResponseOptions::deserialize(deser)?);
|
772 743 | }
|
773 744 | Some(23) => {
|
774 745 | builder.client_route_enforcement_options = Some(crate::types::ClientRouteEnforcementResponseOptions::deserialize(deser)?);
|
775 746 | }
|
776 747 | Some(24) => {
|
777 748 | builder.disconnect_on_session_timeout = Some(deser.read_boolean(member)?);
|
778 749 | }
|
779 750 | Some(25) => {
|
780 751 | builder.endpoint_ip_address_type = Some(crate::types::EndpointIpAddressType::from(deser.read_string(member)?.as_str()));
|
781 752 | }
|
782 753 | Some(26) => {
|
783 754 | builder.traffic_ip_address_type = Some(crate::types::TrafficIpAddressType::from(deser.read_string(member)?.as_str()));
|
784 755 | }
|
785 756 | _ => {}
|
786 757 | }
|
787 758 | Ok(())
|
788 759 | })?;
|
789 760 | Ok(builder.build())
|
790 761 | }
|
791 762 | }
|
763 + | impl ClientVpnEndpoint {
|
764 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
765 + | pub fn deserialize_with_response(
|
766 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
767 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
768 + | _status: u16,
|
769 + | _body: &[u8],
|
770 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
771 + | Self::deserialize(deserializer)
|
772 + | }
|
773 + | }
|
792 774 | impl ClientVpnEndpoint {
|
793 775 | /// Creates a new builder-style object to manufacture [`ClientVpnEndpoint`](crate::types::ClientVpnEndpoint).
|
794 776 | pub fn builder() -> crate::types::builders::ClientVpnEndpointBuilder {
|
795 777 | crate::types::builders::ClientVpnEndpointBuilder::default()
|
796 778 | }
|
797 779 | }
|
798 780 |
|
799 781 | /// A builder for [`ClientVpnEndpoint`](crate::types::ClientVpnEndpoint).
|
800 782 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
801 783 | #[non_exhaustive]
|