pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateParameterGroupOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn parameter_group(self, input: ParameterGroup) -> Self
pub fn parameter_group(self, input: ParameterGroup) -> Self
The updated parameter group
sourcepub fn set_parameter_group(self, input: Option<ParameterGroup>) -> Self
pub fn set_parameter_group(self, input: Option<ParameterGroup>) -> Self
The updated parameter group
Examples found in repository?
src/json_deser.rs (lines 3929-3931)
3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954
pub(crate) fn deser_operation_crate_operation_update_parameter_group(
value: &[u8],
mut builder: crate::output::update_parameter_group_output::Builder,
) -> Result<
crate::output::update_parameter_group_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() {
"ParameterGroup" => {
builder = builder.set_parameter_group(
crate::json_deser::deser_structure_crate_model_parameter_group(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) -> UpdateParameterGroupOutput
pub fn build(self) -> UpdateParameterGroupOutput
Consumes the builder and constructs a UpdateParameterGroupOutput
.
Examples found in repository?
src/operation_deser.rs (line 4573)
4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575
pub fn parse_update_parameter_group_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::UpdateParameterGroupOutput,
crate::error::UpdateParameterGroupError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_parameter_group_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_update_parameter_group(
response.body().as_ref(),
output,
)
.map_err(crate::error::UpdateParameterGroupError::unhandled)?;
output.build()
})
}