pub struct Builder { /* private fields */ }
Expand description
A builder for CreateImageBuilderOutput
.
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 1074-1076)
1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099
pub(crate) fn deser_operation_crate_operation_create_image_builder(
value: &[u8],
mut builder: crate::output::create_image_builder_output::Builder,
) -> Result<
crate::output::create_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) -> CreateImageBuilderOutput
pub fn build(self) -> CreateImageBuilderOutput
Consumes the builder and constructs a CreateImageBuilderOutput
.
Examples found in repository?
src/operation_deser.rs (line 1577)
1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579
pub fn parse_create_image_builder_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::CreateImageBuilderOutput,
crate::error::CreateImageBuilderError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::create_image_builder_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_create_image_builder(
response.body().as_ref(),
output,
)
.map_err(crate::error::CreateImageBuilderError::unhandled)?;
output.build()
})
}