pub struct Builder { /* private fields */ }
Expand description
A builder for DeleteImageBuilderOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn image_builder(self, input: ImageBuilder) -> Self
pub fn image_builder(self, input: ImageBuilder) -> Self
Information about the image builder.
sourcepub fn set_image_builder(self, input: Option<ImageBuilder>) -> Self
pub fn set_image_builder(self, input: Option<ImageBuilder>) -> Self
Information about the image builder.
Examples found in repository?
src/json_deser.rs (lines 1485-1487)
1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510
pub(crate) fn deser_operation_crate_operation_delete_image_builder(
value: &[u8],
mut builder: crate::output::delete_image_builder_output::Builder,
) -> Result<
crate::output::delete_image_builder_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"ImageBuilder" => {
builder = builder.set_image_builder(
crate::json_deser::deser_structure_crate_model_image_builder(tokens)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}
sourcepub fn build(self) -> DeleteImageBuilderOutput
pub fn build(self) -> DeleteImageBuilderOutput
Consumes the builder and constructs a DeleteImageBuilderOutput
.
Examples found in repository?
src/operation_deser.rs (line 2930)
2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932
pub fn parse_delete_image_builder_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::DeleteImageBuilderOutput,
crate::error::DeleteImageBuilderError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::delete_image_builder_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_delete_image_builder(
response.body().as_ref(),
output,
)
.map_err(crate::error::DeleteImageBuilderError::unhandled)?;
output.build()
})
}