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 UpdateLookupTableOutput {
    /// <p>The ARN of the lookup table that was updated.</p>
    pub lookup_table_arn: ::std::option::Option<::std::string::String>,
    /// <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>,
    _request_id: Option<String>,
}
impl UpdateLookupTableOutput {
    /// <p>The ARN of the lookup table that was updated.</p>
    pub fn lookup_table_arn(&self) -> ::std::option::Option<&str> {
        self.lookup_table_arn.as_deref()
    }
    /// <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
    }
}
impl ::aws_types::request_id::RequestId for UpdateLookupTableOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl UpdateLookupTableOutput {
    /// Creates a new builder-style object to manufacture [`UpdateLookupTableOutput`](crate::operation::update_lookup_table::UpdateLookupTableOutput).
    pub fn builder() -> crate::operation::update_lookup_table::builders::UpdateLookupTableOutputBuilder {
        crate::operation::update_lookup_table::builders::UpdateLookupTableOutputBuilder::default()
    }
}

/// A builder for [`UpdateLookupTableOutput`](crate::operation::update_lookup_table::UpdateLookupTableOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateLookupTableOutputBuilder {
    pub(crate) lookup_table_arn: ::std::option::Option<::std::string::String>,
    pub(crate) last_updated_time: ::std::option::Option<i64>,
    _request_id: Option<String>,
}
impl UpdateLookupTableOutputBuilder {
    /// <p>The ARN of the lookup table that was updated.</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 that was updated.</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 that was updated.</p>
    pub fn get_lookup_table_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.lookup_table_arn
    }
    /// <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
    }
    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 [`UpdateLookupTableOutput`](crate::operation::update_lookup_table::UpdateLookupTableOutput).
    pub fn build(self) -> crate::operation::update_lookup_table::UpdateLookupTableOutput {
        crate::operation::update_lookup_table::UpdateLookupTableOutput {
            lookup_table_arn: self.lookup_table_arn,
            last_updated_time: self.last_updated_time,
            _request_id: self._request_id,
        }
    }
}