Struct aws_sdk_ec2::output::modify_ipam_scope_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ModifyIpamScopeOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn ipam_scope(self, input: IpamScope) -> Self
pub fn ipam_scope(self, input: IpamScope) -> Self
The results of the modification.
sourcepub fn set_ipam_scope(self, input: Option<IpamScope>) -> Self
pub fn set_ipam_scope(self, input: Option<IpamScope>) -> Self
The results of the modification.
Examples found in repository?
src/xml_deser.rs (line 20211)
20185 20186 20187 20188 20189 20190 20191 20192 20193 20194 20195 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218
pub fn deser_operation_crate_operation_modify_ipam_scope(
inp: &[u8],
mut builder: crate::output::modify_ipam_scope_output::Builder,
) -> Result<crate::output::modify_ipam_scope_output::Builder, aws_smithy_xml::decode::XmlDecodeError>
{
let mut doc = aws_smithy_xml::decode::Document::try_from(inp)?;
#[allow(unused_mut)]
let mut decoder = doc.root_element()?;
#[allow(unused_variables)]
let start_el = decoder.start_el();
if !(start_el.matches("ModifyIpamScopeResponse")) {
return Err(aws_smithy_xml::decode::XmlDecodeError::custom(format!(
"invalid root, expected ModifyIpamScopeResponse got {:?}",
start_el
)));
}
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ipamScope") /* IpamScope com.amazonaws.ec2.synthetic#ModifyIpamScopeOutput$IpamScope */ => {
let var_777 =
Some(
crate::xml_deser::deser_structure_crate_model_ipam_scope(&mut tag)
?
)
;
builder = builder.set_ipam_scope(var_777);
}
,
_ => {}
}
}
Ok(builder)
}
sourcepub fn build(self) -> ModifyIpamScopeOutput
pub fn build(self) -> ModifyIpamScopeOutput
Consumes the builder and constructs a ModifyIpamScopeOutput
.
Examples found in repository?
src/operation_deser.rs (line 13690)
13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692
pub fn parse_modify_ipam_scope_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::ModifyIpamScopeOutput, crate::error::ModifyIpamScopeError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::modify_ipam_scope_output::Builder::default();
let _ = response;
output = crate::xml_deser::deser_operation_crate_operation_modify_ipam_scope(
response.body().as_ref(),
output,
)
.map_err(crate::error::ModifyIpamScopeError::unhandled)?;
output.build()
})
}