Struct aws_sdk_ec2::model::reserved_instances_id::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ReservedInstancesId
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn reserved_instances_id(self, input: impl Into<String>) -> Self
pub fn reserved_instances_id(self, input: impl Into<String>) -> Self
The ID of the Reserved Instance.
sourcepub fn set_reserved_instances_id(self, input: Option<String>) -> Self
pub fn set_reserved_instances_id(self, input: Option<String>) -> Self
The ID of the Reserved Instance.
Examples found in repository?
src/xml_deser.rs (line 65752)
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())
}
sourcepub fn build(self) -> ReservedInstancesId
pub fn build(self) -> ReservedInstancesId
Consumes the builder and constructs a ReservedInstancesId
.
Examples found in repository?
src/xml_deser.rs (line 65758)
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())
}