Struct aws_sdk_ec2::model::SnapshotRecycleBinInfo
source · #[non_exhaustive]pub struct SnapshotRecycleBinInfo { /* private fields */ }
Expand description
Information about a snapshot that is currently in the Recycle Bin.
Implementations§
source§impl SnapshotRecycleBinInfo
impl SnapshotRecycleBinInfo
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot.
sourcepub fn recycle_bin_enter_time(&self) -> Option<&DateTime>
pub fn recycle_bin_enter_time(&self) -> Option<&DateTime>
The date and time when the snaphsot entered the Recycle Bin.
sourcepub fn recycle_bin_exit_time(&self) -> Option<&DateTime>
pub fn recycle_bin_exit_time(&self) -> Option<&DateTime>
The date and time when the snapshot is to be permanently deleted from the Recycle Bin.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description for the snapshot.
source§impl SnapshotRecycleBinInfo
impl SnapshotRecycleBinInfo
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SnapshotRecycleBinInfo
.
Examples found in repository?
src/xml_deser.rs (line 54643)
54639 54640 54641 54642 54643 54644 54645 54646 54647 54648 54649 54650 54651 54652 54653 54654 54655 54656 54657 54658 54659 54660 54661 54662 54663 54664 54665 54666 54667 54668 54669 54670 54671 54672 54673 54674 54675 54676 54677 54678 54679 54680 54681 54682 54683 54684 54685 54686 54687 54688 54689 54690 54691 54692 54693 54694 54695 54696 54697 54698 54699 54700 54701 54702 54703 54704 54705 54706 54707 54708 54709 54710 54711 54712 54713 54714 54715 54716 54717
pub fn deser_structure_crate_model_snapshot_recycle_bin_info(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SnapshotRecycleBinInfo, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SnapshotRecycleBinInfo::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("snapshotId") /* SnapshotId com.amazonaws.ec2#SnapshotRecycleBinInfo$SnapshotId */ => {
let var_2629 =
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_snapshot_id(var_2629);
}
,
s if s.matches("recycleBinEnterTime") /* RecycleBinEnterTime com.amazonaws.ec2#SnapshotRecycleBinInfo$RecycleBinEnterTime */ => {
let var_2630 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
?
)
;
builder = builder.set_recycle_bin_enter_time(var_2630);
}
,
s if s.matches("recycleBinExitTime") /* RecycleBinExitTime com.amazonaws.ec2#SnapshotRecycleBinInfo$RecycleBinExitTime */ => {
let var_2631 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
?
)
;
builder = builder.set_recycle_bin_exit_time(var_2631);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#SnapshotRecycleBinInfo$Description */ => {
let var_2632 =
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_2632);
}
,
s if s.matches("volumeId") /* VolumeId com.amazonaws.ec2#SnapshotRecycleBinInfo$VolumeId */ => {
let var_2633 =
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_2633);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for SnapshotRecycleBinInfo
impl Clone for SnapshotRecycleBinInfo
source§fn clone(&self) -> SnapshotRecycleBinInfo
fn clone(&self) -> SnapshotRecycleBinInfo
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