aws-sdk-cloudwatchlogs 1.131.0

AWS SDK for Amazon CloudWatch Logs
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 GetLookupTableInput {
    /// <p>The ARN of the lookup table to retrieve.</p>
    pub lookup_table_arn: ::std::option::Option<::std::string::String>,
}
impl GetLookupTableInput {
    /// <p>The ARN of the lookup table to retrieve.</p>
    pub fn lookup_table_arn(&self) -> ::std::option::Option<&str> {
        self.lookup_table_arn.as_deref()
    }
}
impl GetLookupTableInput {
    /// Creates a new builder-style object to manufacture [`GetLookupTableInput`](crate::operation::get_lookup_table::GetLookupTableInput).
    pub fn builder() -> crate::operation::get_lookup_table::builders::GetLookupTableInputBuilder {
        crate::operation::get_lookup_table::builders::GetLookupTableInputBuilder::default()
    }
}

/// A builder for [`GetLookupTableInput`](crate::operation::get_lookup_table::GetLookupTableInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetLookupTableInputBuilder {
    pub(crate) lookup_table_arn: ::std::option::Option<::std::string::String>,
}
impl GetLookupTableInputBuilder {
    /// <p>The ARN of the lookup table to retrieve.</p>
    /// This field is required.
    pub fn lookup_table_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.lookup_table_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the lookup table to retrieve.</p>
    pub fn set_lookup_table_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.lookup_table_arn = input;
        self
    }
    /// <p>The ARN of the lookup table to retrieve.</p>
    pub fn get_lookup_table_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.lookup_table_arn
    }
    /// Consumes the builder and constructs a [`GetLookupTableInput`](crate::operation::get_lookup_table::GetLookupTableInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_lookup_table::GetLookupTableInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_lookup_table::GetLookupTableInput {
            lookup_table_arn: self.lookup_table_arn,
        })
    }
}