pub struct Builder { /* private fields */ }Expand description
A builder for UpdateTestGridProjectOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn test_grid_project(self, input: TestGridProject) -> Self
pub fn test_grid_project(self, input: TestGridProject) -> Self
The project, including updated information.
sourcepub fn set_test_grid_project(self, input: Option<TestGridProject>) -> Self
pub fn set_test_grid_project(self, input: Option<TestGridProject>) -> Self
The project, including updated information.
Examples found in repository?
src/json_deser.rs (lines 3746-3750)
3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773
pub(crate) fn deser_operation_crate_operation_update_test_grid_project(
value: &[u8],
mut builder: crate::output::update_test_grid_project_output::Builder,
) -> Result<
crate::output::update_test_grid_project_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() {
"testGridProject" => {
builder = builder.set_test_grid_project(
crate::json_deser::deser_structure_crate_model_test_grid_project(
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) -> UpdateTestGridProjectOutput
pub fn build(self) -> UpdateTestGridProjectOutput
Consumes the builder and constructs a UpdateTestGridProjectOutput.
Examples found in repository?
src/operation_deser.rs (line 7931)
7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933
pub fn parse_update_test_grid_project_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::UpdateTestGridProjectOutput,
crate::error::UpdateTestGridProjectError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_test_grid_project_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_update_test_grid_project(
response.body().as_ref(),
output,
)
.map_err(crate::error::UpdateTestGridProjectError::unhandled)?;
output.build()
})
}