Struct aws_sdk_ec2::model::ExportTask
source · #[non_exhaustive]pub struct ExportTask { /* private fields */ }
Expand description
Describes an export instance task.
Implementations§
source§impl ExportTask
impl ExportTask
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the resource being exported.
sourcepub fn export_task_id(&self) -> Option<&str>
pub fn export_task_id(&self) -> Option<&str>
The ID of the export task.
sourcepub fn export_to_s3_task(&self) -> Option<&ExportToS3Task>
pub fn export_to_s3_task(&self) -> Option<&ExportToS3Task>
Information about the export task.
sourcepub fn instance_export_details(&self) -> Option<&InstanceExportDetails>
pub fn instance_export_details(&self) -> Option<&InstanceExportDetails>
Information about the instance to export.
sourcepub fn state(&self) -> Option<&ExportTaskState>
pub fn state(&self) -> Option<&ExportTaskState>
The state of the export task.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
The status message related to the export task.
The tags for the export task.
source§impl ExportTask
impl ExportTask
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ExportTask
.
Examples found in repository?
src/xml_deser.rs (line 26969)
26965 26966 26967 26968 26969 26970 26971 26972 26973 26974 26975 26976 26977 26978 26979 26980 26981 26982 26983 26984 26985 26986 26987 26988 26989 26990 26991 26992 26993 26994 26995 26996 26997 26998 26999 27000 27001 27002 27003 27004 27005 27006 27007 27008 27009 27010 27011 27012 27013 27014 27015 27016 27017 27018 27019 27020 27021 27022 27023 27024 27025 27026 27027 27028 27029 27030 27031 27032 27033 27034 27035 27036 27037 27038 27039 27040 27041 27042 27043 27044 27045 27046 27047 27048 27049 27050 27051 27052 27053 27054 27055 27056 27057 27058 27059
pub fn deser_structure_crate_model_export_task(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ExportTask, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ExportTask::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("description") /* Description com.amazonaws.ec2#ExportTask$Description */ => {
let var_1078 =
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_1078);
}
,
s if s.matches("exportTaskId") /* ExportTaskId com.amazonaws.ec2#ExportTask$ExportTaskId */ => {
let var_1079 =
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_export_task_id(var_1079);
}
,
s if s.matches("exportToS3") /* ExportToS3Task com.amazonaws.ec2#ExportTask$ExportToS3Task */ => {
let var_1080 =
Some(
crate::xml_deser::deser_structure_crate_model_export_to_s3_task(&mut tag)
?
)
;
builder = builder.set_export_to_s3_task(var_1080);
}
,
s if s.matches("instanceExport") /* InstanceExportDetails com.amazonaws.ec2#ExportTask$InstanceExportDetails */ => {
let var_1081 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_export_details(&mut tag)
?
)
;
builder = builder.set_instance_export_details(var_1081);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#ExportTask$State */ => {
let var_1082 =
Some(
Result::<crate::model::ExportTaskState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ExportTaskState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1082);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#ExportTask$StatusMessage */ => {
let var_1083 =
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_status_message(var_1083);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#ExportTask$Tags */ => {
let var_1084 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1084);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ExportTask
impl Clone for ExportTask
source§fn clone(&self) -> ExportTask
fn clone(&self) -> ExportTask
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