pub struct Builder { /* private fields */ }
Expand description
A builder for ResetFpgaImageAttributeOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn return(self, input: bool) -> Self
pub fn return(self, input: bool) -> Self
Is true
if the request succeeds, and an error otherwise.
sourcepub fn set_return(self, input: Option<bool>) -> Self
pub fn set_return(self, input: Option<bool>) -> Self
Is true
if the request succeeds, and an error otherwise.
Examples found in repository?
src/xml_deser.rs (line 22504)
22471 22472 22473 22474 22475 22476 22477 22478 22479 22480 22481 22482 22483 22484 22485 22486 22487 22488 22489 22490 22491 22492 22493 22494 22495 22496 22497 22498 22499 22500 22501 22502 22503 22504 22505 22506 22507 22508 22509 22510 22511
pub fn deser_operation_crate_operation_reset_fpga_image_attribute(
inp: &[u8],
mut builder: crate::output::reset_fpga_image_attribute_output::Builder,
) -> Result<
crate::output::reset_fpga_image_attribute_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("ResetFpgaImageAttributeResponse")) {
return Err(aws_smithy_xml::decode::XmlDecodeError::custom(format!(
"invalid root, expected ResetFpgaImageAttributeResponse got {:?}",
start_el
)));
}
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("return") /* Return com.amazonaws.ec2.synthetic#ResetFpgaImageAttributeOutput$Return */ => {
let var_843 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_return(var_843);
}
,
_ => {}
}
}
Ok(builder)
}
sourcepub fn build(self) -> ResetFpgaImageAttributeOutput
pub fn build(self) -> ResetFpgaImageAttributeOutput
Consumes the builder and constructs a ResetFpgaImageAttributeOutput
.
Examples found in repository?
src/operation_deser.rs (line 15647)
15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649
pub fn parse_reset_fpga_image_attribute_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::ResetFpgaImageAttributeOutput,
crate::error::ResetFpgaImageAttributeError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::reset_fpga_image_attribute_output::Builder::default();
let _ = response;
output = crate::xml_deser::deser_operation_crate_operation_reset_fpga_image_attribute(
response.body().as_ref(),
output,
)
.map_err(crate::error::ResetFpgaImageAttributeError::unhandled)?;
output.build()
})
}