191 191 | "com.amazonaws.ec2.synthetic",
|
192 192 | "CreateClientVpnEndpointInput",
|
193 193 | );
|
194 194 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_CLIENT_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
195 195 | ::aws_smithy_schema::ShapeId::from_static(
|
196 196 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$ClientCidrBlock",
|
197 197 | "com.amazonaws.ec2.synthetic",
|
198 198 | "CreateClientVpnEndpointInput",
|
199 199 | ),
|
200 200 | ::aws_smithy_schema::ShapeType::String,
|
201 - | "client_cidr_block",
|
201 + | "ClientCidrBlock",
|
202 202 | 0,
|
203 203 | );
|
204 204 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_SERVER_CERTIFICATE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
205 205 | ::aws_smithy_schema::ShapeId::from_static(
|
206 206 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$ServerCertificateArn",
|
207 207 | "com.amazonaws.ec2.synthetic",
|
208 208 | "CreateClientVpnEndpointInput",
|
209 209 | ),
|
210 210 | ::aws_smithy_schema::ShapeType::String,
|
211 - | "server_certificate_arn",
|
211 + | "ServerCertificateArn",
|
212 212 | 1,
|
213 213 | );
|
214 214 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_AUTHENTICATION_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
215 215 | ::aws_smithy_schema::ShapeId::from_static(
|
216 216 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$AuthenticationOptions",
|
217 217 | "com.amazonaws.ec2.synthetic",
|
218 218 | "CreateClientVpnEndpointInput",
|
219 219 | ),
|
220 220 | ::aws_smithy_schema::ShapeType::List,
|
221 - | "authentication_options",
|
221 + | "AuthenticationOptions",
|
222 222 | 2,
|
223 223 | )
|
224 224 | .with_xml_name("Authentication");
|
225 225 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_CONNECTION_LOG_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
226 226 | ::aws_smithy_schema::ShapeId::from_static(
|
227 227 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$ConnectionLogOptions",
|
228 228 | "com.amazonaws.ec2.synthetic",
|
229 229 | "CreateClientVpnEndpointInput",
|
230 230 | ),
|
231 231 | ::aws_smithy_schema::ShapeType::Structure,
|
232 - | "connection_log_options",
|
232 + | "ConnectionLogOptions",
|
233 233 | 3,
|
234 234 | );
|
235 235 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_DNS_SERVERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
236 236 | ::aws_smithy_schema::ShapeId::from_static(
|
237 237 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$DnsServers",
|
238 238 | "com.amazonaws.ec2.synthetic",
|
239 239 | "CreateClientVpnEndpointInput",
|
240 240 | ),
|
241 241 | ::aws_smithy_schema::ShapeType::List,
|
242 - | "dns_servers",
|
242 + | "DnsServers",
|
243 243 | 4,
|
244 244 | );
|
245 245 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_TRANSPORT_PROTOCOL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
246 246 | ::aws_smithy_schema::ShapeId::from_static(
|
247 247 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$TransportProtocol",
|
248 248 | "com.amazonaws.ec2.synthetic",
|
249 249 | "CreateClientVpnEndpointInput",
|
250 250 | ),
|
251 251 | ::aws_smithy_schema::ShapeType::String,
|
252 - | "transport_protocol",
|
252 + | "TransportProtocol",
|
253 253 | 5,
|
254 254 | );
|
255 255 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_VPN_PORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
256 256 | ::aws_smithy_schema::ShapeId::from_static(
|
257 257 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$VpnPort",
|
258 258 | "com.amazonaws.ec2.synthetic",
|
259 259 | "CreateClientVpnEndpointInput",
|
260 260 | ),
|
261 261 | ::aws_smithy_schema::ShapeType::Integer,
|
262 - | "vpn_port",
|
262 + | "VpnPort",
|
263 263 | 6,
|
264 264 | );
|
265 265 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
266 266 | ::aws_smithy_schema::ShapeId::from_static(
|
267 267 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$Description",
|
268 268 | "com.amazonaws.ec2.synthetic",
|
269 269 | "CreateClientVpnEndpointInput",
|
270 270 | ),
|
271 271 | ::aws_smithy_schema::ShapeType::String,
|
272 - | "description",
|
272 + | "Description",
|
273 273 | 7,
|
274 274 | );
|
275 275 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_SPLIT_TUNNEL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
276 276 | ::aws_smithy_schema::ShapeId::from_static(
|
277 277 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$SplitTunnel",
|
278 278 | "com.amazonaws.ec2.synthetic",
|
279 279 | "CreateClientVpnEndpointInput",
|
280 280 | ),
|
281 281 | ::aws_smithy_schema::ShapeType::Boolean,
|
282 - | "split_tunnel",
|
282 + | "SplitTunnel",
|
283 283 | 8,
|
284 284 | );
|
285 285 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
286 286 | ::aws_smithy_schema::ShapeId::from_static(
|
287 287 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$DryRun",
|
288 288 | "com.amazonaws.ec2.synthetic",
|
289 289 | "CreateClientVpnEndpointInput",
|
290 290 | ),
|
291 291 | ::aws_smithy_schema::ShapeType::Boolean,
|
292 - | "dry_run",
|
292 + | "DryRun",
|
293 293 | 9,
|
294 294 | );
|
295 295 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
296 296 | ::aws_smithy_schema::ShapeId::from_static(
|
297 297 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$ClientToken",
|
298 298 | "com.amazonaws.ec2.synthetic",
|
299 299 | "CreateClientVpnEndpointInput",
|
300 300 | ),
|
301 301 | ::aws_smithy_schema::ShapeType::String,
|
302 - | "client_token",
|
302 + | "ClientToken",
|
303 303 | 10,
|
304 304 | );
|
305 305 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
306 306 | ::aws_smithy_schema::ShapeId::from_static(
|
307 307 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$TagSpecifications",
|
308 308 | "com.amazonaws.ec2.synthetic",
|
309 309 | "CreateClientVpnEndpointInput",
|
310 310 | ),
|
311 311 | ::aws_smithy_schema::ShapeType::List,
|
312 - | "tag_specifications",
|
312 + | "TagSpecifications",
|
313 313 | 11,
|
314 314 | )
|
315 315 | .with_xml_name("TagSpecification");
|
316 316 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_SECURITY_GROUP_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
317 317 | ::aws_smithy_schema::ShapeId::from_static(
|
318 318 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$SecurityGroupIds",
|
319 319 | "com.amazonaws.ec2.synthetic",
|
320 320 | "CreateClientVpnEndpointInput",
|
321 321 | ),
|
322 322 | ::aws_smithy_schema::ShapeType::List,
|
323 - | "security_group_ids",
|
323 + | "SecurityGroupIds",
|
324 324 | 12,
|
325 325 | )
|
326 326 | .with_xml_name("SecurityGroupId");
|
327 327 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_VPC_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
328 328 | ::aws_smithy_schema::ShapeId::from_static(
|
329 329 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$VpcId",
|
330 330 | "com.amazonaws.ec2.synthetic",
|
331 331 | "CreateClientVpnEndpointInput",
|
332 332 | ),
|
333 333 | ::aws_smithy_schema::ShapeType::String,
|
334 - | "vpc_id",
|
334 + | "VpcId",
|
335 335 | 13,
|
336 336 | );
|
337 337 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_SELF_SERVICE_PORTAL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
338 338 | ::aws_smithy_schema::ShapeId::from_static(
|
339 339 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$SelfServicePortal",
|
340 340 | "com.amazonaws.ec2.synthetic",
|
341 341 | "CreateClientVpnEndpointInput",
|
342 342 | ),
|
343 343 | ::aws_smithy_schema::ShapeType::String,
|
344 - | "self_service_portal",
|
344 + | "SelfServicePortal",
|
345 345 | 14,
|
346 346 | );
|
347 347 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_CLIENT_CONNECT_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
348 348 | ::aws_smithy_schema::ShapeId::from_static(
|
349 349 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$ClientConnectOptions",
|
350 350 | "com.amazonaws.ec2.synthetic",
|
351 351 | "CreateClientVpnEndpointInput",
|
352 352 | ),
|
353 353 | ::aws_smithy_schema::ShapeType::Structure,
|
354 - | "client_connect_options",
|
354 + | "ClientConnectOptions",
|
355 355 | 15,
|
356 356 | );
|
357 357 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_SESSION_TIMEOUT_HOURS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
358 358 | ::aws_smithy_schema::ShapeId::from_static(
|
359 359 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$SessionTimeoutHours",
|
360 360 | "com.amazonaws.ec2.synthetic",
|
361 361 | "CreateClientVpnEndpointInput",
|
362 362 | ),
|
363 363 | ::aws_smithy_schema::ShapeType::Integer,
|
364 - | "session_timeout_hours",
|
364 + | "SessionTimeoutHours",
|
365 365 | 16,
|
366 366 | );
|
367 367 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_CLIENT_LOGIN_BANNER_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
368 368 | ::aws_smithy_schema::ShapeId::from_static(
|
369 369 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$ClientLoginBannerOptions",
|
370 370 | "com.amazonaws.ec2.synthetic",
|
371 371 | "CreateClientVpnEndpointInput",
|
372 372 | ),
|
373 373 | ::aws_smithy_schema::ShapeType::Structure,
|
374 - | "client_login_banner_options",
|
374 + | "ClientLoginBannerOptions",
|
375 375 | 17,
|
376 376 | );
|
377 377 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_CLIENT_ROUTE_ENFORCEMENT_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
378 378 | ::aws_smithy_schema::ShapeId::from_static(
|
379 379 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$ClientRouteEnforcementOptions",
|
380 380 | "com.amazonaws.ec2.synthetic",
|
381 381 | "CreateClientVpnEndpointInput",
|
382 382 | ),
|
383 383 | ::aws_smithy_schema::ShapeType::Structure,
|
384 - | "client_route_enforcement_options",
|
384 + | "ClientRouteEnforcementOptions",
|
385 385 | 18,
|
386 386 | );
|
387 387 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_DISCONNECT_ON_SESSION_TIMEOUT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
388 388 | ::aws_smithy_schema::ShapeId::from_static(
|
389 389 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$DisconnectOnSessionTimeout",
|
390 390 | "com.amazonaws.ec2.synthetic",
|
391 391 | "CreateClientVpnEndpointInput",
|
392 392 | ),
|
393 393 | ::aws_smithy_schema::ShapeType::Boolean,
|
394 - | "disconnect_on_session_timeout",
|
394 + | "DisconnectOnSessionTimeout",
|
395 395 | 19,
|
396 396 | );
|
397 397 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_ENDPOINT_IP_ADDRESS_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
398 398 | ::aws_smithy_schema::ShapeId::from_static(
|
399 399 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$EndpointIpAddressType",
|
400 400 | "com.amazonaws.ec2.synthetic",
|
401 401 | "CreateClientVpnEndpointInput",
|
402 402 | ),
|
403 403 | ::aws_smithy_schema::ShapeType::String,
|
404 - | "endpoint_ip_address_type",
|
404 + | "EndpointIpAddressType",
|
405 405 | 20,
|
406 406 | );
|
407 407 | static CREATECLIENTVPNENDPOINTINPUT_MEMBER_TRAFFIC_IP_ADDRESS_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
408 408 | ::aws_smithy_schema::ShapeId::from_static(
|
409 409 | "com.amazonaws.ec2.synthetic#CreateClientVpnEndpointInput$TrafficIpAddressType",
|
410 410 | "com.amazonaws.ec2.synthetic",
|
411 411 | "CreateClientVpnEndpointInput",
|
412 412 | ),
|
413 413 | ::aws_smithy_schema::ShapeType::String,
|
414 - | "traffic_ip_address_type",
|
414 + | "TrafficIpAddressType",
|
415 415 | 21,
|
416 416 | );
|
417 417 | static CREATECLIENTVPNENDPOINTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
418 418 | CREATECLIENTVPNENDPOINTINPUT_SCHEMA_ID,
|
419 419 | ::aws_smithy_schema::ShapeType::Structure,
|
420 420 | &[
|
421 421 | &CREATECLIENTVPNENDPOINTINPUT_MEMBER_CLIENT_CIDR_BLOCK,
|
422 422 | &CREATECLIENTVPNENDPOINTINPUT_MEMBER_SERVER_CERTIFICATE_ARN,
|
423 423 | &CREATECLIENTVPNENDPOINTINPUT_MEMBER_AUTHENTICATION_OPTIONS,
|
424 424 | &CREATECLIENTVPNENDPOINTINPUT_MEMBER_CONNECTION_LOG_OPTIONS,
|
548 548 | ser.write_string(&CREATECLIENTVPNENDPOINTINPUT_MEMBER_ENDPOINT_IP_ADDRESS_TYPE, val.as_str())?;
|
549 549 | }
|
550 550 | if let Some(ref val) = self.traffic_ip_address_type {
|
551 551 | ser.write_string(&CREATECLIENTVPNENDPOINTINPUT_MEMBER_TRAFFIC_IP_ADDRESS_TYPE, val.as_str())?;
|
552 552 | }
|
553 553 | Ok(())
|
554 554 | }
|
555 555 | }
|
556 556 | impl CreateClientVpnEndpointInput {
|
557 557 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
558 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
559 - | deserializer: &mut D,
|
558 + | pub fn deserialize(
|
559 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
560 560 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
561 561 | #[allow(unused_variables, unused_mut)]
|
562 562 | let mut builder = Self::builder();
|
563 563 | #[allow(
|
564 564 | unused_variables,
|
565 565 | unreachable_code,
|
566 566 | clippy::single_match,
|
567 567 | clippy::match_single_binding,
|
568 568 | clippy::diverging_sub_expression
|
569 569 | )]
|
570 - | deserializer.read_struct(&CREATECLIENTVPNENDPOINTINPUT_SCHEMA, (), |_, member, deser| {
|
570 + | deserializer.read_struct(&CREATECLIENTVPNENDPOINTINPUT_SCHEMA, &mut |member, deser| {
|
571 571 | match member.member_index() {
|
572 572 | Some(0) => {
|
573 573 | builder.client_cidr_block = Some(deser.read_string(member)?);
|
574 574 | }
|
575 575 | Some(1) => {
|
576 576 | builder.server_certificate_arn = Some(deser.read_string(member)?);
|
577 577 | }
|
578 578 | Some(2) => {
|
579 579 | builder.authentication_options = Some({
|
580 - | let container = if let Some(cap) = deser.container_size() {
|
581 - | Vec::with_capacity(cap)
|
582 - | } else {
|
583 - | Vec::new()
|
584 - | };
|
585 - | deser.read_list(member, container, |mut list, deser| {
|
586 - | list.push(crate::types::ClientVpnAuthenticationRequest::deserialize(deser)?);
|
587 - | Ok(list)
|
588 - | })?
|
580 + | let mut container = Vec::new();
|
581 + | deser.read_list(member, &mut |deser| {
|
582 + | container.push(crate::types::ClientVpnAuthenticationRequest::deserialize(deser)?);
|
583 + | Ok(())
|
584 + | })?;
|
585 + | container
|
589 586 | });
|
590 587 | }
|
591 588 | Some(3) => {
|
592 589 | builder.connection_log_options = Some(crate::types::ConnectionLogOptions::deserialize(deser)?);
|
593 590 | }
|
594 591 | Some(4) => {
|
595 - | builder.dns_servers = Some({
|
596 - | let container = if let Some(cap) = deser.container_size() {
|
597 - | Vec::with_capacity(cap)
|
598 - | } else {
|
599 - | Vec::new()
|
600 - | };
|
601 - | deser.read_list(member, container, |mut list, deser| {
|
602 - | list.push(deser.read_string(member)?);
|
603 - | Ok(list)
|
604 - | })?
|
605 - | });
|
592 + | builder.dns_servers = Some(deser.read_string_list(member)?);
|
606 593 | }
|
607 594 | Some(5) => {
|
608 595 | builder.transport_protocol = Some(crate::types::TransportProtocol::from(deser.read_string(member)?.as_str()));
|
609 596 | }
|
610 597 | Some(6) => {
|
611 598 | builder.vpn_port = Some(deser.read_integer(member)?);
|
612 599 | }
|
613 600 | Some(7) => {
|
614 601 | builder.description = Some(deser.read_string(member)?);
|
615 602 | }
|
616 603 | Some(8) => {
|
617 604 | builder.split_tunnel = Some(deser.read_boolean(member)?);
|
618 605 | }
|
619 606 | Some(9) => {
|
620 607 | builder.dry_run = Some(deser.read_boolean(member)?);
|
621 608 | }
|
622 609 | Some(10) => {
|
623 610 | builder.client_token = Some(deser.read_string(member)?);
|
624 611 | }
|
625 612 | Some(11) => {
|
626 613 | builder.tag_specifications = Some({
|
627 - | let container = if let Some(cap) = deser.container_size() {
|
628 - | Vec::with_capacity(cap)
|
629 - | } else {
|
630 - | Vec::new()
|
631 - | };
|
632 - | deser.read_list(member, container, |mut list, deser| {
|
633 - | list.push(crate::types::TagSpecification::deserialize(deser)?);
|
634 - | Ok(list)
|
635 - | })?
|
614 + | let mut container = Vec::new();
|
615 + | deser.read_list(member, &mut |deser| {
|
616 + | container.push(crate::types::TagSpecification::deserialize(deser)?);
|
617 + | Ok(())
|
618 + | })?;
|
619 + | container
|
636 620 | });
|
637 621 | }
|
638 622 | Some(12) => {
|
639 - | builder.security_group_ids = Some({
|
640 - | let container = if let Some(cap) = deser.container_size() {
|
641 - | Vec::with_capacity(cap)
|
642 - | } else {
|
643 - | Vec::new()
|
644 - | };
|
645 - | deser.read_list(member, container, |mut list, deser| {
|
646 - | list.push(deser.read_string(member)?);
|
647 - | Ok(list)
|
648 - | })?
|
649 - | });
|
623 + | builder.security_group_ids = Some(deser.read_string_list(member)?);
|
650 624 | }
|
651 625 | Some(13) => {
|
652 626 | builder.vpc_id = Some(deser.read_string(member)?);
|
653 627 | }
|
654 628 | Some(14) => {
|
655 629 | builder.self_service_portal = Some(crate::types::SelfServicePortal::from(deser.read_string(member)?.as_str()));
|
656 630 | }
|
657 631 | Some(15) => {
|
658 632 | builder.client_connect_options = Some(crate::types::ClientConnectOptions::deserialize(deser)?);
|
659 633 | }
|
660 634 | Some(16) => {
|
661 635 | builder.session_timeout_hours = Some(deser.read_integer(member)?);
|
662 636 | }
|
663 637 | Some(17) => {
|
664 638 | builder.client_login_banner_options = Some(crate::types::ClientLoginBannerOptions::deserialize(deser)?);
|
665 639 | }
|
666 640 | Some(18) => {
|
667 641 | builder.client_route_enforcement_options = Some(crate::types::ClientRouteEnforcementOptions::deserialize(deser)?);
|
668 642 | }
|
669 643 | Some(19) => {
|
670 644 | builder.disconnect_on_session_timeout = Some(deser.read_boolean(member)?);
|
671 645 | }
|
672 646 | Some(20) => {
|
673 647 | builder.endpoint_ip_address_type = Some(crate::types::EndpointIpAddressType::from(deser.read_string(member)?.as_str()));
|
674 648 | }
|
675 649 | Some(21) => {
|
676 650 | builder.traffic_ip_address_type = Some(crate::types::TrafficIpAddressType::from(deser.read_string(member)?.as_str()));
|
677 651 | }
|
678 652 | _ => {}
|
679 653 | }
|
680 654 | Ok(())
|
681 655 | })?;
|
656 + | builder.server_certificate_arn = builder.server_certificate_arn.or(Some(String::new()));
|
657 + | builder.authentication_options = builder.authentication_options.or(Some(Vec::new()));
|
682 658 | builder
|
683 659 | .build()
|
684 660 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
685 661 | }
|
686 662 | }
|
663 + | impl CreateClientVpnEndpointInput {
|
664 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
665 + | pub fn deserialize_with_response(
|
666 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
667 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
668 + | _status: u16,
|
669 + | _body: &[u8],
|
670 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
671 + | Self::deserialize(deserializer)
|
672 + | }
|
673 + | }
|
687 674 | impl CreateClientVpnEndpointInput {
|
688 675 | /// Creates a new builder-style object to manufacture [`CreateClientVpnEndpointInput`](crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointInput).
|
689 676 | pub fn builder() -> crate::operation::create_client_vpn_endpoint::builders::CreateClientVpnEndpointInputBuilder {
|
690 677 | crate::operation::create_client_vpn_endpoint::builders::CreateClientVpnEndpointInputBuilder::default()
|
691 678 | }
|
692 679 | }
|
693 680 |
|
694 681 | /// A builder for [`CreateClientVpnEndpointInput`](crate::operation::create_client_vpn_endpoint::CreateClientVpnEndpointInput).
|
695 682 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
696 683 | #[non_exhaustive]
|