aws-sdk-cloudwatchlogs 1.135.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 UpdateLookupTableInput {
    /// <p>The ARN of the lookup table to update.</p>
    pub lookup_table_arn: ::std::option::Option<::std::string::String>,
    /// <p>An updated description of the lookup table.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The new CSV content to replace the existing data. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.</p>
    pub table_body: ::std::option::Option<::std::string::String>,
    /// <p>The ARN of the KMS key to use to encrypt the lookup table data. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string.</p>
    pub kms_key_id: ::std::option::Option<::std::string::String>,
}
impl UpdateLookupTableInput {
    /// <p>The ARN of the lookup table to update.</p>
    pub fn lookup_table_arn(&self) -> ::std::option::Option<&str> {
        self.lookup_table_arn.as_deref()
    }
    /// <p>An updated description of the lookup table.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The new CSV content to replace the existing data. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.</p>
    pub fn table_body(&self) -> ::std::option::Option<&str> {
        self.table_body.as_deref()
    }
    /// <p>The ARN of the KMS key to use to encrypt the lookup table data. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string.</p>
    pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
        self.kms_key_id.as_deref()
    }
}
impl UpdateLookupTableInput {
    /// Creates a new builder-style object to manufacture [`UpdateLookupTableInput`](crate::operation::update_lookup_table::UpdateLookupTableInput).
    pub fn builder() -> crate::operation::update_lookup_table::builders::UpdateLookupTableInputBuilder {
        crate::operation::update_lookup_table::builders::UpdateLookupTableInputBuilder::default()
    }
}

/// A builder for [`UpdateLookupTableInput`](crate::operation::update_lookup_table::UpdateLookupTableInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateLookupTableInputBuilder {
    pub(crate) lookup_table_arn: ::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) kms_key_id: ::std::option::Option<::std::string::String>,
}
impl UpdateLookupTableInputBuilder {
    /// <p>The ARN of the lookup table to update.</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 update.</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 update.</p>
    pub fn get_lookup_table_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.lookup_table_arn
    }
    /// <p>An updated 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>An updated 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>An updated description of the lookup table.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The new CSV content to replace the existing data. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.</p>
    /// This field is required.
    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 new CSV content to replace the existing data. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.</p>
    pub fn set_table_body(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.table_body = input;
        self
    }
    /// <p>The new CSV content to replace the existing data. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.</p>
    pub fn get_table_body(&self) -> &::std::option::Option<::std::string::String> {
        &self.table_body
    }
    /// <p>The ARN of the KMS key to use to encrypt the lookup table data. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string.</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 to use to encrypt the lookup table data. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string.</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 to use to encrypt the lookup table data. You can use this parameter to add, update, or remove the KMS key. To remove the KMS key and use an Amazon Web Services-owned key instead, specify an empty string.</p>
    pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.kms_key_id
    }
    /// Consumes the builder and constructs a [`UpdateLookupTableInput`](crate::operation::update_lookup_table::UpdateLookupTableInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_lookup_table::UpdateLookupTableInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_lookup_table::UpdateLookupTableInput {
            lookup_table_arn: self.lookup_table_arn,
            description: self.description,
            table_body: self.table_body,
            kms_key_id: self.kms_key_id,
        })
    }
}