Struct aws_sdk_ec2::model::ConversionTask
source · #[non_exhaustive]pub struct ConversionTask { /* private fields */ }
Expand description
Describes a conversion task.
Implementations§
source§impl ConversionTask
impl ConversionTask
sourcepub fn conversion_task_id(&self) -> Option<&str>
pub fn conversion_task_id(&self) -> Option<&str>
The ID of the conversion task.
sourcepub fn expiration_time(&self) -> Option<&str>
pub fn expiration_time(&self) -> Option<&str>
The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.
sourcepub fn import_instance(&self) -> Option<&ImportInstanceTaskDetails>
pub fn import_instance(&self) -> Option<&ImportInstanceTaskDetails>
If the task is for importing an instance, this contains information about the import instance task.
sourcepub fn import_volume(&self) -> Option<&ImportVolumeTaskDetails>
pub fn import_volume(&self) -> Option<&ImportVolumeTaskDetails>
If the task is for importing a volume, this contains information about the import volume task.
sourcepub fn state(&self) -> Option<&ConversionTaskState>
pub fn state(&self) -> Option<&ConversionTaskState>
The state of the conversion task.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
The status message related to the conversion task.
Any tags assigned to the task.
source§impl ConversionTask
impl ConversionTask
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ConversionTask
.
Examples found in repository?
src/xml_deser.rs (line 36989)
36985 36986 36987 36988 36989 36990 36991 36992 36993 36994 36995 36996 36997 36998 36999 37000 37001 37002 37003 37004 37005 37006 37007 37008 37009 37010 37011 37012 37013 37014 37015 37016 37017 37018 37019 37020 37021 37022 37023 37024 37025 37026 37027 37028 37029 37030 37031 37032 37033 37034 37035 37036 37037 37038 37039 37040 37041 37042 37043 37044 37045 37046 37047 37048 37049 37050 37051 37052 37053 37054 37055 37056 37057 37058 37059 37060 37061 37062 37063 37064 37065 37066 37067 37068 37069 37070 37071 37072 37073 37074 37075 37076 37077 37078 37079
pub fn deser_structure_crate_model_conversion_task(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ConversionTask, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ConversionTask::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("conversionTaskId") /* ConversionTaskId com.amazonaws.ec2#ConversionTask$ConversionTaskId */ => {
let var_1537 =
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_conversion_task_id(var_1537);
}
,
s if s.matches("expirationTime") /* ExpirationTime com.amazonaws.ec2#ConversionTask$ExpirationTime */ => {
let var_1538 =
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_expiration_time(var_1538);
}
,
s if s.matches("importInstance") /* ImportInstance com.amazonaws.ec2#ConversionTask$ImportInstance */ => {
let var_1539 =
Some(
crate::xml_deser::deser_structure_crate_model_import_instance_task_details(&mut tag)
?
)
;
builder = builder.set_import_instance(var_1539);
}
,
s if s.matches("importVolume") /* ImportVolume com.amazonaws.ec2#ConversionTask$ImportVolume */ => {
let var_1540 =
Some(
crate::xml_deser::deser_structure_crate_model_import_volume_task_details(&mut tag)
?
)
;
builder = builder.set_import_volume(var_1540);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#ConversionTask$State */ => {
let var_1541 =
Some(
Result::<crate::model::ConversionTaskState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ConversionTaskState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1541);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#ConversionTask$StatusMessage */ => {
let var_1542 =
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_1542);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#ConversionTask$Tags */ => {
let var_1543 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1543);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ConversionTask
impl Clone for ConversionTask
source§fn clone(&self) -> ConversionTask
fn clone(&self) -> ConversionTask
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