Struct aws_sdk_ec2::model::ImportVolumeTaskDetails
source · #[non_exhaustive]pub struct ImportVolumeTaskDetails { /* private fields */ }
Expand description
Describes an import volume task.
Implementations§
source§impl ImportVolumeTaskDetails
impl ImportVolumeTaskDetails
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone where the resulting volume will reside.
sourcepub fn bytes_converted(&self) -> Option<i64>
pub fn bytes_converted(&self) -> Option<i64>
The number of bytes converted so far.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description you provided when starting the import volume task.
sourcepub fn image(&self) -> Option<&DiskImageDescription>
pub fn image(&self) -> Option<&DiskImageDescription>
The image.
sourcepub fn volume(&self) -> Option<&DiskImageVolumeDescription>
pub fn volume(&self) -> Option<&DiskImageVolumeDescription>
The volume.
source§impl ImportVolumeTaskDetails
impl ImportVolumeTaskDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ImportVolumeTaskDetails
.
Examples found in repository?
src/xml_deser.rs (line 54450)
54446 54447 54448 54449 54450 54451 54452 54453 54454 54455 54456 54457 54458 54459 54460 54461 54462 54463 54464 54465 54466 54467 54468 54469 54470 54471 54472 54473 54474 54475 54476 54477 54478 54479 54480 54481 54482 54483 54484 54485 54486 54487 54488 54489 54490 54491 54492 54493 54494 54495 54496 54497 54498 54499 54500 54501 54502 54503 54504 54505 54506 54507 54508 54509 54510 54511 54512 54513 54514 54515 54516 54517 54518
pub fn deser_structure_crate_model_import_volume_task_details(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ImportVolumeTaskDetails, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ImportVolumeTaskDetails::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("availabilityZone") /* AvailabilityZone com.amazonaws.ec2#ImportVolumeTaskDetails$AvailabilityZone */ => {
let var_2617 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_availability_zone(var_2617);
}
,
s if s.matches("bytesConverted") /* BytesConverted com.amazonaws.ec2#ImportVolumeTaskDetails$BytesConverted */ => {
let var_2618 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.ec2#Long`)"))
}
?
)
;
builder = builder.set_bytes_converted(var_2618);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#ImportVolumeTaskDetails$Description */ => {
let var_2619 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_2619);
}
,
s if s.matches("image") /* Image com.amazonaws.ec2#ImportVolumeTaskDetails$Image */ => {
let var_2620 =
Some(
crate::xml_deser::deser_structure_crate_model_disk_image_description(&mut tag)
?
)
;
builder = builder.set_image(var_2620);
}
,
s if s.matches("volume") /* Volume com.amazonaws.ec2#ImportVolumeTaskDetails$Volume */ => {
let var_2621 =
Some(
crate::xml_deser::deser_structure_crate_model_disk_image_volume_description(&mut tag)
?
)
;
builder = builder.set_volume(var_2621);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ImportVolumeTaskDetails
impl Clone for ImportVolumeTaskDetails
source§fn clone(&self) -> ImportVolumeTaskDetails
fn clone(&self) -> ImportVolumeTaskDetails
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more