#[non_exhaustive]
pub struct ReplaceRootVolumeTask { /* private fields */ }
Expand description

Information about a root volume replacement task.

Implementations§

The ID of the root volume replacement task.

The ID of the instance for which the root volume replacement task was created.

The state of the task. The task can be in one of the following states:

  • pending - the replacement volume is being created.

  • in-progress - the original volume is being detached and the replacement volume is being attached.

  • succeeded - the replacement volume has been successfully attached to the instance and the instance is available.

  • failing - the replacement task is in the process of failing.

  • failed - the replacement task has failed but the original root volume is still attached.

  • failing-detached - the replacement task is in the process of failing. The instance might have no root volume attached.

  • failed-detached - the replacement task has failed and the instance has no root volume attached.

The time the task was started.

The time the task completed.

The tags assigned to the task.

Creates a new builder-style object to manufacture ReplaceRootVolumeTask.

Examples found in repository?
src/xml_deser.rs (line 29717)
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
pub fn deser_structure_crate_model_replace_root_volume_task(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ReplaceRootVolumeTask, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::ReplaceRootVolumeTask::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("replaceRootVolumeTaskId") /* ReplaceRootVolumeTaskId com.amazonaws.ec2#ReplaceRootVolumeTask$ReplaceRootVolumeTaskId */ =>  {
                let var_1271 =
                    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_replace_root_volume_task_id(var_1271);
            }
            ,
            s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#ReplaceRootVolumeTask$InstanceId */ =>  {
                let var_1272 =
                    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_instance_id(var_1272);
            }
            ,
            s if s.matches("taskState") /* TaskState com.amazonaws.ec2#ReplaceRootVolumeTask$TaskState */ =>  {
                let var_1273 =
                    Some(
                        Result::<crate::model::ReplaceRootVolumeTaskState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::ReplaceRootVolumeTaskState::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_task_state(var_1273);
            }
            ,
            s if s.matches("startTime") /* StartTime com.amazonaws.ec2#ReplaceRootVolumeTask$StartTime */ =>  {
                let var_1274 =
                    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_start_time(var_1274);
            }
            ,
            s if s.matches("completeTime") /* CompleteTime com.amazonaws.ec2#ReplaceRootVolumeTask$CompleteTime */ =>  {
                let var_1275 =
                    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_complete_time(var_1275);
            }
            ,
            s if s.matches("tagSet") /* Tags com.amazonaws.ec2#ReplaceRootVolumeTask$Tags */ =>  {
                let var_1276 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_tags(var_1276);
            }
            ,
            _ => {}
        }
    }
    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
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