Struct aws_sdk_ec2::output::create_ipam_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CreateIpamOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_ipam(self, input: Option<Ipam>) -> Self
pub fn set_ipam(self, input: Option<Ipam>) -> Self
Information about the IPAM created.
Examples found in repository?
src/xml_deser.rs (line 3090)
3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097
pub fn deser_operation_crate_operation_create_ipam(
inp: &[u8],
mut builder: crate::output::create_ipam_output::Builder,
) -> Result<crate::output::create_ipam_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("CreateIpamResponse")) {
return Err(aws_smithy_xml::decode::XmlDecodeError::custom(format!(
"invalid root, expected CreateIpamResponse got {:?}",
start_el
)));
}
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ipam") /* Ipam com.amazonaws.ec2.synthetic#CreateIpamOutput$Ipam */ => {
let var_115 =
Some(
crate::xml_deser::deser_structure_crate_model_ipam(&mut tag)
?
)
;
builder = builder.set_ipam(var_115);
}
,
_ => {}
}
}
Ok(builder)
}
sourcepub fn build(self) -> CreateIpamOutput
pub fn build(self) -> CreateIpamOutput
Consumes the builder and constructs a CreateIpamOutput
.
Examples found in repository?
src/operation_deser.rs (line 2060)
2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062
pub fn parse_create_ipam_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::CreateIpamOutput, crate::error::CreateIpamError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::create_ipam_output::Builder::default();
let _ = response;
output = crate::xml_deser::deser_operation_crate_operation_create_ipam(
response.body().as_ref(),
output,
)
.map_err(crate::error::CreateIpamError::unhandled)?;
output.build()
})
}