pub struct Builder { /* private fields */ }
Expand description
A builder for GetFunctionConcurrencyOutput
.
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 simultaneous executions that are reserved for the function.
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 simultaneous executions that are reserved for the function.
Examples found in repository?
src/json_deser.rs (lines 2403-2409)
2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432
pub(crate) fn deser_operation_crate_operation_get_function_concurrency(
value: &[u8],
mut builder: crate::output::get_function_concurrency_output::Builder,
) -> Result<
crate::output::get_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) -> GetFunctionConcurrencyOutput
pub fn build(self) -> GetFunctionConcurrencyOutput
Consumes the builder and constructs a GetFunctionConcurrencyOutput
.
Examples found in repository?
src/operation_deser.rs (line 2904)
2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906
pub fn parse_get_function_concurrency_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetFunctionConcurrencyOutput,
crate::error::GetFunctionConcurrencyError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_function_concurrency_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_get_function_concurrency(
response.body().as_ref(),
output,
)
.map_err(crate::error::GetFunctionConcurrencyError::unhandled)?;
output.build()
})
}