1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Concurrency {
    /// <p>The number of concurrent executions that are reserved for this function. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html">Managing Lambda reserved concurrency</a>.</p>
    pub reserved_concurrent_executions: ::std::option::Option<i32>,
}
impl Concurrency {
    /// <p>The number of concurrent executions that are reserved for this function. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html">Managing Lambda reserved concurrency</a>.</p>
    pub fn reserved_concurrent_executions(&self) -> ::std::option::Option<i32> {
        self.reserved_concurrent_executions
    }
}
impl Concurrency {
    /// Creates a new builder-style object to manufacture [`Concurrency`](crate::types::Concurrency).
    pub fn builder() -> crate::types::builders::ConcurrencyBuilder {
        crate::types::builders::ConcurrencyBuilder::default()
    }
}

/// A builder for [`Concurrency`](crate::types::Concurrency).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ConcurrencyBuilder {
    pub(crate) reserved_concurrent_executions: ::std::option::Option<i32>,
}
impl ConcurrencyBuilder {
    /// <p>The number of concurrent executions that are reserved for this function. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html">Managing Lambda reserved concurrency</a>.</p>
    pub fn reserved_concurrent_executions(mut self, input: i32) -> Self {
        self.reserved_concurrent_executions = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of concurrent executions that are reserved for this function. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html">Managing Lambda reserved concurrency</a>.</p>
    pub fn set_reserved_concurrent_executions(mut self, input: ::std::option::Option<i32>) -> Self {
        self.reserved_concurrent_executions = input;
        self
    }
    /// <p>The number of concurrent executions that are reserved for this function. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html">Managing Lambda reserved concurrency</a>.</p>
    pub fn get_reserved_concurrent_executions(&self) -> &::std::option::Option<i32> {
        &self.reserved_concurrent_executions
    }
    /// Consumes the builder and constructs a [`Concurrency`](crate::types::Concurrency).
    pub fn build(self) -> crate::types::Concurrency {
        crate::types::Concurrency {
            reserved_concurrent_executions: self.reserved_concurrent_executions,
        }
    }
}