Struct aws_sdk_ec2::model::ReplaceRootVolumeTask
source · #[non_exhaustive]pub struct ReplaceRootVolumeTask { /* private fields */ }
Expand description
Information about a root volume replacement task.
Implementations§
source§impl ReplaceRootVolumeTask
impl ReplaceRootVolumeTask
sourcepub fn replace_root_volume_task_id(&self) -> Option<&str>
pub fn replace_root_volume_task_id(&self) -> Option<&str>
The ID of the root volume replacement task.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance for which the root volume replacement task was created.
sourcepub fn task_state(&self) -> Option<&ReplaceRootVolumeTaskState>
pub fn task_state(&self) -> Option<&ReplaceRootVolumeTaskState>
The state of the task. The task can be in one of the following states:
-
pending
- the replacement volume is being created. -
in-progress
- the original volume is being detached and the replacement volume is being attached. -
succeeded
- the replacement volume has been successfully attached to the instance and the instance is available. -
failing
- the replacement task is in the process of failing. -
failed
- the replacement task has failed but the original root volume is still attached. -
failing-detached
- the replacement task is in the process of failing. The instance might have no root volume attached. -
failed-detached
- the replacement task has failed and the instance has no root volume attached.
sourcepub fn start_time(&self) -> Option<&str>
pub fn start_time(&self) -> Option<&str>
The time the task was started.
sourcepub fn complete_time(&self) -> Option<&str>
pub fn complete_time(&self) -> Option<&str>
The time the task completed.
The tags assigned to the task.
source§impl ReplaceRootVolumeTask
impl ReplaceRootVolumeTask
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ReplaceRootVolumeTask
.
Examples found in repository?
29713 29714 29715 29716 29717 29718 29719 29720 29721 29722 29723 29724 29725 29726 29727 29728 29729 29730 29731 29732 29733 29734 29735 29736 29737 29738 29739 29740 29741 29742 29743 29744 29745 29746 29747 29748 29749 29750 29751 29752 29753 29754 29755 29756 29757 29758 29759 29760 29761 29762 29763 29764 29765 29766 29767 29768 29769 29770 29771 29772 29773 29774 29775 29776 29777 29778 29779 29780 29781 29782 29783 29784 29785 29786 29787 29788 29789 29790 29791 29792 29793 29794 29795 29796 29797 29798 29799 29800
pub fn deser_structure_crate_model_replace_root_volume_task(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ReplaceRootVolumeTask, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ReplaceRootVolumeTask::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("replaceRootVolumeTaskId") /* ReplaceRootVolumeTaskId com.amazonaws.ec2#ReplaceRootVolumeTask$ReplaceRootVolumeTaskId */ => {
let var_1271 =
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_replace_root_volume_task_id(var_1271);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#ReplaceRootVolumeTask$InstanceId */ => {
let var_1272 =
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_instance_id(var_1272);
}
,
s if s.matches("taskState") /* TaskState com.amazonaws.ec2#ReplaceRootVolumeTask$TaskState */ => {
let var_1273 =
Some(
Result::<crate::model::ReplaceRootVolumeTaskState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ReplaceRootVolumeTaskState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_task_state(var_1273);
}
,
s if s.matches("startTime") /* StartTime com.amazonaws.ec2#ReplaceRootVolumeTask$StartTime */ => {
let var_1274 =
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_start_time(var_1274);
}
,
s if s.matches("completeTime") /* CompleteTime com.amazonaws.ec2#ReplaceRootVolumeTask$CompleteTime */ => {
let var_1275 =
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_complete_time(var_1275);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#ReplaceRootVolumeTask$Tags */ => {
let var_1276 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1276);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ReplaceRootVolumeTask
impl Clone for ReplaceRootVolumeTask
source§fn clone(&self) -> ReplaceRootVolumeTask
fn clone(&self) -> ReplaceRootVolumeTask
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more