Struct aws_sdk_ec2::model::SnapshotTierStatus
source · #[non_exhaustive]pub struct SnapshotTierStatus { /* private fields */ }
Expand description
Provides information about a snapshot's storage tier.
Implementations§
source§impl SnapshotTierStatus
impl SnapshotTierStatus
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot.
sourcepub fn volume_id(&self) -> Option<&str>
pub fn volume_id(&self) -> Option<&str>
The ID of the volume from which the snapshot was created.
sourcepub fn status(&self) -> Option<&SnapshotState>
pub fn status(&self) -> Option<&SnapshotState>
The state of the snapshot.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the snapshot.
The tags that are assigned to the snapshot.
sourcepub fn storage_tier(&self) -> Option<&StorageTier>
pub fn storage_tier(&self) -> Option<&StorageTier>
The storage tier in which the snapshot is stored. standard
indicates that the snapshot is stored in the standard snapshot storage tier and that it is ready for use. archive
indicates that the snapshot is currently archived and that it must be restored before it can be used.
sourcepub fn last_tiering_start_time(&self) -> Option<&DateTime>
pub fn last_tiering_start_time(&self) -> Option<&DateTime>
The date and time when the last archive or restore process was started.
sourcepub fn last_tiering_progress(&self) -> Option<i32>
pub fn last_tiering_progress(&self) -> Option<i32>
The progress of the last archive or restore process, as a percentage.
sourcepub fn last_tiering_operation_status(&self) -> Option<&TieringOperationStatus>
pub fn last_tiering_operation_status(&self) -> Option<&TieringOperationStatus>
The status of the last archive or restore process.
sourcepub fn last_tiering_operation_status_detail(&self) -> Option<&str>
pub fn last_tiering_operation_status_detail(&self) -> Option<&str>
A message describing the status of the last archive or restore process.
sourcepub fn archival_complete_time(&self) -> Option<&DateTime>
pub fn archival_complete_time(&self) -> Option<&DateTime>
The date and time when the last archive process was completed.
sourcepub fn restore_expiry_time(&self) -> Option<&DateTime>
pub fn restore_expiry_time(&self) -> Option<&DateTime>
Only for archived snapshots that are temporarily restored. Indicates the date and time when a temporarily restored snapshot will be automatically re-archived.
source§impl SnapshotTierStatus
impl SnapshotTierStatus
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SnapshotTierStatus
.
Examples found in repository?
49754 49755 49756 49757 49758 49759 49760 49761 49762 49763 49764 49765 49766 49767 49768 49769 49770 49771 49772 49773 49774 49775 49776 49777 49778 49779 49780 49781 49782 49783 49784 49785 49786 49787 49788 49789 49790 49791 49792 49793 49794 49795 49796 49797 49798 49799 49800 49801 49802 49803 49804 49805 49806 49807 49808 49809 49810 49811 49812 49813 49814 49815 49816 49817 49818 49819 49820 49821 49822 49823 49824 49825 49826 49827 49828 49829 49830 49831 49832 49833 49834 49835 49836 49837 49838 49839 49840 49841 49842 49843 49844 49845 49846 49847 49848 49849 49850 49851 49852 49853 49854 49855 49856 49857 49858 49859 49860 49861 49862 49863 49864 49865 49866 49867 49868 49869 49870 49871 49872 49873 49874 49875 49876 49877 49878 49879 49880 49881 49882 49883 49884 49885 49886 49887 49888 49889 49890 49891 49892 49893 49894 49895 49896 49897 49898 49899 49900 49901 49902 49903 49904 49905 49906 49907 49908 49909 49910 49911 49912 49913 49914 49915 49916 49917 49918 49919 49920 49921 49922 49923 49924 49925 49926
pub fn deser_structure_crate_model_snapshot_tier_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SnapshotTierStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SnapshotTierStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("snapshotId") /* SnapshotId com.amazonaws.ec2#SnapshotTierStatus$SnapshotId */ => {
let var_2322 =
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_2322);
}
,
s if s.matches("volumeId") /* VolumeId com.amazonaws.ec2#SnapshotTierStatus$VolumeId */ => {
let var_2323 =
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_2323);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#SnapshotTierStatus$Status */ => {
let var_2324 =
Some(
Result::<crate::model::SnapshotState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::SnapshotState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_2324);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#SnapshotTierStatus$OwnerId */ => {
let var_2325 =
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_owner_id(var_2325);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#SnapshotTierStatus$Tags */ => {
let var_2326 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2326);
}
,
s if s.matches("storageTier") /* StorageTier com.amazonaws.ec2#SnapshotTierStatus$StorageTier */ => {
let var_2327 =
Some(
Result::<crate::model::StorageTier, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StorageTier::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_storage_tier(var_2327);
}
,
s if s.matches("lastTieringStartTime") /* LastTieringStartTime com.amazonaws.ec2#SnapshotTierStatus$LastTieringStartTime */ => {
let var_2328 =
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_last_tiering_start_time(var_2328);
}
,
s if s.matches("lastTieringProgress") /* LastTieringProgress com.amazonaws.ec2#SnapshotTierStatus$LastTieringProgress */ => {
let var_2329 =
Some(
{
<i32 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 (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_last_tiering_progress(var_2329);
}
,
s if s.matches("lastTieringOperationStatus") /* LastTieringOperationStatus com.amazonaws.ec2#SnapshotTierStatus$LastTieringOperationStatus */ => {
let var_2330 =
Some(
Result::<crate::model::TieringOperationStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TieringOperationStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_last_tiering_operation_status(var_2330);
}
,
s if s.matches("lastTieringOperationStatusDetail") /* LastTieringOperationStatusDetail com.amazonaws.ec2#SnapshotTierStatus$LastTieringOperationStatusDetail */ => {
let var_2331 =
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_last_tiering_operation_status_detail(var_2331);
}
,
s if s.matches("archivalCompleteTime") /* ArchivalCompleteTime com.amazonaws.ec2#SnapshotTierStatus$ArchivalCompleteTime */ => {
let var_2332 =
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_archival_complete_time(var_2332);
}
,
s if s.matches("restoreExpiryTime") /* RestoreExpiryTime com.amazonaws.ec2#SnapshotTierStatus$RestoreExpiryTime */ => {
let var_2333 =
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_restore_expiry_time(var_2333);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for SnapshotTierStatus
impl Clone for SnapshotTierStatus
source§fn clone(&self) -> SnapshotTierStatus
fn clone(&self) -> SnapshotTierStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more