Struct aws_sdk_ec2::model::ExportImageTask
source · #[non_exhaustive]pub struct ExportImageTask { /* private fields */ }
Expand description
Describes an export image task.
Implementations§
source§impl ExportImageTask
impl ExportImageTask
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the image being exported.
sourcepub fn export_image_task_id(&self) -> Option<&str>
pub fn export_image_task_id(&self) -> Option<&str>
The ID of the export image task.
sourcepub fn s3_export_location(&self) -> Option<&ExportTaskS3Location>
pub fn s3_export_location(&self) -> Option<&ExportTaskS3Location>
Information about the destination Amazon S3 bucket.
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
The status of the export image task. The possible values are active
, completed
, deleting
, and deleted
.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
The status message for the export image task.
Any tags assigned to the export image task.
source§impl ExportImageTask
impl ExportImageTask
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ExportImageTask
.
Examples found in repository?
src/xml_deser.rs (line 44302)
44298 44299 44300 44301 44302 44303 44304 44305 44306 44307 44308 44309 44310 44311 44312 44313 44314 44315 44316 44317 44318 44319 44320 44321 44322 44323 44324 44325 44326 44327 44328 44329 44330 44331 44332 44333 44334 44335 44336 44337 44338 44339 44340 44341 44342 44343 44344 44345 44346 44347 44348 44349 44350 44351 44352 44353 44354 44355 44356 44357 44358 44359 44360 44361 44362 44363 44364 44365 44366 44367 44368 44369 44370 44371 44372 44373 44374 44375 44376 44377 44378 44379 44380 44381 44382 44383 44384 44385 44386 44387 44388 44389 44390 44391 44392 44393 44394 44395 44396 44397 44398 44399 44400 44401 44402 44403 44404 44405 44406 44407
pub fn deser_structure_crate_model_export_image_task(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ExportImageTask, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ExportImageTask::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("description") /* Description com.amazonaws.ec2#ExportImageTask$Description */ => {
let var_1943 =
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_1943);
}
,
s if s.matches("exportImageTaskId") /* ExportImageTaskId com.amazonaws.ec2#ExportImageTask$ExportImageTaskId */ => {
let var_1944 =
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_image_task_id(var_1944);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#ExportImageTask$ImageId */ => {
let var_1945 =
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_image_id(var_1945);
}
,
s if s.matches("progress") /* Progress com.amazonaws.ec2#ExportImageTask$Progress */ => {
let var_1946 =
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_progress(var_1946);
}
,
s if s.matches("s3ExportLocation") /* S3ExportLocation com.amazonaws.ec2#ExportImageTask$S3ExportLocation */ => {
let var_1947 =
Some(
crate::xml_deser::deser_structure_crate_model_export_task_s3_location(&mut tag)
?
)
;
builder = builder.set_s3_export_location(var_1947);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#ExportImageTask$Status */ => {
let var_1948 =
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(var_1948);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#ExportImageTask$StatusMessage */ => {
let var_1949 =
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_1949);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#ExportImageTask$Tags */ => {
let var_1950 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1950);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ExportImageTask
impl Clone for ExportImageTask
source§fn clone(&self) -> ExportImageTask
fn clone(&self) -> ExportImageTask
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