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 GetCapacityProviderInput {
    /// <p>The name of the capacity provider to retrieve.</p>
    pub capacity_provider_name: ::std::option::Option<::std::string::String>,
}
impl GetCapacityProviderInput {
    /// <p>The name of the capacity provider to retrieve.</p>
    pub fn capacity_provider_name(&self) -> ::std::option::Option<&str> {
        self.capacity_provider_name.as_deref()
    }
}
impl GetCapacityProviderInput {
    /// Creates a new builder-style object to manufacture [`GetCapacityProviderInput`](crate::operation::get_capacity_provider::GetCapacityProviderInput).
    pub fn builder() -> crate::operation::get_capacity_provider::builders::GetCapacityProviderInputBuilder {
        crate::operation::get_capacity_provider::builders::GetCapacityProviderInputBuilder::default()
    }
}

/// A builder for [`GetCapacityProviderInput`](crate::operation::get_capacity_provider::GetCapacityProviderInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetCapacityProviderInputBuilder {
    pub(crate) capacity_provider_name: ::std::option::Option<::std::string::String>,
}
impl GetCapacityProviderInputBuilder {
    /// <p>The name of the capacity provider to retrieve.</p>
    /// This field is required.
    pub fn capacity_provider_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.capacity_provider_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the capacity provider to retrieve.</p>
    pub fn set_capacity_provider_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.capacity_provider_name = input;
        self
    }
    /// <p>The name of the capacity provider to retrieve.</p>
    pub fn get_capacity_provider_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.capacity_provider_name
    }
    /// Consumes the builder and constructs a [`GetCapacityProviderInput`](crate::operation::get_capacity_provider::GetCapacityProviderInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_capacity_provider::GetCapacityProviderInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_capacity_provider::GetCapacityProviderInput {
            capacity_provider_name: self.capacity_provider_name,
        })
    }
}