Struct aws_sdk_ec2::model::BundleTask
source · #[non_exhaustive]pub struct BundleTask { /* private fields */ }
Expand description
Describes a bundle task.
Implementations§
source§impl BundleTask
impl BundleTask
sourcepub fn bundle_task_error(&self) -> Option<&BundleTaskError>
pub fn bundle_task_error(&self) -> Option<&BundleTaskError>
If the task fails, a description of the error.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance associated with this bundle task.
sourcepub fn progress(&self) -> Option<&str>
pub fn progress(&self) -> Option<&str>
The level of task completion, as a percent (for example, 20%).
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
The time this task started.
sourcepub fn state(&self) -> Option<&BundleTaskState>
pub fn state(&self) -> Option<&BundleTaskState>
The state of the task.
sourcepub fn update_time(&self) -> Option<&DateTime>
pub fn update_time(&self) -> Option<&DateTime>
The time of the most recent update for the task.
source§impl BundleTask
impl BundleTask
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture BundleTask
.
Examples found in repository?
src/xml_deser.rs (line 25368)
25364 25365 25366 25367 25368 25369 25370 25371 25372 25373 25374 25375 25376 25377 25378 25379 25380 25381 25382 25383 25384 25385 25386 25387 25388 25389 25390 25391 25392 25393 25394 25395 25396 25397 25398 25399 25400 25401 25402 25403 25404 25405 25406 25407 25408 25409 25410 25411 25412 25413 25414 25415 25416 25417 25418 25419 25420 25421 25422 25423 25424 25425 25426 25427 25428 25429 25430 25431 25432 25433 25434 25435 25436 25437 25438 25439 25440 25441 25442 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476
pub fn deser_structure_crate_model_bundle_task(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::BundleTask, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::BundleTask::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("bundleId") /* BundleId com.amazonaws.ec2#BundleTask$BundleId */ => {
let var_984 =
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_bundle_id(var_984);
}
,
s if s.matches("error") /* BundleTaskError com.amazonaws.ec2#BundleTask$BundleTaskError */ => {
let var_985 =
Some(
crate::xml_deser::deser_structure_crate_model_bundle_task_error(&mut tag)
?
)
;
builder = builder.set_bundle_task_error(var_985);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#BundleTask$InstanceId */ => {
let var_986 =
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_986);
}
,
s if s.matches("progress") /* Progress com.amazonaws.ec2#BundleTask$Progress */ => {
let var_987 =
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_987);
}
,
s if s.matches("startTime") /* StartTime com.amazonaws.ec2#BundleTask$StartTime */ => {
let var_988 =
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#DateTime`)"))
?
)
;
builder = builder.set_start_time(var_988);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#BundleTask$State */ => {
let var_989 =
Some(
Result::<crate::model::BundleTaskState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BundleTaskState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_989);
}
,
s if s.matches("storage") /* Storage com.amazonaws.ec2#BundleTask$Storage */ => {
let var_990 =
Some(
crate::xml_deser::deser_structure_crate_model_storage(&mut tag)
?
)
;
builder = builder.set_storage(var_990);
}
,
s if s.matches("updateTime") /* UpdateTime com.amazonaws.ec2#BundleTask$UpdateTime */ => {
let var_991 =
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#DateTime`)"))
?
)
;
builder = builder.set_update_time(var_991);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for BundleTask
impl Clone for BundleTask
source§fn clone(&self) -> BundleTask
fn clone(&self) -> BundleTask
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