#[non_exhaustive]pub struct DisableFastSnapshotRestoreSuccessItem { /* private fields */ }
Expand description
Describes fast snapshot restores that were successfully disabled.
Implementations§
source§impl DisableFastSnapshotRestoreSuccessItem
impl DisableFastSnapshotRestoreSuccessItem
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone.
sourcepub fn state(&self) -> Option<&FastSnapshotRestoreStateCode>
pub fn state(&self) -> Option<&FastSnapshotRestoreStateCode>
The state of fast snapshot restores for the snapshot.
sourcepub fn state_transition_reason(&self) -> Option<&str>
pub fn state_transition_reason(&self) -> Option<&str>
The reason for the state transition. The possible values are as follows:
-
Client.UserInitiated
- The state successfully transitioned toenabling
ordisabling
. -
Client.UserInitiated - Lifecycle state transition
- The state successfully transitioned tooptimizing
,enabled
, ordisabled
.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot.
sourcepub fn owner_alias(&self) -> Option<&str>
pub fn owner_alias(&self) -> Option<&str>
The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.
sourcepub fn enabling_time(&self) -> Option<&DateTime>
pub fn enabling_time(&self) -> Option<&DateTime>
The time at which fast snapshot restores entered the enabling
state.
sourcepub fn optimizing_time(&self) -> Option<&DateTime>
pub fn optimizing_time(&self) -> Option<&DateTime>
The time at which fast snapshot restores entered the optimizing
state.
sourcepub fn enabled_time(&self) -> Option<&DateTime>
pub fn enabled_time(&self) -> Option<&DateTime>
The time at which fast snapshot restores entered the enabled
state.
sourcepub fn disabling_time(&self) -> Option<&DateTime>
pub fn disabling_time(&self) -> Option<&DateTime>
The time at which fast snapshot restores entered the disabling
state.
sourcepub fn disabled_time(&self) -> Option<&DateTime>
pub fn disabled_time(&self) -> Option<&DateTime>
The time at which fast snapshot restores entered the disabled
state.
source§impl DisableFastSnapshotRestoreSuccessItem
impl DisableFastSnapshotRestoreSuccessItem
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DisableFastSnapshotRestoreSuccessItem
.
Examples found in repository?
51638 51639 51640 51641 51642 51643 51644 51645 51646 51647 51648 51649 51650 51651 51652 51653 51654 51655 51656 51657 51658 51659 51660 51661 51662 51663 51664 51665 51666 51667 51668 51669 51670 51671 51672 51673 51674 51675 51676 51677 51678 51679 51680 51681 51682 51683 51684 51685 51686 51687 51688 51689 51690 51691 51692 51693 51694 51695 51696 51697 51698 51699 51700 51701 51702 51703 51704 51705 51706 51707 51708 51709 51710 51711 51712 51713 51714 51715 51716 51717 51718 51719 51720 51721 51722 51723 51724 51725 51726 51727 51728 51729 51730 51731 51732 51733 51734 51735 51736 51737 51738 51739 51740 51741 51742 51743 51744 51745 51746 51747 51748 51749 51750 51751 51752 51753 51754 51755 51756 51757 51758 51759 51760 51761 51762 51763 51764 51765 51766 51767 51768 51769 51770 51771 51772 51773 51774 51775 51776 51777 51778 51779 51780 51781 51782 51783 51784 51785 51786 51787 51788 51789 51790 51791 51792 51793 51794 51795 51796 51797 51798 51799 51800 51801
pub fn deser_structure_crate_model_disable_fast_snapshot_restore_success_item(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::DisableFastSnapshotRestoreSuccessItem,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::DisableFastSnapshotRestoreSuccessItem::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("snapshotId") /* SnapshotId com.amazonaws.ec2#DisableFastSnapshotRestoreSuccessItem$SnapshotId */ => {
let var_2453 =
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_2453);
}
,
s if s.matches("availabilityZone") /* AvailabilityZone com.amazonaws.ec2#DisableFastSnapshotRestoreSuccessItem$AvailabilityZone */ => {
let var_2454 =
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_2454);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#DisableFastSnapshotRestoreSuccessItem$State */ => {
let var_2455 =
Some(
Result::<crate::model::FastSnapshotRestoreStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FastSnapshotRestoreStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_2455);
}
,
s if s.matches("stateTransitionReason") /* StateTransitionReason com.amazonaws.ec2#DisableFastSnapshotRestoreSuccessItem$StateTransitionReason */ => {
let var_2456 =
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_state_transition_reason(var_2456);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#DisableFastSnapshotRestoreSuccessItem$OwnerId */ => {
let var_2457 =
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_2457);
}
,
s if s.matches("ownerAlias") /* OwnerAlias com.amazonaws.ec2#DisableFastSnapshotRestoreSuccessItem$OwnerAlias */ => {
let var_2458 =
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_alias(var_2458);
}
,
s if s.matches("enablingTime") /* EnablingTime com.amazonaws.ec2#DisableFastSnapshotRestoreSuccessItem$EnablingTime */ => {
let var_2459 =
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_enabling_time(var_2459);
}
,
s if s.matches("optimizingTime") /* OptimizingTime com.amazonaws.ec2#DisableFastSnapshotRestoreSuccessItem$OptimizingTime */ => {
let var_2460 =
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_optimizing_time(var_2460);
}
,
s if s.matches("enabledTime") /* EnabledTime com.amazonaws.ec2#DisableFastSnapshotRestoreSuccessItem$EnabledTime */ => {
let var_2461 =
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_enabled_time(var_2461);
}
,
s if s.matches("disablingTime") /* DisablingTime com.amazonaws.ec2#DisableFastSnapshotRestoreSuccessItem$DisablingTime */ => {
let var_2462 =
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_disabling_time(var_2462);
}
,
s if s.matches("disabledTime") /* DisabledTime com.amazonaws.ec2#DisableFastSnapshotRestoreSuccessItem$DisabledTime */ => {
let var_2463 =
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_disabled_time(var_2463);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for DisableFastSnapshotRestoreSuccessItem
impl Clone for DisableFastSnapshotRestoreSuccessItem
source§fn clone(&self) -> DisableFastSnapshotRestoreSuccessItem
fn clone(&self) -> DisableFastSnapshotRestoreSuccessItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more