155 155 | "com.amazonaws.ec2.synthetic",
|
156 156 | "CreateVolumeOutput",
|
157 157 | );
|
158 158 | static CREATEVOLUMEOUTPUT_MEMBER_AVAILABILITY_ZONE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
159 159 | ::aws_smithy_schema::ShapeId::from_static(
|
160 160 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$AvailabilityZoneId",
|
161 161 | "com.amazonaws.ec2.synthetic",
|
162 162 | "CreateVolumeOutput",
|
163 163 | ),
|
164 164 | ::aws_smithy_schema::ShapeType::String,
|
165 - | "availability_zone_id",
|
165 + | "AvailabilityZoneId",
|
166 166 | 0,
|
167 167 | )
|
168 168 | .with_xml_name("availabilityZoneId");
|
169 169 | static CREATEVOLUMEOUTPUT_MEMBER_OUTPOST_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
170 170 | ::aws_smithy_schema::ShapeId::from_static(
|
171 171 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$OutpostArn",
|
172 172 | "com.amazonaws.ec2.synthetic",
|
173 173 | "CreateVolumeOutput",
|
174 174 | ),
|
175 175 | ::aws_smithy_schema::ShapeType::String,
|
176 - | "outpost_arn",
|
176 + | "OutpostArn",
|
177 177 | 1,
|
178 178 | )
|
179 179 | .with_xml_name("outpostArn");
|
180 180 | static CREATEVOLUMEOUTPUT_MEMBER_IOPS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
181 181 | ::aws_smithy_schema::ShapeId::from_static(
|
182 182 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$Iops",
|
183 183 | "com.amazonaws.ec2.synthetic",
|
184 184 | "CreateVolumeOutput",
|
185 185 | ),
|
186 186 | ::aws_smithy_schema::ShapeType::Integer,
|
187 - | "iops",
|
187 + | "Iops",
|
188 188 | 2,
|
189 189 | )
|
190 190 | .with_xml_name("iops");
|
191 191 | static CREATEVOLUMEOUTPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
192 192 | ::aws_smithy_schema::ShapeId::from_static(
|
193 193 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$Tags",
|
194 194 | "com.amazonaws.ec2.synthetic",
|
195 195 | "CreateVolumeOutput",
|
196 196 | ),
|
197 197 | ::aws_smithy_schema::ShapeType::List,
|
198 - | "tags",
|
198 + | "Tags",
|
199 199 | 3,
|
200 200 | )
|
201 201 | .with_xml_name("tagSet");
|
202 202 | static CREATEVOLUMEOUTPUT_MEMBER_VOLUME_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
203 203 | ::aws_smithy_schema::ShapeId::from_static(
|
204 204 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$VolumeType",
|
205 205 | "com.amazonaws.ec2.synthetic",
|
206 206 | "CreateVolumeOutput",
|
207 207 | ),
|
208 208 | ::aws_smithy_schema::ShapeType::String,
|
209 - | "volume_type",
|
209 + | "VolumeType",
|
210 210 | 4,
|
211 211 | )
|
212 212 | .with_xml_name("volumeType");
|
213 213 | static CREATEVOLUMEOUTPUT_MEMBER_FAST_RESTORED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
214 214 | ::aws_smithy_schema::ShapeId::from_static(
|
215 215 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$FastRestored",
|
216 216 | "com.amazonaws.ec2.synthetic",
|
217 217 | "CreateVolumeOutput",
|
218 218 | ),
|
219 219 | ::aws_smithy_schema::ShapeType::Boolean,
|
220 - | "fast_restored",
|
220 + | "FastRestored",
|
221 221 | 5,
|
222 222 | )
|
223 223 | .with_xml_name("fastRestored");
|
224 224 | static CREATEVOLUMEOUTPUT_MEMBER_MULTI_ATTACH_ENABLED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
225 225 | ::aws_smithy_schema::ShapeId::from_static(
|
226 226 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$MultiAttachEnabled",
|
227 227 | "com.amazonaws.ec2.synthetic",
|
228 228 | "CreateVolumeOutput",
|
229 229 | ),
|
230 230 | ::aws_smithy_schema::ShapeType::Boolean,
|
231 - | "multi_attach_enabled",
|
231 + | "MultiAttachEnabled",
|
232 232 | 6,
|
233 233 | )
|
234 234 | .with_xml_name("multiAttachEnabled");
|
235 235 | static CREATEVOLUMEOUTPUT_MEMBER_THROUGHPUT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
236 236 | ::aws_smithy_schema::ShapeId::from_static(
|
237 237 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$Throughput",
|
238 238 | "com.amazonaws.ec2.synthetic",
|
239 239 | "CreateVolumeOutput",
|
240 240 | ),
|
241 241 | ::aws_smithy_schema::ShapeType::Integer,
|
242 - | "throughput",
|
242 + | "Throughput",
|
243 243 | 7,
|
244 244 | )
|
245 245 | .with_xml_name("throughput");
|
246 246 | static CREATEVOLUMEOUTPUT_MEMBER_SSE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
247 247 | ::aws_smithy_schema::ShapeId::from_static(
|
248 248 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$SseType",
|
249 249 | "com.amazonaws.ec2.synthetic",
|
250 250 | "CreateVolumeOutput",
|
251 251 | ),
|
252 252 | ::aws_smithy_schema::ShapeType::String,
|
253 - | "sse_type",
|
253 + | "SseType",
|
254 254 | 8,
|
255 255 | )
|
256 256 | .with_xml_name("sseType");
|
257 257 | static CREATEVOLUMEOUTPUT_MEMBER_OPERATOR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
258 258 | ::aws_smithy_schema::ShapeId::from_static(
|
259 259 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$Operator",
|
260 260 | "com.amazonaws.ec2.synthetic",
|
261 261 | "CreateVolumeOutput",
|
262 262 | ),
|
263 263 | ::aws_smithy_schema::ShapeType::Structure,
|
264 - | "operator",
|
264 + | "Operator",
|
265 265 | 9,
|
266 266 | )
|
267 267 | .with_xml_name("operator");
|
268 268 | static CREATEVOLUMEOUTPUT_MEMBER_VOLUME_INITIALIZATION_RATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
269 269 | ::aws_smithy_schema::ShapeId::from_static(
|
270 270 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$VolumeInitializationRate",
|
271 271 | "com.amazonaws.ec2.synthetic",
|
272 272 | "CreateVolumeOutput",
|
273 273 | ),
|
274 274 | ::aws_smithy_schema::ShapeType::Integer,
|
275 - | "volume_initialization_rate",
|
275 + | "VolumeInitializationRate",
|
276 276 | 10,
|
277 277 | )
|
278 278 | .with_xml_name("volumeInitializationRate");
|
279 279 | static CREATEVOLUMEOUTPUT_MEMBER_VOLUME_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
280 280 | ::aws_smithy_schema::ShapeId::from_static(
|
281 281 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$VolumeId",
|
282 282 | "com.amazonaws.ec2.synthetic",
|
283 283 | "CreateVolumeOutput",
|
284 284 | ),
|
285 285 | ::aws_smithy_schema::ShapeType::String,
|
286 - | "volume_id",
|
286 + | "VolumeId",
|
287 287 | 11,
|
288 288 | )
|
289 289 | .with_xml_name("volumeId");
|
290 290 | static CREATEVOLUMEOUTPUT_MEMBER_SIZE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
291 291 | ::aws_smithy_schema::ShapeId::from_static(
|
292 292 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$Size",
|
293 293 | "com.amazonaws.ec2.synthetic",
|
294 294 | "CreateVolumeOutput",
|
295 295 | ),
|
296 296 | ::aws_smithy_schema::ShapeType::Integer,
|
297 - | "size",
|
297 + | "Size",
|
298 298 | 12,
|
299 299 | )
|
300 300 | .with_xml_name("size");
|
301 301 | static CREATEVOLUMEOUTPUT_MEMBER_SNAPSHOT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
302 302 | ::aws_smithy_schema::ShapeId::from_static(
|
303 303 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$SnapshotId",
|
304 304 | "com.amazonaws.ec2.synthetic",
|
305 305 | "CreateVolumeOutput",
|
306 306 | ),
|
307 307 | ::aws_smithy_schema::ShapeType::String,
|
308 - | "snapshot_id",
|
308 + | "SnapshotId",
|
309 309 | 13,
|
310 310 | )
|
311 311 | .with_xml_name("snapshotId");
|
312 312 | static CREATEVOLUMEOUTPUT_MEMBER_AVAILABILITY_ZONE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
313 313 | ::aws_smithy_schema::ShapeId::from_static(
|
314 314 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$AvailabilityZone",
|
315 315 | "com.amazonaws.ec2.synthetic",
|
316 316 | "CreateVolumeOutput",
|
317 317 | ),
|
318 318 | ::aws_smithy_schema::ShapeType::String,
|
319 - | "availability_zone",
|
319 + | "AvailabilityZone",
|
320 320 | 14,
|
321 321 | )
|
322 322 | .with_xml_name("availabilityZone");
|
323 323 | static CREATEVOLUMEOUTPUT_MEMBER_STATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
324 324 | ::aws_smithy_schema::ShapeId::from_static(
|
325 325 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$State",
|
326 326 | "com.amazonaws.ec2.synthetic",
|
327 327 | "CreateVolumeOutput",
|
328 328 | ),
|
329 329 | ::aws_smithy_schema::ShapeType::String,
|
330 - | "state",
|
330 + | "State",
|
331 331 | 15,
|
332 332 | )
|
333 333 | .with_xml_name("status");
|
334 334 | static CREATEVOLUMEOUTPUT_MEMBER_CREATE_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
335 335 | ::aws_smithy_schema::ShapeId::from_static(
|
336 336 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$CreateTime",
|
337 337 | "com.amazonaws.ec2.synthetic",
|
338 338 | "CreateVolumeOutput",
|
339 339 | ),
|
340 340 | ::aws_smithy_schema::ShapeType::Timestamp,
|
341 - | "create_time",
|
341 + | "CreateTime",
|
342 342 | 16,
|
343 343 | )
|
344 344 | .with_xml_name("createTime");
|
345 345 | static CREATEVOLUMEOUTPUT_MEMBER_ATTACHMENTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
346 346 | ::aws_smithy_schema::ShapeId::from_static(
|
347 347 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$Attachments",
|
348 348 | "com.amazonaws.ec2.synthetic",
|
349 349 | "CreateVolumeOutput",
|
350 350 | ),
|
351 351 | ::aws_smithy_schema::ShapeType::List,
|
352 - | "attachments",
|
352 + | "Attachments",
|
353 353 | 17,
|
354 354 | )
|
355 355 | .with_xml_name("attachmentSet");
|
356 356 | static CREATEVOLUMEOUTPUT_MEMBER_ENCRYPTED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
357 357 | ::aws_smithy_schema::ShapeId::from_static(
|
358 358 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$Encrypted",
|
359 359 | "com.amazonaws.ec2.synthetic",
|
360 360 | "CreateVolumeOutput",
|
361 361 | ),
|
362 362 | ::aws_smithy_schema::ShapeType::Boolean,
|
363 - | "encrypted",
|
363 + | "Encrypted",
|
364 364 | 18,
|
365 365 | )
|
366 366 | .with_xml_name("encrypted");
|
367 367 | static CREATEVOLUMEOUTPUT_MEMBER_KMS_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
368 368 | ::aws_smithy_schema::ShapeId::from_static(
|
369 369 | "com.amazonaws.ec2.synthetic#CreateVolumeOutput$KmsKeyId",
|
370 370 | "com.amazonaws.ec2.synthetic",
|
371 371 | "CreateVolumeOutput",
|
372 372 | ),
|
373 373 | ::aws_smithy_schema::ShapeType::String,
|
374 - | "kms_key_id",
|
374 + | "KmsKeyId",
|
375 375 | 19,
|
376 376 | )
|
377 377 | .with_xml_name("kmsKeyId");
|
378 + | static CREATEVOLUMEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
379 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
380 + | ::aws_smithy_schema::ShapeType::String,
|
381 + | "request_id",
|
382 + | 20,
|
383 + | )
|
384 + | .with_http_header("x-amzn-requestid");
|
378 385 | static CREATEVOLUMEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
379 386 | CREATEVOLUMEOUTPUT_SCHEMA_ID,
|
380 387 | ::aws_smithy_schema::ShapeType::Structure,
|
381 388 | &[
|
382 389 | &CREATEVOLUMEOUTPUT_MEMBER_AVAILABILITY_ZONE_ID,
|
383 390 | &CREATEVOLUMEOUTPUT_MEMBER_OUTPOST_ARN,
|
384 391 | &CREATEVOLUMEOUTPUT_MEMBER_IOPS,
|
385 392 | &CREATEVOLUMEOUTPUT_MEMBER_TAGS,
|
386 393 | &CREATEVOLUMEOUTPUT_MEMBER_VOLUME_TYPE,
|
387 394 | &CREATEVOLUMEOUTPUT_MEMBER_FAST_RESTORED,
|
388 395 | &CREATEVOLUMEOUTPUT_MEMBER_MULTI_ATTACH_ENABLED,
|
389 396 | &CREATEVOLUMEOUTPUT_MEMBER_THROUGHPUT,
|
390 397 | &CREATEVOLUMEOUTPUT_MEMBER_SSE_TYPE,
|
391 398 | &CREATEVOLUMEOUTPUT_MEMBER_OPERATOR,
|
392 399 | &CREATEVOLUMEOUTPUT_MEMBER_VOLUME_INITIALIZATION_RATE,
|
393 400 | &CREATEVOLUMEOUTPUT_MEMBER_VOLUME_ID,
|
394 401 | &CREATEVOLUMEOUTPUT_MEMBER_SIZE,
|
395 402 | &CREATEVOLUMEOUTPUT_MEMBER_SNAPSHOT_ID,
|
396 403 | &CREATEVOLUMEOUTPUT_MEMBER_AVAILABILITY_ZONE,
|
397 404 | &CREATEVOLUMEOUTPUT_MEMBER_STATE,
|
398 405 | &CREATEVOLUMEOUTPUT_MEMBER_CREATE_TIME,
|
399 406 | &CREATEVOLUMEOUTPUT_MEMBER_ATTACHMENTS,
|
400 407 | &CREATEVOLUMEOUTPUT_MEMBER_ENCRYPTED,
|
401 408 | &CREATEVOLUMEOUTPUT_MEMBER_KMS_KEY_ID,
|
409 + | &CREATEVOLUMEOUTPUT_MEMBER__REQUEST_ID,
|
402 410 | ],
|
403 411 | );
|
404 412 | impl CreateVolumeOutput {
|
405 413 | /// The schema for this shape.
|
406 414 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEVOLUMEOUTPUT_SCHEMA;
|
407 415 | }
|
408 416 | impl ::aws_smithy_schema::serde::SerializableStruct for CreateVolumeOutput {
|
409 417 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
410 418 | fn serialize_members(
|
411 419 | &self,
|
485 493 | ser.write_boolean(&CREATEVOLUMEOUTPUT_MEMBER_ENCRYPTED, *val)?;
|
486 494 | }
|
487 495 | if let Some(ref val) = self.kms_key_id {
|
488 496 | ser.write_string(&CREATEVOLUMEOUTPUT_MEMBER_KMS_KEY_ID, val)?;
|
489 497 | }
|
490 498 | Ok(())
|
491 499 | }
|
492 500 | }
|
493 501 | impl CreateVolumeOutput {
|
494 502 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
495 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
496 - | deserializer: &mut D,
|
503 + | pub fn deserialize(
|
504 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
497 505 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
498 506 | #[allow(unused_variables, unused_mut)]
|
499 507 | let mut builder = Self::builder();
|
500 508 | #[allow(
|
501 509 | unused_variables,
|
502 510 | unreachable_code,
|
503 511 | clippy::single_match,
|
504 512 | clippy::match_single_binding,
|
505 513 | clippy::diverging_sub_expression
|
506 514 | )]
|
507 - | deserializer.read_struct(&CREATEVOLUMEOUTPUT_SCHEMA, (), |_, member, deser| {
|
515 + | deserializer.read_struct(&CREATEVOLUMEOUTPUT_SCHEMA, &mut |member, deser| {
|
508 516 | match member.member_index() {
|
509 517 | Some(0) => {
|
510 518 | builder.availability_zone_id = Some(deser.read_string(member)?);
|
511 519 | }
|
512 520 | Some(1) => {
|
513 521 | builder.outpost_arn = Some(deser.read_string(member)?);
|
514 522 | }
|
515 523 | Some(2) => {
|
516 524 | builder.iops = Some(deser.read_integer(member)?);
|
517 525 | }
|
518 526 | Some(3) => {
|
519 527 | builder.tags = Some({
|
520 - | let container = if let Some(cap) = deser.container_size() {
|
521 - | Vec::with_capacity(cap)
|
522 - | } else {
|
523 - | Vec::new()
|
524 - | };
|
525 - | deser.read_list(member, container, |mut list, deser| {
|
526 - | list.push(crate::types::Tag::deserialize(deser)?);
|
527 - | Ok(list)
|
528 - | })?
|
528 + | let mut container = Vec::new();
|
529 + | deser.read_list(member, &mut |deser| {
|
530 + | container.push(crate::types::Tag::deserialize(deser)?);
|
531 + | Ok(())
|
532 + | })?;
|
533 + | container
|
529 534 | });
|
530 535 | }
|
531 536 | Some(4) => {
|
532 537 | builder.volume_type = Some(crate::types::VolumeType::from(deser.read_string(member)?.as_str()));
|
533 538 | }
|
534 539 | Some(5) => {
|
535 540 | builder.fast_restored = Some(deser.read_boolean(member)?);
|
536 541 | }
|
537 542 | Some(6) => {
|
538 543 | builder.multi_attach_enabled = Some(deser.read_boolean(member)?);
|
539 544 | }
|
540 545 | Some(7) => {
|
541 546 | builder.throughput = Some(deser.read_integer(member)?);
|
542 547 | }
|
543 548 | Some(8) => {
|
544 549 | builder.sse_type = Some(crate::types::SseType::from(deser.read_string(member)?.as_str()));
|
545 550 | }
|
546 551 | Some(9) => {
|
547 552 | builder.operator = Some(crate::types::OperatorResponse::deserialize(deser)?);
|
548 553 | }
|
549 554 | Some(10) => {
|
550 555 | builder.volume_initialization_rate = Some(deser.read_integer(member)?);
|
551 556 | }
|
552 557 | Some(11) => {
|
553 558 | builder.volume_id = Some(deser.read_string(member)?);
|
554 559 | }
|
555 560 | Some(12) => {
|
556 561 | builder.size = Some(deser.read_integer(member)?);
|
557 562 | }
|
558 563 | Some(13) => {
|
559 564 | builder.snapshot_id = Some(deser.read_string(member)?);
|
560 565 | }
|
561 566 | Some(14) => {
|
562 567 | builder.availability_zone = Some(deser.read_string(member)?);
|
563 568 | }
|
564 569 | Some(15) => {
|
565 570 | builder.state = Some(crate::types::VolumeState::from(deser.read_string(member)?.as_str()));
|
566 571 | }
|
567 572 | Some(16) => {
|
568 573 | builder.create_time = Some(deser.read_timestamp(member)?);
|
569 574 | }
|
570 575 | Some(17) => {
|
571 576 | builder.attachments = Some({
|
572 - | let container = if let Some(cap) = deser.container_size() {
|
573 - | Vec::with_capacity(cap)
|
574 - | } else {
|
575 - | Vec::new()
|
576 - | };
|
577 - | deser.read_list(member, container, |mut list, deser| {
|
578 - | list.push(crate::types::VolumeAttachment::deserialize(deser)?);
|
579 - | Ok(list)
|
580 - | })?
|
577 + | let mut container = Vec::new();
|
578 + | deser.read_list(member, &mut |deser| {
|
579 + | container.push(crate::types::VolumeAttachment::deserialize(deser)?);
|
580 + | Ok(())
|
581 + | })?;
|
582 + | container
|
583 + | });
|
584 + | }
|
585 + | Some(18) => {
|
586 + | builder.encrypted = Some(deser.read_boolean(member)?);
|
587 + | }
|
588 + | Some(19) => {
|
589 + | builder.kms_key_id = Some(deser.read_string(member)?);
|
590 + | }
|
591 + | Some(20) => {
|
592 + | builder._request_id = Some(deser.read_string(member)?);
|
593 + | }
|
594 + | _ => {}
|
595 + | }
|
596 + | Ok(())
|
597 + | })?;
|
598 + | Ok(builder.build())
|
599 + | }
|
600 + | }
|
601 + | impl CreateVolumeOutput {
|
602 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
603 + | /// Header-bound members are read directly from headers, avoiding runtime
|
604 + | /// member iteration overhead. Body members are read via the deserializer.
|
605 + | pub fn deserialize_with_response(
|
606 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
607 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
608 + | _status: u16,
|
609 + | _body: &[u8],
|
610 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
611 + | #[allow(unused_variables, unused_mut)]
|
612 + | let mut builder = Self::builder();
|
613 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
614 + | builder._request_id = Some(val.to_string());
|
615 + | }
|
616 + | #[allow(
|
617 + | unused_variables,
|
618 + | unreachable_code,
|
619 + | clippy::single_match,
|
620 + | clippy::match_single_binding,
|
621 + | clippy::diverging_sub_expression
|
622 + | )]
|
623 + | deserializer.read_struct(&CREATEVOLUMEOUTPUT_SCHEMA, &mut |member, deser| {
|
624 + | match member.member_index() {
|
625 + | Some(0) => {
|
626 + | builder.availability_zone_id = Some(deser.read_string(member)?);
|
627 + | }
|
628 + | Some(1) => {
|
629 + | builder.outpost_arn = Some(deser.read_string(member)?);
|
630 + | }
|
631 + | Some(2) => {
|
632 + | builder.iops = Some(deser.read_integer(member)?);
|
633 + | }
|
634 + | Some(3) => {
|
635 + | builder.tags = Some({
|
636 + | let mut container = Vec::new();
|
637 + | deser.read_list(member, &mut |deser| {
|
638 + | container.push(crate::types::Tag::deserialize(deser)?);
|
639 + | Ok(())
|
640 + | })?;
|
641 + | container
|
642 + | });
|
643 + | }
|
644 + | Some(4) => {
|
645 + | builder.volume_type = Some(crate::types::VolumeType::from(deser.read_string(member)?.as_str()));
|
646 + | }
|
647 + | Some(5) => {
|
648 + | builder.fast_restored = Some(deser.read_boolean(member)?);
|
649 + | }
|
650 + | Some(6) => {
|
651 + | builder.multi_attach_enabled = Some(deser.read_boolean(member)?);
|
652 + | }
|
653 + | Some(7) => {
|
654 + | builder.throughput = Some(deser.read_integer(member)?);
|
655 + | }
|
656 + | Some(8) => {
|
657 + | builder.sse_type = Some(crate::types::SseType::from(deser.read_string(member)?.as_str()));
|
658 + | }
|
659 + | Some(9) => {
|
660 + | builder.operator = Some(crate::types::OperatorResponse::deserialize(deser)?);
|
661 + | }
|
662 + | Some(10) => {
|
663 + | builder.volume_initialization_rate = Some(deser.read_integer(member)?);
|
664 + | }
|
665 + | Some(11) => {
|
666 + | builder.volume_id = Some(deser.read_string(member)?);
|
667 + | }
|
668 + | Some(12) => {
|
669 + | builder.size = Some(deser.read_integer(member)?);
|
670 + | }
|
671 + | Some(13) => {
|
672 + | builder.snapshot_id = Some(deser.read_string(member)?);
|
673 + | }
|
674 + | Some(14) => {
|
675 + | builder.availability_zone = Some(deser.read_string(member)?);
|
676 + | }
|
677 + | Some(15) => {
|
678 + | builder.state = Some(crate::types::VolumeState::from(deser.read_string(member)?.as_str()));
|
679 + | }
|
680 + | Some(16) => {
|
681 + | builder.create_time = Some(deser.read_timestamp(member)?);
|
682 + | }
|
683 + | Some(17) => {
|
684 + | builder.attachments = Some({
|
685 + | let mut container = Vec::new();
|
686 + | deser.read_list(member, &mut |deser| {
|
687 + | container.push(crate::types::VolumeAttachment::deserialize(deser)?);
|
688 + | Ok(())
|
689 + | })?;
|
690 + | container
|
581 691 | });
|
582 692 | }
|
583 693 | Some(18) => {
|
584 694 | builder.encrypted = Some(deser.read_boolean(member)?);
|
585 695 | }
|
586 696 | Some(19) => {
|
587 697 | builder.kms_key_id = Some(deser.read_string(member)?);
|
588 698 | }
|
589 699 | _ => {}
|
590 700 | }
|