165 165 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
166 166 | );
|
167 167 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_ASSOCIATE_CARRIER_IP_ADDRESS: ::aws_smithy_schema::Schema =
|
168 168 | ::aws_smithy_schema::Schema::new_member(
|
169 169 | ::aws_smithy_schema::ShapeId::from_static(
|
170 170 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$AssociateCarrierIpAddress",
|
171 171 | "com.amazonaws.ec2",
|
172 172 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
173 173 | ),
|
174 174 | ::aws_smithy_schema::ShapeType::Boolean,
|
175 - | "associate_carrier_ip_address",
|
175 + | "AssociateCarrierIpAddress",
|
176 176 | 0,
|
177 177 | )
|
178 178 | .with_xml_name("associateCarrierIpAddress");
|
179 179 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_ASSOCIATE_PUBLIC_IP_ADDRESS: ::aws_smithy_schema::Schema =
|
180 180 | ::aws_smithy_schema::Schema::new_member(
|
181 181 | ::aws_smithy_schema::ShapeId::from_static(
|
182 182 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$AssociatePublicIpAddress",
|
183 183 | "com.amazonaws.ec2",
|
184 184 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
185 185 | ),
|
186 186 | ::aws_smithy_schema::ShapeType::Boolean,
|
187 - | "associate_public_ip_address",
|
187 + | "AssociatePublicIpAddress",
|
188 188 | 1,
|
189 189 | )
|
190 190 | .with_xml_name("associatePublicIpAddress");
|
191 191 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_DELETE_ON_TERMINATION: ::aws_smithy_schema::Schema =
|
192 192 | ::aws_smithy_schema::Schema::new_member(
|
193 193 | ::aws_smithy_schema::ShapeId::from_static(
|
194 194 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$DeleteOnTermination",
|
195 195 | "com.amazonaws.ec2",
|
196 196 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
197 197 | ),
|
198 198 | ::aws_smithy_schema::ShapeType::Boolean,
|
199 - | "delete_on_termination",
|
199 + | "DeleteOnTermination",
|
200 200 | 2,
|
201 201 | )
|
202 202 | .with_xml_name("deleteOnTermination");
|
203 203 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
204 204 | ::aws_smithy_schema::ShapeId::from_static(
|
205 205 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$Description",
|
206 206 | "com.amazonaws.ec2",
|
207 207 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
208 208 | ),
|
209 209 | ::aws_smithy_schema::ShapeType::String,
|
210 - | "description",
|
210 + | "Description",
|
211 211 | 3,
|
212 212 | )
|
213 213 | .with_xml_name("description");
|
214 214 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_DEVICE_INDEX: ::aws_smithy_schema::Schema =
|
215 215 | ::aws_smithy_schema::Schema::new_member(
|
216 216 | ::aws_smithy_schema::ShapeId::from_static(
|
217 217 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$DeviceIndex",
|
218 218 | "com.amazonaws.ec2",
|
219 219 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
220 220 | ),
|
221 221 | ::aws_smithy_schema::ShapeType::Integer,
|
222 - | "device_index",
|
222 + | "DeviceIndex",
|
223 223 | 4,
|
224 224 | )
|
225 225 | .with_xml_name("deviceIndex");
|
226 226 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_GROUPS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
227 227 | ::aws_smithy_schema::ShapeId::from_static(
|
228 228 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$Groups",
|
229 229 | "com.amazonaws.ec2",
|
230 230 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
231 231 | ),
|
232 232 | ::aws_smithy_schema::ShapeType::List,
|
233 - | "groups",
|
233 + | "Groups",
|
234 234 | 5,
|
235 235 | )
|
236 236 | .with_xml_name("groupSet");
|
237 237 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_INTERFACE_TYPE: ::aws_smithy_schema::Schema =
|
238 238 | ::aws_smithy_schema::Schema::new_member(
|
239 239 | ::aws_smithy_schema::ShapeId::from_static(
|
240 240 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$InterfaceType",
|
241 241 | "com.amazonaws.ec2",
|
242 242 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
243 243 | ),
|
244 244 | ::aws_smithy_schema::ShapeType::String,
|
245 - | "interface_type",
|
245 + | "InterfaceType",
|
246 246 | 6,
|
247 247 | )
|
248 248 | .with_xml_name("interfaceType");
|
249 249 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_IPV6_ADDRESS_COUNT: ::aws_smithy_schema::Schema =
|
250 250 | ::aws_smithy_schema::Schema::new_member(
|
251 251 | ::aws_smithy_schema::ShapeId::from_static(
|
252 252 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$Ipv6AddressCount",
|
253 253 | "com.amazonaws.ec2",
|
254 254 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
255 255 | ),
|
256 256 | ::aws_smithy_schema::ShapeType::Integer,
|
257 - | "ipv6_address_count",
|
257 + | "Ipv6AddressCount",
|
258 258 | 7,
|
259 259 | )
|
260 260 | .with_xml_name("ipv6AddressCount");
|
261 261 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_IPV6_ADDRESSES: ::aws_smithy_schema::Schema =
|
262 262 | ::aws_smithy_schema::Schema::new_member(
|
263 263 | ::aws_smithy_schema::ShapeId::from_static(
|
264 264 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$Ipv6Addresses",
|
265 265 | "com.amazonaws.ec2",
|
266 266 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
267 267 | ),
|
268 268 | ::aws_smithy_schema::ShapeType::List,
|
269 - | "ipv6_addresses",
|
269 + | "Ipv6Addresses",
|
270 270 | 8,
|
271 271 | )
|
272 272 | .with_xml_name("ipv6AddressesSet");
|
273 273 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_NETWORK_INTERFACE_ID: ::aws_smithy_schema::Schema =
|
274 274 | ::aws_smithy_schema::Schema::new_member(
|
275 275 | ::aws_smithy_schema::ShapeId::from_static(
|
276 276 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$NetworkInterfaceId",
|
277 277 | "com.amazonaws.ec2",
|
278 278 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
279 279 | ),
|
280 280 | ::aws_smithy_schema::ShapeType::String,
|
281 - | "network_interface_id",
|
281 + | "NetworkInterfaceId",
|
282 282 | 9,
|
283 283 | )
|
284 284 | .with_xml_name("networkInterfaceId");
|
285 285 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_PRIVATE_IP_ADDRESS: ::aws_smithy_schema::Schema =
|
286 286 | ::aws_smithy_schema::Schema::new_member(
|
287 287 | ::aws_smithy_schema::ShapeId::from_static(
|
288 288 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$PrivateIpAddress",
|
289 289 | "com.amazonaws.ec2",
|
290 290 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
291 291 | ),
|
292 292 | ::aws_smithy_schema::ShapeType::String,
|
293 - | "private_ip_address",
|
293 + | "PrivateIpAddress",
|
294 294 | 10,
|
295 295 | )
|
296 296 | .with_xml_name("privateIpAddress");
|
297 297 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_PRIVATE_IP_ADDRESSES: ::aws_smithy_schema::Schema =
|
298 298 | ::aws_smithy_schema::Schema::new_member(
|
299 299 | ::aws_smithy_schema::ShapeId::from_static(
|
300 300 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$PrivateIpAddresses",
|
301 301 | "com.amazonaws.ec2",
|
302 302 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
303 303 | ),
|
304 304 | ::aws_smithy_schema::ShapeType::List,
|
305 - | "private_ip_addresses",
|
305 + | "PrivateIpAddresses",
|
306 306 | 11,
|
307 307 | )
|
308 308 | .with_xml_name("privateIpAddressesSet");
|
309 309 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_SECONDARY_PRIVATE_IP_ADDRESS_COUNT: ::aws_smithy_schema::Schema =
|
310 310 | ::aws_smithy_schema::Schema::new_member(
|
311 311 | ::aws_smithy_schema::ShapeId::from_static(
|
312 312 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$SecondaryPrivateIpAddressCount",
|
313 313 | "com.amazonaws.ec2",
|
314 314 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
315 315 | ),
|
316 316 | ::aws_smithy_schema::ShapeType::Integer,
|
317 - | "secondary_private_ip_address_count",
|
317 + | "SecondaryPrivateIpAddressCount",
|
318 318 | 12,
|
319 319 | )
|
320 320 | .with_xml_name("secondaryPrivateIpAddressCount");
|
321 321 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_SUBNET_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
322 322 | ::aws_smithy_schema::ShapeId::from_static(
|
323 323 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$SubnetId",
|
324 324 | "com.amazonaws.ec2",
|
325 325 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
326 326 | ),
|
327 327 | ::aws_smithy_schema::ShapeType::String,
|
328 - | "subnet_id",
|
328 + | "SubnetId",
|
329 329 | 13,
|
330 330 | )
|
331 331 | .with_xml_name("subnetId");
|
332 332 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_NETWORK_CARD_INDEX: ::aws_smithy_schema::Schema =
|
333 333 | ::aws_smithy_schema::Schema::new_member(
|
334 334 | ::aws_smithy_schema::ShapeId::from_static(
|
335 335 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$NetworkCardIndex",
|
336 336 | "com.amazonaws.ec2",
|
337 337 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
338 338 | ),
|
339 339 | ::aws_smithy_schema::ShapeType::Integer,
|
340 - | "network_card_index",
|
340 + | "NetworkCardIndex",
|
341 341 | 14,
|
342 342 | )
|
343 343 | .with_xml_name("networkCardIndex");
|
344 344 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_IPV4_PREFIXES: ::aws_smithy_schema::Schema =
|
345 345 | ::aws_smithy_schema::Schema::new_member(
|
346 346 | ::aws_smithy_schema::ShapeId::from_static(
|
347 347 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$Ipv4Prefixes",
|
348 348 | "com.amazonaws.ec2",
|
349 349 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
350 350 | ),
|
351 351 | ::aws_smithy_schema::ShapeType::List,
|
352 - | "ipv4_prefixes",
|
352 + | "Ipv4Prefixes",
|
353 353 | 15,
|
354 354 | )
|
355 355 | .with_xml_name("ipv4PrefixSet");
|
356 356 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_IPV4_PREFIX_COUNT: ::aws_smithy_schema::Schema =
|
357 357 | ::aws_smithy_schema::Schema::new_member(
|
358 358 | ::aws_smithy_schema::ShapeId::from_static(
|
359 359 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$Ipv4PrefixCount",
|
360 360 | "com.amazonaws.ec2",
|
361 361 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
362 362 | ),
|
363 363 | ::aws_smithy_schema::ShapeType::Integer,
|
364 - | "ipv4_prefix_count",
|
364 + | "Ipv4PrefixCount",
|
365 365 | 16,
|
366 366 | )
|
367 367 | .with_xml_name("ipv4PrefixCount");
|
368 368 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_IPV6_PREFIXES: ::aws_smithy_schema::Schema =
|
369 369 | ::aws_smithy_schema::Schema::new_member(
|
370 370 | ::aws_smithy_schema::ShapeId::from_static(
|
371 371 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$Ipv6Prefixes",
|
372 372 | "com.amazonaws.ec2",
|
373 373 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
374 374 | ),
|
375 375 | ::aws_smithy_schema::ShapeType::List,
|
376 - | "ipv6_prefixes",
|
376 + | "Ipv6Prefixes",
|
377 377 | 17,
|
378 378 | )
|
379 379 | .with_xml_name("ipv6PrefixSet");
|
380 380 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_IPV6_PREFIX_COUNT: ::aws_smithy_schema::Schema =
|
381 381 | ::aws_smithy_schema::Schema::new_member(
|
382 382 | ::aws_smithy_schema::ShapeId::from_static(
|
383 383 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$Ipv6PrefixCount",
|
384 384 | "com.amazonaws.ec2",
|
385 385 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
386 386 | ),
|
387 387 | ::aws_smithy_schema::ShapeType::Integer,
|
388 - | "ipv6_prefix_count",
|
388 + | "Ipv6PrefixCount",
|
389 389 | 18,
|
390 390 | )
|
391 391 | .with_xml_name("ipv6PrefixCount");
|
392 392 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_PRIMARY_IPV6: ::aws_smithy_schema::Schema =
|
393 393 | ::aws_smithy_schema::Schema::new_member(
|
394 394 | ::aws_smithy_schema::ShapeId::from_static(
|
395 395 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$PrimaryIpv6",
|
396 396 | "com.amazonaws.ec2",
|
397 397 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
398 398 | ),
|
399 399 | ::aws_smithy_schema::ShapeType::Boolean,
|
400 - | "primary_ipv6",
|
400 + | "PrimaryIpv6",
|
401 401 | 19,
|
402 402 | )
|
403 403 | .with_xml_name("primaryIpv6");
|
404 404 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_ENA_SRD_SPECIFICATION: ::aws_smithy_schema::Schema =
|
405 405 | ::aws_smithy_schema::Schema::new_member(
|
406 406 | ::aws_smithy_schema::ShapeId::from_static(
|
407 407 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$EnaSrdSpecification",
|
408 408 | "com.amazonaws.ec2",
|
409 409 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
410 410 | ),
|
411 411 | ::aws_smithy_schema::ShapeType::Structure,
|
412 - | "ena_srd_specification",
|
412 + | "EnaSrdSpecification",
|
413 413 | 20,
|
414 414 | )
|
415 415 | .with_xml_name("enaSrdSpecification");
|
416 416 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_CONNECTION_TRACKING_SPECIFICATION: ::aws_smithy_schema::Schema =
|
417 417 | ::aws_smithy_schema::Schema::new_member(
|
418 418 | ::aws_smithy_schema::ShapeId::from_static(
|
419 419 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$ConnectionTrackingSpecification",
|
420 420 | "com.amazonaws.ec2",
|
421 421 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
422 422 | ),
|
423 423 | ::aws_smithy_schema::ShapeType::Structure,
|
424 - | "connection_tracking_specification",
|
424 + | "ConnectionTrackingSpecification",
|
425 425 | 21,
|
426 426 | )
|
427 427 | .with_xml_name("connectionTrackingSpecification");
|
428 428 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_ENA_QUEUE_COUNT: ::aws_smithy_schema::Schema =
|
429 429 | ::aws_smithy_schema::Schema::new_member(
|
430 430 | ::aws_smithy_schema::ShapeId::from_static(
|
431 431 | "com.amazonaws.ec2#LaunchTemplateInstanceNetworkInterfaceSpecification$EnaQueueCount",
|
432 432 | "com.amazonaws.ec2",
|
433 433 | "LaunchTemplateInstanceNetworkInterfaceSpecification",
|
434 434 | ),
|
435 435 | ::aws_smithy_schema::ShapeType::Integer,
|
436 - | "ena_queue_count",
|
436 + | "EnaQueueCount",
|
437 437 | 22,
|
438 438 | )
|
439 439 | .with_xml_name("enaQueueCount");
|
440 440 | static LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
441 441 | LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_SCHEMA_ID,
|
442 442 | ::aws_smithy_schema::ShapeType::Structure,
|
443 443 | &[
|
444 444 | &LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_ASSOCIATE_CARRIER_IP_ADDRESS,
|
445 445 | &LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_ASSOCIATE_PUBLIC_IP_ADDRESS,
|
446 446 | &LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_DELETE_ON_TERMINATION,
|
595 595 | )?;
|
596 596 | }
|
597 597 | if let Some(ref val) = self.ena_queue_count {
|
598 598 | ser.write_integer(&LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_MEMBER_ENA_QUEUE_COUNT, *val)?;
|
599 599 | }
|
600 600 | Ok(())
|
601 601 | }
|
602 602 | }
|
603 603 | impl LaunchTemplateInstanceNetworkInterfaceSpecification {
|
604 604 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
605 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
606 - | deserializer: &mut D,
|
605 + | pub fn deserialize(
|
606 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
607 607 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
608 608 | #[allow(unused_variables, unused_mut)]
|
609 609 | let mut builder = Self::builder();
|
610 610 | #[allow(
|
611 611 | unused_variables,
|
612 612 | unreachable_code,
|
613 613 | clippy::single_match,
|
614 614 | clippy::match_single_binding,
|
615 615 | clippy::diverging_sub_expression
|
616 616 | )]
|
617 - | deserializer.read_struct(&LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_SCHEMA, (), |_, member, deser| {
|
617 + | deserializer.read_struct(&LAUNCHTEMPLATEINSTANCENETWORKINTERFACESPECIFICATION_SCHEMA, &mut |member, deser| {
|
618 618 | match member.member_index() {
|
619 619 | Some(0) => {
|
620 620 | builder.associate_carrier_ip_address = Some(deser.read_boolean(member)?);
|
621 621 | }
|
622 622 | Some(1) => {
|
623 623 | builder.associate_public_ip_address = Some(deser.read_boolean(member)?);
|
624 624 | }
|
625 625 | Some(2) => {
|
626 626 | builder.delete_on_termination = Some(deser.read_boolean(member)?);
|
627 627 | }
|
628 628 | Some(3) => {
|
629 629 | builder.description = Some(deser.read_string(member)?);
|
630 630 | }
|
631 631 | Some(4) => {
|
632 632 | builder.device_index = Some(deser.read_integer(member)?);
|
633 633 | }
|
634 634 | Some(5) => {
|
635 - | builder.groups = Some({
|
636 - | let container = if let Some(cap) = deser.container_size() {
|
637 - | Vec::with_capacity(cap)
|
638 - | } else {
|
639 - | Vec::new()
|
640 - | };
|
641 - | deser.read_list(member, container, |mut list, deser| {
|
642 - | list.push(deser.read_string(member)?);
|
643 - | Ok(list)
|
644 - | })?
|
645 - | });
|
635 + | builder.groups = Some(deser.read_string_list(member)?);
|
646 636 | }
|
647 637 | Some(6) => {
|
648 638 | builder.interface_type = Some(deser.read_string(member)?);
|
649 639 | }
|
650 640 | Some(7) => {
|
651 641 | builder.ipv6_address_count = Some(deser.read_integer(member)?);
|
652 642 | }
|
653 643 | Some(8) => {
|
654 644 | builder.ipv6_addresses = Some({
|
655 - | let container = if let Some(cap) = deser.container_size() {
|
656 - | Vec::with_capacity(cap)
|
657 - | } else {
|
658 - | Vec::new()
|
659 - | };
|
660 - | deser.read_list(member, container, |mut list, deser| {
|
661 - | list.push(crate::types::InstanceIpv6Address::deserialize(deser)?);
|
662 - | Ok(list)
|
663 - | })?
|
645 + | let mut container = Vec::new();
|
646 + | deser.read_list(member, &mut |deser| {
|
647 + | container.push(crate::types::InstanceIpv6Address::deserialize(deser)?);
|
648 + | Ok(())
|
649 + | })?;
|
650 + | container
|
664 651 | });
|
665 652 | }
|
666 653 | Some(9) => {
|
667 654 | builder.network_interface_id = Some(deser.read_string(member)?);
|
668 655 | }
|
669 656 | Some(10) => {
|
670 657 | builder.private_ip_address = Some(deser.read_string(member)?);
|
671 658 | }
|
672 659 | Some(11) => {
|
673 660 | builder.private_ip_addresses = Some({
|
674 - | let container = if let Some(cap) = deser.container_size() {
|
675 - | Vec::with_capacity(cap)
|
676 - | } else {
|
677 - | Vec::new()
|
678 - | };
|
679 - | deser.read_list(member, container, |mut list, deser| {
|
680 - | list.push(crate::types::PrivateIpAddressSpecification::deserialize(deser)?);
|
681 - | Ok(list)
|
682 - | })?
|
661 + | let mut container = Vec::new();
|
662 + | deser.read_list(member, &mut |deser| {
|
663 + | container.push(crate::types::PrivateIpAddressSpecification::deserialize(deser)?);
|
664 + | Ok(())
|
665 + | })?;
|
666 + | container
|
683 667 | });
|
684 668 | }
|
685 669 | Some(12) => {
|
686 670 | builder.secondary_private_ip_address_count = Some(deser.read_integer(member)?);
|
687 671 | }
|
688 672 | Some(13) => {
|
689 673 | builder.subnet_id = Some(deser.read_string(member)?);
|
690 674 | }
|
691 675 | Some(14) => {
|
692 676 | builder.network_card_index = Some(deser.read_integer(member)?);
|
693 677 | }
|
694 678 | Some(15) => {
|
695 679 | builder.ipv4_prefixes = Some({
|
696 - | let container = if let Some(cap) = deser.container_size() {
|
697 - | Vec::with_capacity(cap)
|
698 - | } else {
|
699 - | Vec::new()
|
700 - | };
|
701 - | deser.read_list(member, container, |mut list, deser| {
|
702 - | list.push(crate::types::Ipv4PrefixSpecificationResponse::deserialize(deser)?);
|
703 - | Ok(list)
|
704 - | })?
|
680 + | let mut container = Vec::new();
|
681 + | deser.read_list(member, &mut |deser| {
|
682 + | container.push(crate::types::Ipv4PrefixSpecificationResponse::deserialize(deser)?);
|
683 + | Ok(())
|
684 + | })?;
|
685 + | container
|
705 686 | });
|
706 687 | }
|
707 688 | Some(16) => {
|
708 689 | builder.ipv4_prefix_count = Some(deser.read_integer(member)?);
|
709 690 | }
|
710 691 | Some(17) => {
|
711 692 | builder.ipv6_prefixes = Some({
|
712 - | let container = if let Some(cap) = deser.container_size() {
|
713 - | Vec::with_capacity(cap)
|
714 - | } else {
|
715 - | Vec::new()
|
716 - | };
|
717 - | deser.read_list(member, container, |mut list, deser| {
|
718 - | list.push(crate::types::Ipv6PrefixSpecificationResponse::deserialize(deser)?);
|
719 - | Ok(list)
|
720 - | })?
|
693 + | let mut container = Vec::new();
|
694 + | deser.read_list(member, &mut |deser| {
|
695 + | container.push(crate::types::Ipv6PrefixSpecificationResponse::deserialize(deser)?);
|
696 + | Ok(())
|
697 + | })?;
|
698 + | container
|
721 699 | });
|
722 700 | }
|
723 701 | Some(18) => {
|
724 702 | builder.ipv6_prefix_count = Some(deser.read_integer(member)?);
|
725 703 | }
|
726 704 | Some(19) => {
|
727 705 | builder.primary_ipv6 = Some(deser.read_boolean(member)?);
|
728 706 | }
|
729 707 | Some(20) => {
|
730 708 | builder.ena_srd_specification = Some(crate::types::LaunchTemplateEnaSrdSpecification::deserialize(deser)?);
|
731 709 | }
|
732 710 | Some(21) => {
|
733 711 | builder.connection_tracking_specification = Some(crate::types::ConnectionTrackingSpecification::deserialize(deser)?);
|
734 712 | }
|
735 713 | Some(22) => {
|
736 714 | builder.ena_queue_count = Some(deser.read_integer(member)?);
|
737 715 | }
|
738 716 | _ => {}
|
739 717 | }
|
740 718 | Ok(())
|
741 719 | })?;
|
742 720 | Ok(builder.build())
|
743 721 | }
|
744 722 | }
|
723 + | impl LaunchTemplateInstanceNetworkInterfaceSpecification {
|
724 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
725 + | pub fn deserialize_with_response(
|
726 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
727 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
728 + | _status: u16,
|
729 + | _body: &[u8],
|
730 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
731 + | Self::deserialize(deserializer)
|
732 + | }
|
733 + | }
|
745 734 | impl LaunchTemplateInstanceNetworkInterfaceSpecification {
|
746 735 | /// Creates a new builder-style object to manufacture [`LaunchTemplateInstanceNetworkInterfaceSpecification`](crate::types::LaunchTemplateInstanceNetworkInterfaceSpecification).
|
747 736 | pub fn builder() -> crate::types::builders::LaunchTemplateInstanceNetworkInterfaceSpecificationBuilder {
|
748 737 | crate::types::builders::LaunchTemplateInstanceNetworkInterfaceSpecificationBuilder::default()
|
749 738 | }
|
750 739 | }
|
751 740 |
|
752 741 | /// A builder for [`LaunchTemplateInstanceNetworkInterfaceSpecification`](crate::types::LaunchTemplateInstanceNetworkInterfaceSpecification).
|
753 742 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
754 743 | #[non_exhaustive]
|