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

Describes the volume status.

Implementations§

The details of the operation.

The Availability Zone of the volume.

The Amazon Resource Name (ARN) of the Outpost.

A list of events associated with the volume.

The volume ID.

The volume status.

Information about the instances to which the volume is attached.

Creates a new builder-style object to manufacture VolumeStatusItem.

Examples found in repository?
src/xml_deser.rs (line 51037)
51033
51034
51035
51036
51037
51038
51039
51040
51041
51042
51043
51044
51045
51046
51047
51048
51049
51050
51051
51052
51053
51054
51055
51056
51057
51058
51059
51060
51061
51062
51063
51064
51065
51066
51067
51068
51069
51070
51071
51072
51073
51074
51075
51076
51077
51078
51079
51080
51081
51082
51083
51084
51085
51086
51087
51088
51089
51090
51091
51092
51093
51094
51095
51096
51097
51098
51099
51100
51101
51102
51103
51104
51105
51106
51107
51108
51109
51110
51111
51112
51113
51114
51115
51116
51117
51118
51119
51120
51121
51122
51123
pub fn deser_structure_crate_model_volume_status_item(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VolumeStatusItem, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::VolumeStatusItem::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("actionsSet") /* Actions com.amazonaws.ec2#VolumeStatusItem$Actions */ =>  {
                let var_2410 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_volume_status_actions_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_actions(var_2410);
            }
            ,
            s if s.matches("availabilityZone") /* AvailabilityZone com.amazonaws.ec2#VolumeStatusItem$AvailabilityZone */ =>  {
                let var_2411 =
                    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_2411);
            }
            ,
            s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#VolumeStatusItem$OutpostArn */ =>  {
                let var_2412 =
                    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_outpost_arn(var_2412);
            }
            ,
            s if s.matches("eventsSet") /* Events com.amazonaws.ec2#VolumeStatusItem$Events */ =>  {
                let var_2413 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_volume_status_events_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_events(var_2413);
            }
            ,
            s if s.matches("volumeId") /* VolumeId com.amazonaws.ec2#VolumeStatusItem$VolumeId */ =>  {
                let var_2414 =
                    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_volume_id(var_2414);
            }
            ,
            s if s.matches("volumeStatus") /* VolumeStatus com.amazonaws.ec2#VolumeStatusItem$VolumeStatus */ =>  {
                let var_2415 =
                    Some(
                        crate::xml_deser::deser_structure_crate_model_volume_status_info(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_volume_status(var_2415);
            }
            ,
            s if s.matches("attachmentStatuses") /* AttachmentStatuses com.amazonaws.ec2#VolumeStatusItem$AttachmentStatuses */ =>  {
                let var_2416 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_volume_status_attachment_status_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_attachment_statuses(var_2416);
            }
            ,
            _ => {}
        }
    }
    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