aws-sdk-lambda 1.119.0

AWS SDK for AWS Lambda
Documentation
// 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 ListLayersInput {
    /// <p>A runtime identifier.</p>
    /// <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p>
    /// <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
    pub compatible_runtime: ::std::option::Option<crate::types::Runtime>,
    /// <p>A pagination token returned by a previous call.</p>
    pub marker: ::std::option::Option<::std::string::String>,
    /// <p>The maximum number of layers to return.</p>
    pub max_items: ::std::option::Option<i32>,
    /// <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
    pub compatible_architecture: ::std::option::Option<crate::types::Architecture>,
}
impl ListLayersInput {
    /// <p>A runtime identifier.</p>
    /// <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p>
    /// <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
    pub fn compatible_runtime(&self) -> ::std::option::Option<&crate::types::Runtime> {
        self.compatible_runtime.as_ref()
    }
    /// <p>A pagination token returned by a previous call.</p>
    pub fn marker(&self) -> ::std::option::Option<&str> {
        self.marker.as_deref()
    }
    /// <p>The maximum number of layers to return.</p>
    pub fn max_items(&self) -> ::std::option::Option<i32> {
        self.max_items
    }
    /// <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
    pub fn compatible_architecture(&self) -> ::std::option::Option<&crate::types::Architecture> {
        self.compatible_architecture.as_ref()
    }
}
impl ListLayersInput {
    /// Creates a new builder-style object to manufacture [`ListLayersInput`](crate::operation::list_layers::ListLayersInput).
    pub fn builder() -> crate::operation::list_layers::builders::ListLayersInputBuilder {
        crate::operation::list_layers::builders::ListLayersInputBuilder::default()
    }
}

/// A builder for [`ListLayersInput`](crate::operation::list_layers::ListLayersInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListLayersInputBuilder {
    pub(crate) compatible_runtime: ::std::option::Option<crate::types::Runtime>,
    pub(crate) marker: ::std::option::Option<::std::string::String>,
    pub(crate) max_items: ::std::option::Option<i32>,
    pub(crate) compatible_architecture: ::std::option::Option<crate::types::Architecture>,
}
impl ListLayersInputBuilder {
    /// <p>A runtime identifier.</p>
    /// <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p>
    /// <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
    pub fn compatible_runtime(mut self, input: crate::types::Runtime) -> Self {
        self.compatible_runtime = ::std::option::Option::Some(input);
        self
    }
    /// <p>A runtime identifier.</p>
    /// <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p>
    /// <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
    pub fn set_compatible_runtime(mut self, input: ::std::option::Option<crate::types::Runtime>) -> Self {
        self.compatible_runtime = input;
        self
    }
    /// <p>A runtime identifier.</p>
    /// <p>The following list includes deprecated runtimes. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels">Runtime use after deprecation</a>.</p>
    /// <p>For a list of all currently supported runtimes, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported">Supported runtimes</a>.</p>
    pub fn get_compatible_runtime(&self) -> &::std::option::Option<crate::types::Runtime> {
        &self.compatible_runtime
    }
    /// <p>A pagination token returned by a previous call.</p>
    pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.marker = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A pagination token returned by a previous call.</p>
    pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.marker = input;
        self
    }
    /// <p>A pagination token returned by a previous call.</p>
    pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
        &self.marker
    }
    /// <p>The maximum number of layers to return.</p>
    pub fn max_items(mut self, input: i32) -> Self {
        self.max_items = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum number of layers to return.</p>
    pub fn set_max_items(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_items = input;
        self
    }
    /// <p>The maximum number of layers to return.</p>
    pub fn get_max_items(&self) -> &::std::option::Option<i32> {
        &self.max_items
    }
    /// <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
    pub fn compatible_architecture(mut self, input: crate::types::Architecture) -> Self {
        self.compatible_architecture = ::std::option::Option::Some(input);
        self
    }
    /// <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
    pub fn set_compatible_architecture(mut self, input: ::std::option::Option<crate::types::Architecture>) -> Self {
        self.compatible_architecture = input;
        self
    }
    /// <p>The compatible <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
    pub fn get_compatible_architecture(&self) -> &::std::option::Option<crate::types::Architecture> {
        &self.compatible_architecture
    }
    /// Consumes the builder and constructs a [`ListLayersInput`](crate::operation::list_layers::ListLayersInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::list_layers::ListLayersInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::list_layers::ListLayersInput {
            compatible_runtime: self.compatible_runtime,
            marker: self.marker,
            max_items: self.max_items,
            compatible_architecture: self.compatible_architecture,
        })
    }
}