171 171 | /// <p>The Region where the service is hosted.</p>
|
172 172 | pub fn service_region(&self) -> ::std::option::Option<&str> {
|
173 173 | self.service_region.as_deref()
|
174 174 | }
|
175 175 | }
|
176 176 | static VPCENDPOINT_SCHEMA_ID: ::aws_smithy_schema::ShapeId =
|
177 177 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint", "com.amazonaws.ec2", "VpcEndpoint");
|
178 178 | static VPCENDPOINT_MEMBER_VPC_ENDPOINT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
179 179 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$VpcEndpointId", "com.amazonaws.ec2", "VpcEndpoint"),
|
180 180 | ::aws_smithy_schema::ShapeType::String,
|
181 - | "vpc_endpoint_id",
|
181 + | "VpcEndpointId",
|
182 182 | 0,
|
183 183 | )
|
184 184 | .with_xml_name("vpcEndpointId");
|
185 185 | static VPCENDPOINT_MEMBER_VPC_ENDPOINT_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
186 186 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$VpcEndpointType", "com.amazonaws.ec2", "VpcEndpoint"),
|
187 187 | ::aws_smithy_schema::ShapeType::String,
|
188 - | "vpc_endpoint_type",
|
188 + | "VpcEndpointType",
|
189 189 | 1,
|
190 190 | )
|
191 191 | .with_xml_name("vpcEndpointType");
|
192 192 | static VPCENDPOINT_MEMBER_VPC_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
193 193 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$VpcId", "com.amazonaws.ec2", "VpcEndpoint"),
|
194 194 | ::aws_smithy_schema::ShapeType::String,
|
195 - | "vpc_id",
|
195 + | "VpcId",
|
196 196 | 2,
|
197 197 | )
|
198 198 | .with_xml_name("vpcId");
|
199 199 | static VPCENDPOINT_MEMBER_SERVICE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
200 200 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$ServiceName", "com.amazonaws.ec2", "VpcEndpoint"),
|
201 201 | ::aws_smithy_schema::ShapeType::String,
|
202 - | "service_name",
|
202 + | "ServiceName",
|
203 203 | 3,
|
204 204 | )
|
205 205 | .with_xml_name("serviceName");
|
206 206 | static VPCENDPOINT_MEMBER_STATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
207 207 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$State", "com.amazonaws.ec2", "VpcEndpoint"),
|
208 208 | ::aws_smithy_schema::ShapeType::String,
|
209 - | "state",
|
209 + | "State",
|
210 210 | 4,
|
211 211 | )
|
212 212 | .with_xml_name("state");
|
213 213 | static VPCENDPOINT_MEMBER_POLICY_DOCUMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
214 214 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$PolicyDocument", "com.amazonaws.ec2", "VpcEndpoint"),
|
215 215 | ::aws_smithy_schema::ShapeType::String,
|
216 - | "policy_document",
|
216 + | "PolicyDocument",
|
217 217 | 5,
|
218 218 | )
|
219 219 | .with_xml_name("policyDocument");
|
220 220 | static VPCENDPOINT_MEMBER_ROUTE_TABLE_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
221 221 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$RouteTableIds", "com.amazonaws.ec2", "VpcEndpoint"),
|
222 222 | ::aws_smithy_schema::ShapeType::List,
|
223 - | "route_table_ids",
|
223 + | "RouteTableIds",
|
224 224 | 6,
|
225 225 | )
|
226 226 | .with_xml_name("routeTableIdSet");
|
227 227 | static VPCENDPOINT_MEMBER_SUBNET_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
228 228 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$SubnetIds", "com.amazonaws.ec2", "VpcEndpoint"),
|
229 229 | ::aws_smithy_schema::ShapeType::List,
|
230 - | "subnet_ids",
|
230 + | "SubnetIds",
|
231 231 | 7,
|
232 232 | )
|
233 233 | .with_xml_name("subnetIdSet");
|
234 234 | static VPCENDPOINT_MEMBER_GROUPS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
235 235 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$Groups", "com.amazonaws.ec2", "VpcEndpoint"),
|
236 236 | ::aws_smithy_schema::ShapeType::List,
|
237 - | "groups",
|
237 + | "Groups",
|
238 238 | 8,
|
239 239 | )
|
240 240 | .with_xml_name("groupSet");
|
241 241 | static VPCENDPOINT_MEMBER_IP_ADDRESS_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
242 242 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$IpAddressType", "com.amazonaws.ec2", "VpcEndpoint"),
|
243 243 | ::aws_smithy_schema::ShapeType::String,
|
244 - | "ip_address_type",
|
244 + | "IpAddressType",
|
245 245 | 9,
|
246 246 | )
|
247 247 | .with_xml_name("ipAddressType");
|
248 248 | static VPCENDPOINT_MEMBER_DNS_OPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
249 249 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$DnsOptions", "com.amazonaws.ec2", "VpcEndpoint"),
|
250 250 | ::aws_smithy_schema::ShapeType::Structure,
|
251 - | "dns_options",
|
251 + | "DnsOptions",
|
252 252 | 10,
|
253 253 | )
|
254 254 | .with_xml_name("dnsOptions");
|
255 255 | static VPCENDPOINT_MEMBER_PRIVATE_DNS_ENABLED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
256 256 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$PrivateDnsEnabled", "com.amazonaws.ec2", "VpcEndpoint"),
|
257 257 | ::aws_smithy_schema::ShapeType::Boolean,
|
258 - | "private_dns_enabled",
|
258 + | "PrivateDnsEnabled",
|
259 259 | 11,
|
260 260 | )
|
261 261 | .with_xml_name("privateDnsEnabled");
|
262 262 | static VPCENDPOINT_MEMBER_REQUESTER_MANAGED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
263 263 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$RequesterManaged", "com.amazonaws.ec2", "VpcEndpoint"),
|
264 264 | ::aws_smithy_schema::ShapeType::Boolean,
|
265 - | "requester_managed",
|
265 + | "RequesterManaged",
|
266 266 | 12,
|
267 267 | )
|
268 268 | .with_xml_name("requesterManaged");
|
269 269 | static VPCENDPOINT_MEMBER_NETWORK_INTERFACE_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
270 270 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$NetworkInterfaceIds", "com.amazonaws.ec2", "VpcEndpoint"),
|
271 271 | ::aws_smithy_schema::ShapeType::List,
|
272 - | "network_interface_ids",
|
272 + | "NetworkInterfaceIds",
|
273 273 | 13,
|
274 274 | )
|
275 275 | .with_xml_name("networkInterfaceIdSet");
|
276 276 | static VPCENDPOINT_MEMBER_DNS_ENTRIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
277 277 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$DnsEntries", "com.amazonaws.ec2", "VpcEndpoint"),
|
278 278 | ::aws_smithy_schema::ShapeType::List,
|
279 - | "dns_entries",
|
279 + | "DnsEntries",
|
280 280 | 14,
|
281 281 | )
|
282 282 | .with_xml_name("dnsEntrySet");
|
283 283 | static VPCENDPOINT_MEMBER_CREATION_TIMESTAMP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
284 284 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$CreationTimestamp", "com.amazonaws.ec2", "VpcEndpoint"),
|
285 285 | ::aws_smithy_schema::ShapeType::Timestamp,
|
286 - | "creation_timestamp",
|
286 + | "CreationTimestamp",
|
287 287 | 15,
|
288 288 | )
|
289 289 | .with_xml_name("creationTimestamp");
|
290 290 | static VPCENDPOINT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
291 291 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$Tags", "com.amazonaws.ec2", "VpcEndpoint"),
|
292 292 | ::aws_smithy_schema::ShapeType::List,
|
293 - | "tags",
|
293 + | "Tags",
|
294 294 | 16,
|
295 295 | )
|
296 296 | .with_xml_name("tagSet");
|
297 297 | static VPCENDPOINT_MEMBER_OWNER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
298 298 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$OwnerId", "com.amazonaws.ec2", "VpcEndpoint"),
|
299 299 | ::aws_smithy_schema::ShapeType::String,
|
300 - | "owner_id",
|
300 + | "OwnerId",
|
301 301 | 17,
|
302 302 | )
|
303 303 | .with_xml_name("ownerId");
|
304 304 | static VPCENDPOINT_MEMBER_LAST_ERROR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
305 305 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$LastError", "com.amazonaws.ec2", "VpcEndpoint"),
|
306 306 | ::aws_smithy_schema::ShapeType::Structure,
|
307 - | "last_error",
|
307 + | "LastError",
|
308 308 | 18,
|
309 309 | )
|
310 310 | .with_xml_name("lastError");
|
311 311 | static VPCENDPOINT_MEMBER_IPV4_PREFIXES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
312 312 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$Ipv4Prefixes", "com.amazonaws.ec2", "VpcEndpoint"),
|
313 313 | ::aws_smithy_schema::ShapeType::List,
|
314 - | "ipv4_prefixes",
|
314 + | "Ipv4Prefixes",
|
315 315 | 19,
|
316 316 | )
|
317 317 | .with_xml_name("ipv4PrefixSet");
|
318 318 | static VPCENDPOINT_MEMBER_IPV6_PREFIXES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
319 319 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$Ipv6Prefixes", "com.amazonaws.ec2", "VpcEndpoint"),
|
320 320 | ::aws_smithy_schema::ShapeType::List,
|
321 - | "ipv6_prefixes",
|
321 + | "Ipv6Prefixes",
|
322 322 | 20,
|
323 323 | )
|
324 324 | .with_xml_name("ipv6PrefixSet");
|
325 325 | static VPCENDPOINT_MEMBER_FAILURE_REASON: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
326 326 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$FailureReason", "com.amazonaws.ec2", "VpcEndpoint"),
|
327 327 | ::aws_smithy_schema::ShapeType::String,
|
328 - | "failure_reason",
|
328 + | "FailureReason",
|
329 329 | 21,
|
330 330 | )
|
331 331 | .with_xml_name("failureReason");
|
332 332 | static VPCENDPOINT_MEMBER_SERVICE_NETWORK_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
333 333 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$ServiceNetworkArn", "com.amazonaws.ec2", "VpcEndpoint"),
|
334 334 | ::aws_smithy_schema::ShapeType::String,
|
335 - | "service_network_arn",
|
335 + | "ServiceNetworkArn",
|
336 336 | 22,
|
337 337 | )
|
338 338 | .with_xml_name("serviceNetworkArn");
|
339 339 | static VPCENDPOINT_MEMBER_RESOURCE_CONFIGURATION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
340 340 | ::aws_smithy_schema::ShapeId::from_static(
|
341 341 | "com.amazonaws.ec2#VpcEndpoint$ResourceConfigurationArn",
|
342 342 | "com.amazonaws.ec2",
|
343 343 | "VpcEndpoint",
|
344 344 | ),
|
345 345 | ::aws_smithy_schema::ShapeType::String,
|
346 - | "resource_configuration_arn",
|
346 + | "ResourceConfigurationArn",
|
347 347 | 23,
|
348 348 | )
|
349 349 | .with_xml_name("resourceConfigurationArn");
|
350 350 | static VPCENDPOINT_MEMBER_SERVICE_REGION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
351 351 | ::aws_smithy_schema::ShapeId::from_static("com.amazonaws.ec2#VpcEndpoint$ServiceRegion", "com.amazonaws.ec2", "VpcEndpoint"),
|
352 352 | ::aws_smithy_schema::ShapeType::String,
|
353 - | "service_region",
|
353 + | "ServiceRegion",
|
354 354 | 24,
|
355 355 | )
|
356 356 | .with_xml_name("serviceRegion");
|
357 357 | static VPCENDPOINT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
358 358 | VPCENDPOINT_SCHEMA_ID,
|
359 359 | ::aws_smithy_schema::ShapeType::Structure,
|
360 360 | &[
|
361 361 | &VPCENDPOINT_MEMBER_VPC_ENDPOINT_ID,
|
362 362 | &VPCENDPOINT_MEMBER_VPC_ENDPOINT_TYPE,
|
363 363 | &VPCENDPOINT_MEMBER_VPC_ID,
|
529 529 | ser.write_string(&VPCENDPOINT_MEMBER_RESOURCE_CONFIGURATION_ARN, val)?;
|
530 530 | }
|
531 531 | if let Some(ref val) = self.service_region {
|
532 532 | ser.write_string(&VPCENDPOINT_MEMBER_SERVICE_REGION, val)?;
|
533 533 | }
|
534 534 | Ok(())
|
535 535 | }
|
536 536 | }
|
537 537 | impl VpcEndpoint {
|
538 538 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
539 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
540 - | deserializer: &mut D,
|
539 + | pub fn deserialize(
|
540 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
541 541 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
542 542 | #[allow(unused_variables, unused_mut)]
|
543 543 | let mut builder = Self::builder();
|
544 544 | #[allow(
|
545 545 | unused_variables,
|
546 546 | unreachable_code,
|
547 547 | clippy::single_match,
|
548 548 | clippy::match_single_binding,
|
549 549 | clippy::diverging_sub_expression
|
550 550 | )]
|
551 - | deserializer.read_struct(&VPCENDPOINT_SCHEMA, (), |_, member, deser| {
|
551 + | deserializer.read_struct(&VPCENDPOINT_SCHEMA, &mut |member, deser| {
|
552 552 | match member.member_index() {
|
553 553 | Some(0) => {
|
554 554 | builder.vpc_endpoint_id = Some(deser.read_string(member)?);
|
555 555 | }
|
556 556 | Some(1) => {
|
557 557 | builder.vpc_endpoint_type = Some(crate::types::VpcEndpointType::from(deser.read_string(member)?.as_str()));
|
558 558 | }
|
559 559 | Some(2) => {
|
560 560 | builder.vpc_id = Some(deser.read_string(member)?);
|
561 561 | }
|
562 562 | Some(3) => {
|
563 563 | builder.service_name = Some(deser.read_string(member)?);
|
564 564 | }
|
565 565 | Some(4) => {
|
566 566 | builder.state = Some(crate::types::State::from(deser.read_string(member)?.as_str()));
|
567 567 | }
|
568 568 | Some(5) => {
|
569 569 | builder.policy_document = Some(deser.read_string(member)?);
|
570 570 | }
|
571 571 | Some(6) => {
|
572 - | builder.route_table_ids = Some({
|
573 - | let container = if let Some(cap) = deser.container_size() {
|
574 - | Vec::with_capacity(cap)
|
575 - | } else {
|
576 - | Vec::new()
|
577 - | };
|
578 - | deser.read_list(member, container, |mut list, deser| {
|
579 - | list.push(deser.read_string(member)?);
|
580 - | Ok(list)
|
581 - | })?
|
582 - | });
|
572 + | builder.route_table_ids = Some(deser.read_string_list(member)?);
|
583 573 | }
|
584 574 | Some(7) => {
|
585 - | builder.subnet_ids = Some({
|
586 - | let container = if let Some(cap) = deser.container_size() {
|
587 - | Vec::with_capacity(cap)
|
588 - | } else {
|
589 - | Vec::new()
|
590 - | };
|
591 - | deser.read_list(member, container, |mut list, deser| {
|
592 - | list.push(deser.read_string(member)?);
|
593 - | Ok(list)
|
594 - | })?
|
595 - | });
|
575 + | builder.subnet_ids = Some(deser.read_string_list(member)?);
|
596 576 | }
|
597 577 | Some(8) => {
|
598 578 | builder.groups = Some({
|
599 - | let container = if let Some(cap) = deser.container_size() {
|
600 - | Vec::with_capacity(cap)
|
601 - | } else {
|
602 - | Vec::new()
|
603 - | };
|
604 - | deser.read_list(member, container, |mut list, deser| {
|
605 - | list.push(crate::types::SecurityGroupIdentifier::deserialize(deser)?);
|
606 - | Ok(list)
|
607 - | })?
|
579 + | let mut container = Vec::new();
|
580 + | deser.read_list(member, &mut |deser| {
|
581 + | container.push(crate::types::SecurityGroupIdentifier::deserialize(deser)?);
|
582 + | Ok(())
|
583 + | })?;
|
584 + | container
|
608 585 | });
|
609 586 | }
|
610 587 | Some(9) => {
|
611 588 | builder.ip_address_type = Some(crate::types::IpAddressType::from(deser.read_string(member)?.as_str()));
|
612 589 | }
|
613 590 | Some(10) => {
|
614 591 | builder.dns_options = Some(crate::types::DnsOptions::deserialize(deser)?);
|
615 592 | }
|
616 593 | Some(11) => {
|
617 594 | builder.private_dns_enabled = Some(deser.read_boolean(member)?);
|
618 595 | }
|
619 596 | Some(12) => {
|
620 597 | builder.requester_managed = Some(deser.read_boolean(member)?);
|
621 598 | }
|
622 599 | Some(13) => {
|
623 - | builder.network_interface_ids = Some({
|
624 - | let container = if let Some(cap) = deser.container_size() {
|
625 - | Vec::with_capacity(cap)
|
626 - | } else {
|
627 - | Vec::new()
|
628 - | };
|
629 - | deser.read_list(member, container, |mut list, deser| {
|
630 - | list.push(deser.read_string(member)?);
|
631 - | Ok(list)
|
632 - | })?
|
633 - | });
|
600 + | builder.network_interface_ids = Some(deser.read_string_list(member)?);
|
634 601 | }
|
635 602 | Some(14) => {
|
636 603 | builder.dns_entries = Some({
|
637 - | let container = if let Some(cap) = deser.container_size() {
|
638 - | Vec::with_capacity(cap)
|
639 - | } else {
|
640 - | Vec::new()
|
641 - | };
|
642 - | deser.read_list(member, container, |mut list, deser| {
|
643 - | list.push(crate::types::DnsEntry::deserialize(deser)?);
|
644 - | Ok(list)
|
645 - | })?
|
604 + | let mut container = Vec::new();
|
605 + | deser.read_list(member, &mut |deser| {
|
606 + | container.push(crate::types::DnsEntry::deserialize(deser)?);
|
607 + | Ok(())
|
608 + | })?;
|
609 + | container
|
646 610 | });
|
647 611 | }
|
648 612 | Some(15) => {
|
649 613 | builder.creation_timestamp = Some(deser.read_timestamp(member)?);
|
650 614 | }
|
651 615 | Some(16) => {
|
652 616 | builder.tags = Some({
|
653 - | let container = if let Some(cap) = deser.container_size() {
|
654 - | Vec::with_capacity(cap)
|
655 - | } else {
|
656 - | Vec::new()
|
657 - | };
|
658 - | deser.read_list(member, container, |mut list, deser| {
|
659 - | list.push(crate::types::Tag::deserialize(deser)?);
|
660 - | Ok(list)
|
661 - | })?
|
617 + | let mut container = Vec::new();
|
618 + | deser.read_list(member, &mut |deser| {
|
619 + | container.push(crate::types::Tag::deserialize(deser)?);
|
620 + | Ok(())
|
621 + | })?;
|
622 + | container
|
662 623 | });
|
663 624 | }
|
664 625 | Some(17) => {
|
665 626 | builder.owner_id = Some(deser.read_string(member)?);
|
666 627 | }
|
667 628 | Some(18) => {
|
668 629 | builder.last_error = Some(crate::types::LastError::deserialize(deser)?);
|
669 630 | }
|
670 631 | Some(19) => {
|
671 632 | builder.ipv4_prefixes = Some({
|
672 - | let container = if let Some(cap) = deser.container_size() {
|
673 - | Vec::with_capacity(cap)
|
674 - | } else {
|
675 - | Vec::new()
|
676 - | };
|
677 - | deser.read_list(member, container, |mut list, deser| {
|
678 - | list.push(crate::types::SubnetIpPrefixes::deserialize(deser)?);
|
679 - | Ok(list)
|
680 - | })?
|
633 + | let mut container = Vec::new();
|
634 + | deser.read_list(member, &mut |deser| {
|
635 + | container.push(crate::types::SubnetIpPrefixes::deserialize(deser)?);
|
636 + | Ok(())
|
637 + | })?;
|
638 + | container
|
681 639 | });
|
682 640 | }
|
683 641 | Some(20) => {
|
684 642 | builder.ipv6_prefixes = Some({
|
685 - | let container = if let Some(cap) = deser.container_size() {
|
686 - | Vec::with_capacity(cap)
|
687 - | } else {
|
688 - | Vec::new()
|
689 - | };
|
690 - | deser.read_list(member, container, |mut list, deser| {
|
691 - | list.push(crate::types::SubnetIpPrefixes::deserialize(deser)?);
|
692 - | Ok(list)
|
693 - | })?
|
643 + | let mut container = Vec::new();
|
644 + | deser.read_list(member, &mut |deser| {
|
645 + | container.push(crate::types::SubnetIpPrefixes::deserialize(deser)?);
|
646 + | Ok(())
|
647 + | })?;
|
648 + | container
|
694 649 | });
|
695 650 | }
|
696 651 | Some(21) => {
|
697 652 | builder.failure_reason = Some(deser.read_string(member)?);
|
698 653 | }
|
699 654 | Some(22) => {
|
700 655 | builder.service_network_arn = Some(deser.read_string(member)?);
|
701 656 | }
|
702 657 | Some(23) => {
|
703 658 | builder.resource_configuration_arn = Some(deser.read_string(member)?);
|
704 659 | }
|
705 660 | Some(24) => {
|
706 661 | builder.service_region = Some(deser.read_string(member)?);
|
707 662 | }
|
708 663 | _ => {}
|
709 664 | }
|
710 665 | Ok(())
|
711 666 | })?;
|
712 667 | Ok(builder.build())
|
713 668 | }
|
714 669 | }
|
670 + | impl VpcEndpoint {
|
671 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
672 + | pub fn deserialize_with_response(
|
673 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
674 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
675 + | _status: u16,
|
676 + | _body: &[u8],
|
677 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
678 + | Self::deserialize(deserializer)
|
679 + | }
|
680 + | }
|
715 681 | impl VpcEndpoint {
|
716 682 | /// Creates a new builder-style object to manufacture [`VpcEndpoint`](crate::types::VpcEndpoint).
|
717 683 | pub fn builder() -> crate::types::builders::VpcEndpointBuilder {
|
718 684 | crate::types::builders::VpcEndpointBuilder::default()
|
719 685 | }
|
720 686 | }
|
721 687 |
|
722 688 | /// A builder for [`VpcEndpoint`](crate::types::VpcEndpoint).
|
723 689 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
724 690 | #[non_exhaustive]
|