Struct aws_sdk_ec2::model::bundle_task::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for BundleTask
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_bundle_id(self, input: Option<String>) -> Self
pub fn set_bundle_id(self, input: Option<String>) -> Self
The ID of the bundle task.
Examples found in repository?
src/xml_deser.rs (line 25381)
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())
}
sourcepub fn bundle_task_error(self, input: BundleTaskError) -> Self
pub fn bundle_task_error(self, input: BundleTaskError) -> Self
If the task fails, a description of the error.
sourcepub fn set_bundle_task_error(self, input: Option<BundleTaskError>) -> Self
pub fn set_bundle_task_error(self, input: Option<BundleTaskError>) -> Self
If the task fails, a description of the error.
Examples found in repository?
src/xml_deser.rs (line 25391)
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())
}
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance associated with this bundle task.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the instance associated with this bundle task.
Examples found in repository?
src/xml_deser.rs (line 25404)
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())
}
sourcepub fn progress(self, input: impl Into<String>) -> Self
pub fn progress(self, input: impl Into<String>) -> Self
The level of task completion, as a percent (for example, 20%).
sourcepub fn set_progress(self, input: Option<String>) -> Self
pub fn set_progress(self, input: Option<String>) -> Self
The level of task completion, as a percent (for example, 20%).
Examples found in repository?
src/xml_deser.rs (line 25417)
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())
}
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The time this task started.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The time this task started.
Examples found in repository?
src/xml_deser.rs (line 25431)
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())
}
sourcepub fn state(self, input: BundleTaskState) -> Self
pub fn state(self, input: BundleTaskState) -> Self
The state of the task.
sourcepub fn set_state(self, input: Option<BundleTaskState>) -> Self
pub fn set_state(self, input: Option<BundleTaskState>) -> Self
The state of the task.
Examples found in repository?
src/xml_deser.rs (line 25445)
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())
}
sourcepub fn set_storage(self, input: Option<Storage>) -> Self
pub fn set_storage(self, input: Option<Storage>) -> Self
The Amazon S3 storage locations.
Examples found in repository?
src/xml_deser.rs (line 25455)
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())
}
sourcepub fn update_time(self, input: DateTime) -> Self
pub fn update_time(self, input: DateTime) -> Self
The time of the most recent update for the task.
sourcepub fn set_update_time(self, input: Option<DateTime>) -> Self
pub fn set_update_time(self, input: Option<DateTime>) -> Self
The time of the most recent update for the task.
Examples found in repository?
src/xml_deser.rs (line 25469)
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())
}
sourcepub fn build(self) -> BundleTask
pub fn build(self) -> BundleTask
Consumes the builder and constructs a BundleTask
.
Examples found in repository?
src/xml_deser.rs (line 25475)
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())
}