pub struct Builder { /* private fields */ }
Expand description

A builder for ImportVolumeTaskDetails.

Implementations§

The Availability Zone where the resulting volume will reside.

The Availability Zone where the resulting volume will reside.

Examples found in repository?
src/xml_deser.rs (line 54463)
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())
}

The number of bytes converted so far.

The number of bytes converted so far.

Examples found in repository?
src/xml_deser.rs (line 54478)
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())
}

The description you provided when starting the import volume task.

The description you provided when starting the import volume task.

Examples found in repository?
src/xml_deser.rs (line 54491)
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())
}

The image.

The image.

Examples found in repository?
src/xml_deser.rs (line 54501)
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())
}

The volume.

The volume.

Examples found in repository?
src/xml_deser.rs (line 54511)
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())
}

Consumes the builder and constructs a ImportVolumeTaskDetails.

Examples found in repository?
src/xml_deser.rs (line 54517)
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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more