aws-sdk-cloudwatchlogs 1.126.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 GetLookupTableOutput {
    /// <p>The ARN of the lookup table.</p>
    pub lookup_table_arn: ::std::option::Option<::std::string::String>,
    /// <p>The name of the lookup table.</p>
    pub lookup_table_name: ::std::option::Option<::std::string::String>,
    /// <p>The description of the lookup table.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The full CSV content of the lookup table.</p>
    pub table_body: ::std::option::Option<::std::string::String>,
    /// <p>The size of the lookup table in bytes.</p>
    pub size_bytes: ::std::option::Option<i64>,
    /// <p>The time when the lookup table was last updated, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>
    pub last_updated_time: ::std::option::Option<i64>,
    /// <p>The ARN of the KMS key used to encrypt the lookup table data, if applicable.</p>
    pub kms_key_id: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetLookupTableOutput {
    /// <p>The ARN of the lookup table.</p>
    pub fn lookup_table_arn(&self) -> ::std::option::Option<&str> {
        self.lookup_table_arn.as_deref()
    }
    /// <p>The name of the lookup table.</p>
    pub fn lookup_table_name(&self) -> ::std::option::Option<&str> {
        self.lookup_table_name.as_deref()
    }
    /// <p>The description of the lookup table.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The full CSV content of the lookup table.</p>
    pub fn table_body(&self) -> ::std::option::Option<&str> {
        self.table_body.as_deref()
    }
    /// <p>The size of the lookup table in bytes.</p>
    pub fn size_bytes(&self) -> ::std::option::Option<i64> {
        self.size_bytes
    }
    /// <p>The time when the lookup table was last updated, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>
    pub fn last_updated_time(&self) -> ::std::option::Option<i64> {
        self.last_updated_time
    }
    /// <p>The ARN of the KMS key used to encrypt the lookup table data, if applicable.</p>
    pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
        self.kms_key_id.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for GetLookupTableOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetLookupTableOutput {
    /// Creates a new builder-style object to manufacture [`GetLookupTableOutput`](crate::operation::get_lookup_table::GetLookupTableOutput).
    pub fn builder() -> crate::operation::get_lookup_table::builders::GetLookupTableOutputBuilder {
        crate::operation::get_lookup_table::builders::GetLookupTableOutputBuilder::default()
    }
}

/// A builder for [`GetLookupTableOutput`](crate::operation::get_lookup_table::GetLookupTableOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetLookupTableOutputBuilder {
    pub(crate) lookup_table_arn: ::std::option::Option<::std::string::String>,
    pub(crate) lookup_table_name: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) table_body: ::std::option::Option<::std::string::String>,
    pub(crate) size_bytes: ::std::option::Option<i64>,
    pub(crate) last_updated_time: ::std::option::Option<i64>,
    pub(crate) kms_key_id: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetLookupTableOutputBuilder {
    /// <p>The ARN of the lookup table.</p>
    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.</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.</p>
    pub fn get_lookup_table_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.lookup_table_arn
    }
    /// <p>The name of the lookup table.</p>
    pub fn lookup_table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.lookup_table_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the lookup table.</p>
    pub fn set_lookup_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.lookup_table_name = input;
        self
    }
    /// <p>The name of the lookup table.</p>
    pub fn get_lookup_table_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.lookup_table_name
    }
    /// <p>The description of the lookup table.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The description of the lookup table.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The description of the lookup table.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The full CSV content of the lookup table.</p>
    pub fn table_body(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.table_body = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The full CSV content of the lookup table.</p>
    pub fn set_table_body(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.table_body = input;
        self
    }
    /// <p>The full CSV content of the lookup table.</p>
    pub fn get_table_body(&self) -> &::std::option::Option<::std::string::String> {
        &self.table_body
    }
    /// <p>The size of the lookup table in bytes.</p>
    pub fn size_bytes(mut self, input: i64) -> Self {
        self.size_bytes = ::std::option::Option::Some(input);
        self
    }
    /// <p>The size of the lookup table in bytes.</p>
    pub fn set_size_bytes(mut self, input: ::std::option::Option<i64>) -> Self {
        self.size_bytes = input;
        self
    }
    /// <p>The size of the lookup table in bytes.</p>
    pub fn get_size_bytes(&self) -> &::std::option::Option<i64> {
        &self.size_bytes
    }
    /// <p>The time when the lookup table was last updated, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>
    pub fn last_updated_time(mut self, input: i64) -> Self {
        self.last_updated_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time when the lookup table was last updated, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>
    pub fn set_last_updated_time(mut self, input: ::std::option::Option<i64>) -> Self {
        self.last_updated_time = input;
        self
    }
    /// <p>The time when the lookup table was last updated, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>.</p>
    pub fn get_last_updated_time(&self) -> &::std::option::Option<i64> {
        &self.last_updated_time
    }
    /// <p>The ARN of the KMS key used to encrypt the lookup table data, if applicable.</p>
    pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.kms_key_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the KMS key used to encrypt the lookup table data, if applicable.</p>
    pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.kms_key_id = input;
        self
    }
    /// <p>The ARN of the KMS key used to encrypt the lookup table data, if applicable.</p>
    pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.kms_key_id
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetLookupTableOutput`](crate::operation::get_lookup_table::GetLookupTableOutput).
    pub fn build(self) -> crate::operation::get_lookup_table::GetLookupTableOutput {
        crate::operation::get_lookup_table::GetLookupTableOutput {
            lookup_table_arn: self.lookup_table_arn,
            lookup_table_name: self.lookup_table_name,
            description: self.description,
            table_body: self.table_body,
            size_bytes: self.size_bytes,
            last_updated_time: self.last_updated_time,
            kms_key_id: self.kms_key_id,
            _request_id: self._request_id,
        }
    }
}