Struct aws_sdk_ec2::model::PlacementResponse
source · #[non_exhaustive]pub struct PlacementResponse { /* private fields */ }
Expand description
Describes the placement of an instance.
Implementations§
source§impl PlacementResponse
impl PlacementResponse
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
The name of the placement group that the instance is in.
source§impl PlacementResponse
impl PlacementResponse
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PlacementResponse
.
Examples found in repository?
src/xml_deser.rs (line 68251)
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())
}
Trait Implementations§
source§impl Clone for PlacementResponse
impl Clone for PlacementResponse
source§fn clone(&self) -> PlacementResponse
fn clone(&self) -> PlacementResponse
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