Struct aws_sdk_ec2::model::ImageRecycleBinInfo
source · #[non_exhaustive]pub struct ImageRecycleBinInfo { /* private fields */ }
Expand description
Information about an AMI that is currently in the Recycle Bin.
Implementations§
source§impl ImageRecycleBinInfo
impl ImageRecycleBinInfo
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the AMI.
sourcepub fn recycle_bin_enter_time(&self) -> Option<&DateTime>
pub fn recycle_bin_enter_time(&self) -> Option<&DateTime>
The date and time when the AMI entered the Recycle Bin.
sourcepub fn recycle_bin_exit_time(&self) -> Option<&DateTime>
pub fn recycle_bin_exit_time(&self) -> Option<&DateTime>
The date and time when the AMI is to be permanently deleted from the Recycle Bin.
source§impl ImageRecycleBinInfo
impl ImageRecycleBinInfo
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ImageRecycleBinInfo
.
Examples found in repository?
src/xml_deser.rs (line 54563)
54559 54560 54561 54562 54563 54564 54565 54566 54567 54568 54569 54570 54571 54572 54573 54574 54575 54576 54577 54578 54579 54580 54581 54582 54583 54584 54585 54586 54587 54588 54589 54590 54591 54592 54593 54594 54595 54596 54597 54598 54599 54600 54601 54602 54603 54604 54605 54606 54607 54608 54609 54610 54611 54612 54613 54614 54615 54616 54617 54618 54619 54620 54621 54622 54623 54624 54625 54626 54627 54628 54629 54630 54631 54632 54633 54634 54635 54636 54637
pub fn deser_structure_crate_model_image_recycle_bin_info(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ImageRecycleBinInfo, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ImageRecycleBinInfo::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#ImageRecycleBinInfo$ImageId */ => {
let var_2624 =
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_2624);
}
,
s if s.matches("name") /* Name com.amazonaws.ec2#ImageRecycleBinInfo$Name */ => {
let var_2625 =
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_name(var_2625);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#ImageRecycleBinInfo$Description */ => {
let var_2626 =
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_2626);
}
,
s if s.matches("recycleBinEnterTime") /* RecycleBinEnterTime com.amazonaws.ec2#ImageRecycleBinInfo$RecycleBinEnterTime */ => {
let var_2627 =
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#MillisecondDateTime`)"))
?
)
;
builder = builder.set_recycle_bin_enter_time(var_2627);
}
,
s if s.matches("recycleBinExitTime") /* RecycleBinExitTime com.amazonaws.ec2#ImageRecycleBinInfo$RecycleBinExitTime */ => {
let var_2628 =
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#MillisecondDateTime`)"))
?
)
;
builder = builder.set_recycle_bin_exit_time(var_2628);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ImageRecycleBinInfo
impl Clone for ImageRecycleBinInfo
source§fn clone(&self) -> ImageRecycleBinInfo
fn clone(&self) -> ImageRecycleBinInfo
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