Struct aws_sdk_ec2::model::VolumeStatusItem
source · #[non_exhaustive]pub struct VolumeStatusItem { /* private fields */ }
Expand description
Describes the volume status.
Implementations§
source§impl VolumeStatusItem
impl VolumeStatusItem
sourcepub fn actions(&self) -> Option<&[VolumeStatusAction]>
pub fn actions(&self) -> Option<&[VolumeStatusAction]>
The details of the operation.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone of the volume.
sourcepub fn outpost_arn(&self) -> Option<&str>
pub fn outpost_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Outpost.
sourcepub fn events(&self) -> Option<&[VolumeStatusEvent]>
pub fn events(&self) -> Option<&[VolumeStatusEvent]>
A list of events associated with the volume.
sourcepub fn volume_status(&self) -> Option<&VolumeStatusInfo>
pub fn volume_status(&self) -> Option<&VolumeStatusInfo>
The volume status.
sourcepub fn attachment_statuses(&self) -> Option<&[VolumeStatusAttachmentStatus]>
pub fn attachment_statuses(&self) -> Option<&[VolumeStatusAttachmentStatus]>
Information about the instances to which the volume is attached.
source§impl VolumeStatusItem
impl VolumeStatusItem
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
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§
source§impl Clone for VolumeStatusItem
impl Clone for VolumeStatusItem
source§fn clone(&self) -> VolumeStatusItem
fn clone(&self) -> VolumeStatusItem
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