Struct aws_sdk_ec2::model::ReservedInstancesId
source · #[non_exhaustive]pub struct ReservedInstancesId { /* private fields */ }
Expand description
Describes the ID of a Reserved Instance.
Implementations§
source§impl ReservedInstancesId
impl ReservedInstancesId
sourcepub fn reserved_instances_id(&self) -> Option<&str>
pub fn reserved_instances_id(&self) -> Option<&str>
The ID of the Reserved Instance.
source§impl ReservedInstancesId
impl ReservedInstancesId
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ReservedInstancesId
.
Examples found in repository?
src/xml_deser.rs (line 65739)
65735 65736 65737 65738 65739 65740 65741 65742 65743 65744 65745 65746 65747 65748 65749 65750 65751 65752 65753 65754 65755 65756 65757 65758 65759
pub fn deser_structure_crate_model_reserved_instances_id(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ReservedInstancesId, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ReservedInstancesId::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("reservedInstancesId") /* ReservedInstancesId com.amazonaws.ec2#ReservedInstancesId$ReservedInstancesId */ => {
let var_3234 =
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_reserved_instances_id(var_3234);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ReservedInstancesId
impl Clone for ReservedInstancesId
source§fn clone(&self) -> ReservedInstancesId
fn clone(&self) -> ReservedInstancesId
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