181 181 | "com.amazonaws.ec2.synthetic",
|
182 182 | "CreateSnapshotOutput",
|
183 183 | );
|
184 184 | static CREATESNAPSHOTOUTPUT_MEMBER_OWNER_ALIAS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
185 185 | ::aws_smithy_schema::ShapeId::from_static(
|
186 186 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$OwnerAlias",
|
187 187 | "com.amazonaws.ec2.synthetic",
|
188 188 | "CreateSnapshotOutput",
|
189 189 | ),
|
190 190 | ::aws_smithy_schema::ShapeType::String,
|
191 - | "owner_alias",
|
191 + | "OwnerAlias",
|
192 192 | 0,
|
193 193 | )
|
194 194 | .with_xml_name("ownerAlias");
|
195 195 | static CREATESNAPSHOTOUTPUT_MEMBER_OUTPOST_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
196 196 | ::aws_smithy_schema::ShapeId::from_static(
|
197 197 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$OutpostArn",
|
198 198 | "com.amazonaws.ec2.synthetic",
|
199 199 | "CreateSnapshotOutput",
|
200 200 | ),
|
201 201 | ::aws_smithy_schema::ShapeType::String,
|
202 - | "outpost_arn",
|
202 + | "OutpostArn",
|
203 203 | 1,
|
204 204 | )
|
205 205 | .with_xml_name("outpostArn");
|
206 206 | static CREATESNAPSHOTOUTPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
207 207 | ::aws_smithy_schema::ShapeId::from_static(
|
208 208 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$Tags",
|
209 209 | "com.amazonaws.ec2.synthetic",
|
210 210 | "CreateSnapshotOutput",
|
211 211 | ),
|
212 212 | ::aws_smithy_schema::ShapeType::List,
|
213 - | "tags",
|
213 + | "Tags",
|
214 214 | 2,
|
215 215 | )
|
216 216 | .with_xml_name("tagSet");
|
217 217 | static CREATESNAPSHOTOUTPUT_MEMBER_STORAGE_TIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
218 218 | ::aws_smithy_schema::ShapeId::from_static(
|
219 219 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$StorageTier",
|
220 220 | "com.amazonaws.ec2.synthetic",
|
221 221 | "CreateSnapshotOutput",
|
222 222 | ),
|
223 223 | ::aws_smithy_schema::ShapeType::String,
|
224 - | "storage_tier",
|
224 + | "StorageTier",
|
225 225 | 3,
|
226 226 | )
|
227 227 | .with_xml_name("storageTier");
|
228 228 | static CREATESNAPSHOTOUTPUT_MEMBER_RESTORE_EXPIRY_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
229 229 | ::aws_smithy_schema::ShapeId::from_static(
|
230 230 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$RestoreExpiryTime",
|
231 231 | "com.amazonaws.ec2.synthetic",
|
232 232 | "CreateSnapshotOutput",
|
233 233 | ),
|
234 234 | ::aws_smithy_schema::ShapeType::Timestamp,
|
235 - | "restore_expiry_time",
|
235 + | "RestoreExpiryTime",
|
236 236 | 4,
|
237 237 | )
|
238 238 | .with_xml_name("restoreExpiryTime");
|
239 239 | static CREATESNAPSHOTOUTPUT_MEMBER_SSE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
240 240 | ::aws_smithy_schema::ShapeId::from_static(
|
241 241 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$SseType",
|
242 242 | "com.amazonaws.ec2.synthetic",
|
243 243 | "CreateSnapshotOutput",
|
244 244 | ),
|
245 245 | ::aws_smithy_schema::ShapeType::String,
|
246 - | "sse_type",
|
246 + | "SseType",
|
247 247 | 5,
|
248 248 | )
|
249 249 | .with_xml_name("sseType");
|
250 250 | static CREATESNAPSHOTOUTPUT_MEMBER_AVAILABILITY_ZONE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
251 251 | ::aws_smithy_schema::ShapeId::from_static(
|
252 252 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$AvailabilityZone",
|
253 253 | "com.amazonaws.ec2.synthetic",
|
254 254 | "CreateSnapshotOutput",
|
255 255 | ),
|
256 256 | ::aws_smithy_schema::ShapeType::String,
|
257 - | "availability_zone",
|
257 + | "AvailabilityZone",
|
258 258 | 6,
|
259 259 | )
|
260 260 | .with_xml_name("availabilityZone");
|
261 261 | static CREATESNAPSHOTOUTPUT_MEMBER_TRANSFER_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
262 262 | ::aws_smithy_schema::ShapeId::from_static(
|
263 263 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$TransferType",
|
264 264 | "com.amazonaws.ec2.synthetic",
|
265 265 | "CreateSnapshotOutput",
|
266 266 | ),
|
267 267 | ::aws_smithy_schema::ShapeType::String,
|
268 - | "transfer_type",
|
268 + | "TransferType",
|
269 269 | 7,
|
270 270 | )
|
271 271 | .with_xml_name("transferType");
|
272 272 | static CREATESNAPSHOTOUTPUT_MEMBER_COMPLETION_DURATION_MINUTES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
273 273 | ::aws_smithy_schema::ShapeId::from_static(
|
274 274 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$CompletionDurationMinutes",
|
275 275 | "com.amazonaws.ec2.synthetic",
|
276 276 | "CreateSnapshotOutput",
|
277 277 | ),
|
278 278 | ::aws_smithy_schema::ShapeType::Integer,
|
279 - | "completion_duration_minutes",
|
279 + | "CompletionDurationMinutes",
|
280 280 | 8,
|
281 281 | )
|
282 282 | .with_xml_name("completionDurationMinutes");
|
283 283 | static CREATESNAPSHOTOUTPUT_MEMBER_COMPLETION_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
284 284 | ::aws_smithy_schema::ShapeId::from_static(
|
285 285 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$CompletionTime",
|
286 286 | "com.amazonaws.ec2.synthetic",
|
287 287 | "CreateSnapshotOutput",
|
288 288 | ),
|
289 289 | ::aws_smithy_schema::ShapeType::Timestamp,
|
290 - | "completion_time",
|
290 + | "CompletionTime",
|
291 291 | 9,
|
292 292 | )
|
293 293 | .with_xml_name("completionTime");
|
294 294 | static CREATESNAPSHOTOUTPUT_MEMBER_FULL_SNAPSHOT_SIZE_IN_BYTES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
295 295 | ::aws_smithy_schema::ShapeId::from_static(
|
296 296 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$FullSnapshotSizeInBytes",
|
297 297 | "com.amazonaws.ec2.synthetic",
|
298 298 | "CreateSnapshotOutput",
|
299 299 | ),
|
300 300 | ::aws_smithy_schema::ShapeType::Long,
|
301 - | "full_snapshot_size_in_bytes",
|
301 + | "FullSnapshotSizeInBytes",
|
302 302 | 10,
|
303 303 | )
|
304 304 | .with_xml_name("fullSnapshotSizeInBytes");
|
305 305 | static CREATESNAPSHOTOUTPUT_MEMBER_SNAPSHOT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
306 306 | ::aws_smithy_schema::ShapeId::from_static(
|
307 307 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$SnapshotId",
|
308 308 | "com.amazonaws.ec2.synthetic",
|
309 309 | "CreateSnapshotOutput",
|
310 310 | ),
|
311 311 | ::aws_smithy_schema::ShapeType::String,
|
312 - | "snapshot_id",
|
312 + | "SnapshotId",
|
313 313 | 11,
|
314 314 | )
|
315 315 | .with_xml_name("snapshotId");
|
316 316 | static CREATESNAPSHOTOUTPUT_MEMBER_VOLUME_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
317 317 | ::aws_smithy_schema::ShapeId::from_static(
|
318 318 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$VolumeId",
|
319 319 | "com.amazonaws.ec2.synthetic",
|
320 320 | "CreateSnapshotOutput",
|
321 321 | ),
|
322 322 | ::aws_smithy_schema::ShapeType::String,
|
323 - | "volume_id",
|
323 + | "VolumeId",
|
324 324 | 12,
|
325 325 | )
|
326 326 | .with_xml_name("volumeId");
|
327 327 | static CREATESNAPSHOTOUTPUT_MEMBER_STATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
328 328 | ::aws_smithy_schema::ShapeId::from_static(
|
329 329 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$State",
|
330 330 | "com.amazonaws.ec2.synthetic",
|
331 331 | "CreateSnapshotOutput",
|
332 332 | ),
|
333 333 | ::aws_smithy_schema::ShapeType::String,
|
334 - | "state",
|
334 + | "State",
|
335 335 | 13,
|
336 336 | )
|
337 337 | .with_xml_name("status");
|
338 338 | static CREATESNAPSHOTOUTPUT_MEMBER_STATE_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
339 339 | ::aws_smithy_schema::ShapeId::from_static(
|
340 340 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$StateMessage",
|
341 341 | "com.amazonaws.ec2.synthetic",
|
342 342 | "CreateSnapshotOutput",
|
343 343 | ),
|
344 344 | ::aws_smithy_schema::ShapeType::String,
|
345 - | "state_message",
|
345 + | "StateMessage",
|
346 346 | 14,
|
347 347 | )
|
348 348 | .with_xml_name("statusMessage");
|
349 349 | static CREATESNAPSHOTOUTPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
350 350 | ::aws_smithy_schema::ShapeId::from_static(
|
351 351 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$StartTime",
|
352 352 | "com.amazonaws.ec2.synthetic",
|
353 353 | "CreateSnapshotOutput",
|
354 354 | ),
|
355 355 | ::aws_smithy_schema::ShapeType::Timestamp,
|
356 - | "start_time",
|
356 + | "StartTime",
|
357 357 | 15,
|
358 358 | )
|
359 359 | .with_xml_name("startTime");
|
360 360 | static CREATESNAPSHOTOUTPUT_MEMBER_PROGRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
361 361 | ::aws_smithy_schema::ShapeId::from_static(
|
362 362 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$Progress",
|
363 363 | "com.amazonaws.ec2.synthetic",
|
364 364 | "CreateSnapshotOutput",
|
365 365 | ),
|
366 366 | ::aws_smithy_schema::ShapeType::String,
|
367 - | "progress",
|
367 + | "Progress",
|
368 368 | 16,
|
369 369 | )
|
370 370 | .with_xml_name("progress");
|
371 371 | static CREATESNAPSHOTOUTPUT_MEMBER_OWNER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
372 372 | ::aws_smithy_schema::ShapeId::from_static(
|
373 373 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$OwnerId",
|
374 374 | "com.amazonaws.ec2.synthetic",
|
375 375 | "CreateSnapshotOutput",
|
376 376 | ),
|
377 377 | ::aws_smithy_schema::ShapeType::String,
|
378 - | "owner_id",
|
378 + | "OwnerId",
|
379 379 | 17,
|
380 380 | )
|
381 381 | .with_xml_name("ownerId");
|
382 382 | static CREATESNAPSHOTOUTPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
383 383 | ::aws_smithy_schema::ShapeId::from_static(
|
384 384 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$Description",
|
385 385 | "com.amazonaws.ec2.synthetic",
|
386 386 | "CreateSnapshotOutput",
|
387 387 | ),
|
388 388 | ::aws_smithy_schema::ShapeType::String,
|
389 - | "description",
|
389 + | "Description",
|
390 390 | 18,
|
391 391 | )
|
392 392 | .with_xml_name("description");
|
393 393 | static CREATESNAPSHOTOUTPUT_MEMBER_VOLUME_SIZE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
394 394 | ::aws_smithy_schema::ShapeId::from_static(
|
395 395 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$VolumeSize",
|
396 396 | "com.amazonaws.ec2.synthetic",
|
397 397 | "CreateSnapshotOutput",
|
398 398 | ),
|
399 399 | ::aws_smithy_schema::ShapeType::Integer,
|
400 - | "volume_size",
|
400 + | "VolumeSize",
|
401 401 | 19,
|
402 402 | )
|
403 403 | .with_xml_name("volumeSize");
|
404 404 | static CREATESNAPSHOTOUTPUT_MEMBER_ENCRYPTED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
405 405 | ::aws_smithy_schema::ShapeId::from_static(
|
406 406 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$Encrypted",
|
407 407 | "com.amazonaws.ec2.synthetic",
|
408 408 | "CreateSnapshotOutput",
|
409 409 | ),
|
410 410 | ::aws_smithy_schema::ShapeType::Boolean,
|
411 - | "encrypted",
|
411 + | "Encrypted",
|
412 412 | 20,
|
413 413 | )
|
414 414 | .with_xml_name("encrypted");
|
415 415 | static CREATESNAPSHOTOUTPUT_MEMBER_KMS_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
416 416 | ::aws_smithy_schema::ShapeId::from_static(
|
417 417 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$KmsKeyId",
|
418 418 | "com.amazonaws.ec2.synthetic",
|
419 419 | "CreateSnapshotOutput",
|
420 420 | ),
|
421 421 | ::aws_smithy_schema::ShapeType::String,
|
422 - | "kms_key_id",
|
422 + | "KmsKeyId",
|
423 423 | 21,
|
424 424 | )
|
425 425 | .with_xml_name("kmsKeyId");
|
426 426 | static CREATESNAPSHOTOUTPUT_MEMBER_DATA_ENCRYPTION_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
427 427 | ::aws_smithy_schema::ShapeId::from_static(
|
428 428 | "com.amazonaws.ec2.synthetic#CreateSnapshotOutput$DataEncryptionKeyId",
|
429 429 | "com.amazonaws.ec2.synthetic",
|
430 430 | "CreateSnapshotOutput",
|
431 431 | ),
|
432 432 | ::aws_smithy_schema::ShapeType::String,
|
433 - | "data_encryption_key_id",
|
433 + | "DataEncryptionKeyId",
|
434 434 | 22,
|
435 435 | )
|
436 436 | .with_xml_name("dataEncryptionKeyId");
|
437 + | static CREATESNAPSHOTOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
438 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
439 + | ::aws_smithy_schema::ShapeType::String,
|
440 + | "request_id",
|
441 + | 23,
|
442 + | )
|
443 + | .with_http_header("x-amzn-requestid");
|
437 444 | static CREATESNAPSHOTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
438 445 | CREATESNAPSHOTOUTPUT_SCHEMA_ID,
|
439 446 | ::aws_smithy_schema::ShapeType::Structure,
|
440 447 | &[
|
441 448 | &CREATESNAPSHOTOUTPUT_MEMBER_OWNER_ALIAS,
|
442 449 | &CREATESNAPSHOTOUTPUT_MEMBER_OUTPOST_ARN,
|
443 450 | &CREATESNAPSHOTOUTPUT_MEMBER_TAGS,
|
444 451 | &CREATESNAPSHOTOUTPUT_MEMBER_STORAGE_TIER,
|
445 452 | &CREATESNAPSHOTOUTPUT_MEMBER_RESTORE_EXPIRY_TIME,
|
446 453 | &CREATESNAPSHOTOUTPUT_MEMBER_SSE_TYPE,
|
447 454 | &CREATESNAPSHOTOUTPUT_MEMBER_AVAILABILITY_ZONE,
|
448 455 | &CREATESNAPSHOTOUTPUT_MEMBER_TRANSFER_TYPE,
|
449 456 | &CREATESNAPSHOTOUTPUT_MEMBER_COMPLETION_DURATION_MINUTES,
|
450 457 | &CREATESNAPSHOTOUTPUT_MEMBER_COMPLETION_TIME,
|
451 458 | &CREATESNAPSHOTOUTPUT_MEMBER_FULL_SNAPSHOT_SIZE_IN_BYTES,
|
452 459 | &CREATESNAPSHOTOUTPUT_MEMBER_SNAPSHOT_ID,
|
453 460 | &CREATESNAPSHOTOUTPUT_MEMBER_VOLUME_ID,
|
454 461 | &CREATESNAPSHOTOUTPUT_MEMBER_STATE,
|
455 462 | &CREATESNAPSHOTOUTPUT_MEMBER_STATE_MESSAGE,
|
456 463 | &CREATESNAPSHOTOUTPUT_MEMBER_START_TIME,
|
457 464 | &CREATESNAPSHOTOUTPUT_MEMBER_PROGRESS,
|
458 465 | &CREATESNAPSHOTOUTPUT_MEMBER_OWNER_ID,
|
459 466 | &CREATESNAPSHOTOUTPUT_MEMBER_DESCRIPTION,
|
460 467 | &CREATESNAPSHOTOUTPUT_MEMBER_VOLUME_SIZE,
|
461 468 | &CREATESNAPSHOTOUTPUT_MEMBER_ENCRYPTED,
|
462 469 | &CREATESNAPSHOTOUTPUT_MEMBER_KMS_KEY_ID,
|
463 470 | &CREATESNAPSHOTOUTPUT_MEMBER_DATA_ENCRYPTION_KEY_ID,
|
471 + | &CREATESNAPSHOTOUTPUT_MEMBER__REQUEST_ID,
|
464 472 | ],
|
465 473 | );
|
466 474 | impl CreateSnapshotOutput {
|
467 475 | /// The schema for this shape.
|
468 476 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATESNAPSHOTOUTPUT_SCHEMA;
|
469 477 | }
|
470 478 | impl ::aws_smithy_schema::serde::SerializableStruct for CreateSnapshotOutput {
|
471 479 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
472 480 | fn serialize_members(
|
473 481 | &self,
|
548 556 | ser.write_string(&CREATESNAPSHOTOUTPUT_MEMBER_KMS_KEY_ID, val)?;
|
549 557 | }
|
550 558 | if let Some(ref val) = self.data_encryption_key_id {
|
551 559 | ser.write_string(&CREATESNAPSHOTOUTPUT_MEMBER_DATA_ENCRYPTION_KEY_ID, val)?;
|
552 560 | }
|
553 561 | Ok(())
|
554 562 | }
|
555 563 | }
|
556 564 | impl CreateSnapshotOutput {
|
557 565 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
558 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
559 - | deserializer: &mut D,
|
566 + | pub fn deserialize(
|
567 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
560 568 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
561 569 | #[allow(unused_variables, unused_mut)]
|
562 570 | let mut builder = Self::builder();
|
563 571 | #[allow(
|
564 572 | unused_variables,
|
565 573 | unreachable_code,
|
566 574 | clippy::single_match,
|
567 575 | clippy::match_single_binding,
|
568 576 | clippy::diverging_sub_expression
|
569 577 | )]
|
570 - | deserializer.read_struct(&CREATESNAPSHOTOUTPUT_SCHEMA, (), |_, member, deser| {
|
578 + | deserializer.read_struct(&CREATESNAPSHOTOUTPUT_SCHEMA, &mut |member, deser| {
|
571 579 | match member.member_index() {
|
572 580 | Some(0) => {
|
573 581 | builder.owner_alias = Some(deser.read_string(member)?);
|
574 582 | }
|
575 583 | Some(1) => {
|
576 584 | builder.outpost_arn = Some(deser.read_string(member)?);
|
577 585 | }
|
578 586 | Some(2) => {
|
579 587 | builder.tags = 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::Tag::deserialize(deser)?);
|
587 - | Ok(list)
|
588 - | })?
|
588 + | let mut container = Vec::new();
|
589 + | deser.read_list(member, &mut |deser| {
|
590 + | container.push(crate::types::Tag::deserialize(deser)?);
|
591 + | Ok(())
|
592 + | })?;
|
593 + | container
|
594 + | });
|
595 + | }
|
596 + | Some(3) => {
|
597 + | builder.storage_tier = Some(crate::types::StorageTier::from(deser.read_string(member)?.as_str()));
|
598 + | }
|
599 + | Some(4) => {
|
600 + | builder.restore_expiry_time = Some(deser.read_timestamp(member)?);
|
601 + | }
|
602 + | Some(5) => {
|
603 + | builder.sse_type = Some(crate::types::SseType::from(deser.read_string(member)?.as_str()));
|
604 + | }
|
605 + | Some(6) => {
|
606 + | builder.availability_zone = Some(deser.read_string(member)?);
|
607 + | }
|
608 + | Some(7) => {
|
609 + | builder.transfer_type = Some(crate::types::TransferType::from(deser.read_string(member)?.as_str()));
|
610 + | }
|
611 + | Some(8) => {
|
612 + | builder.completion_duration_minutes = Some(deser.read_integer(member)?);
|
613 + | }
|
614 + | Some(9) => {
|
615 + | builder.completion_time = Some(deser.read_timestamp(member)?);
|
616 + | }
|
617 + | Some(10) => {
|
618 + | builder.full_snapshot_size_in_bytes = Some(deser.read_long(member)?);
|
619 + | }
|
620 + | Some(11) => {
|
621 + | builder.snapshot_id = Some(deser.read_string(member)?);
|
622 + | }
|
623 + | Some(12) => {
|
624 + | builder.volume_id = Some(deser.read_string(member)?);
|
625 + | }
|
626 + | Some(13) => {
|
627 + | builder.state = Some(crate::types::SnapshotState::from(deser.read_string(member)?.as_str()));
|
628 + | }
|
629 + | Some(14) => {
|
630 + | builder.state_message = Some(deser.read_string(member)?);
|
631 + | }
|
632 + | Some(15) => {
|
633 + | builder.start_time = Some(deser.read_timestamp(member)?);
|
634 + | }
|
635 + | Some(16) => {
|
636 + | builder.progress = Some(deser.read_string(member)?);
|
637 + | }
|
638 + | Some(17) => {
|
639 + | builder.owner_id = Some(deser.read_string(member)?);
|
640 + | }
|
641 + | Some(18) => {
|
642 + | builder.description = Some(deser.read_string(member)?);
|
643 + | }
|
644 + | Some(19) => {
|
645 + | builder.volume_size = Some(deser.read_integer(member)?);
|
646 + | }
|
647 + | Some(20) => {
|
648 + | builder.encrypted = Some(deser.read_boolean(member)?);
|
649 + | }
|
650 + | Some(21) => {
|
651 + | builder.kms_key_id = Some(deser.read_string(member)?);
|
652 + | }
|
653 + | Some(22) => {
|
654 + | builder.data_encryption_key_id = Some(deser.read_string(member)?);
|
655 + | }
|
656 + | Some(23) => {
|
657 + | builder._request_id = Some(deser.read_string(member)?);
|
658 + | }
|
659 + | _ => {}
|
660 + | }
|
661 + | Ok(())
|
662 + | })?;
|
663 + | Ok(builder.build())
|
664 + | }
|
665 + | }
|
666 + | impl CreateSnapshotOutput {
|
667 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
668 + | /// Header-bound members are read directly from headers, avoiding runtime
|
669 + | /// member iteration overhead. Body members are read via the deserializer.
|
670 + | pub fn deserialize_with_response(
|
671 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
672 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
673 + | _status: u16,
|
674 + | _body: &[u8],
|
675 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
676 + | #[allow(unused_variables, unused_mut)]
|
677 + | let mut builder = Self::builder();
|
678 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
679 + | builder._request_id = Some(val.to_string());
|
680 + | }
|
681 + | #[allow(
|
682 + | unused_variables,
|
683 + | unreachable_code,
|
684 + | clippy::single_match,
|
685 + | clippy::match_single_binding,
|
686 + | clippy::diverging_sub_expression
|
687 + | )]
|
688 + | deserializer.read_struct(&CREATESNAPSHOTOUTPUT_SCHEMA, &mut |member, deser| {
|
689 + | match member.member_index() {
|
690 + | Some(0) => {
|
691 + | builder.owner_alias = Some(deser.read_string(member)?);
|
692 + | }
|
693 + | Some(1) => {
|
694 + | builder.outpost_arn = Some(deser.read_string(member)?);
|
695 + | }
|
696 + | Some(2) => {
|
697 + | builder.tags = Some({
|
698 + | let mut container = Vec::new();
|
699 + | deser.read_list(member, &mut |deser| {
|
700 + | container.push(crate::types::Tag::deserialize(deser)?);
|
701 + | Ok(())
|
702 + | })?;
|
703 + | container
|
589 704 | });
|
590 705 | }
|
591 706 | Some(3) => {
|
592 707 | builder.storage_tier = Some(crate::types::StorageTier::from(deser.read_string(member)?.as_str()));
|
593 708 | }
|
594 709 | Some(4) => {
|
595 710 | builder.restore_expiry_time = Some(deser.read_timestamp(member)?);
|
596 711 | }
|
597 712 | Some(5) => {
|
598 713 | builder.sse_type = Some(crate::types::SseType::from(deser.read_string(member)?.as_str()));
|