pub struct Builder { /* private fields */ }
Expand description
A builder for PutFunctionConcurrencyOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn reserved_concurrent_executions(self, input: i32) -> Self
pub fn reserved_concurrent_executions(self, input: i32) -> Self
The number of concurrent executions that are reserved for this function. For more information, see Managing Concurrency.
sourcepub fn set_reserved_concurrent_executions(self, input: Option<i32>) -> Self
pub fn set_reserved_concurrent_executions(self, input: Option<i32>) -> Self
The number of concurrent executions that are reserved for this function. For more information, see Managing Concurrency.
Examples found in repository?
src/json_deser.rs (lines 5831-5837)
5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860
pub(crate) fn deser_operation_crate_operation_put_function_concurrency(
value: &[u8],
mut builder: crate::output::put_function_concurrency_output::Builder,
) -> Result<
crate::output::put_function_concurrency_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() {
"ReservedConcurrentExecutions" => {
builder = builder.set_reserved_concurrent_executions(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
_ => 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) -> PutFunctionConcurrencyOutput
pub fn build(self) -> PutFunctionConcurrencyOutput
Consumes the builder and constructs a PutFunctionConcurrencyOutput
.
Examples found in repository?
src/operation_deser.rs (line 6259)
6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261
pub fn parse_put_function_concurrency_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::PutFunctionConcurrencyOutput,
crate::error::PutFunctionConcurrencyError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::put_function_concurrency_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_put_function_concurrency(
response.body().as_ref(),
output,
)
.map_err(crate::error::PutFunctionConcurrencyError::unhandled)?;
output.build()
})
}