Struct aws_sdk_ec2::model::placement_response::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PlacementResponse
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn group_name(self, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
The name of the placement group that the instance is in.
sourcepub fn set_group_name(self, input: Option<String>) -> Self
pub fn set_group_name(self, input: Option<String>) -> Self
The name of the placement group that the instance is in.
Examples found in repository?
src/xml_deser.rs (line 68264)
68247 68248 68249 68250 68251 68252 68253 68254 68255 68256 68257 68258 68259 68260 68261 68262 68263 68264 68265 68266 68267 68268 68269 68270 68271
pub fn deser_structure_crate_model_placement_response(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PlacementResponse, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PlacementResponse::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#PlacementResponse$GroupName */ => {
let var_3370 =
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_group_name(var_3370);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> PlacementResponse
pub fn build(self) -> PlacementResponse
Consumes the builder and constructs a PlacementResponse
.
Examples found in repository?
src/xml_deser.rs (line 68270)
68247 68248 68249 68250 68251 68252 68253 68254 68255 68256 68257 68258 68259 68260 68261 68262 68263 68264 68265 68266 68267 68268 68269 68270 68271
pub fn deser_structure_crate_model_placement_response(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PlacementResponse, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PlacementResponse::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("groupName") /* GroupName com.amazonaws.ec2#PlacementResponse$GroupName */ => {
let var_3370 =
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_group_name(var_3370);
}
,
_ => {}
}
}
Ok(builder.build())
}