aws-sdk-cloudwatchlogs 1.134.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 DeleteIndexPolicyInput {
    /// <p>The log group to delete the index policy for. You can specify either the name or the ARN of the log group.</p>
    pub log_group_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteIndexPolicyInput {
    /// <p>The log group to delete the index policy for. You can specify either the name or the ARN of the log group.</p>
    pub fn log_group_identifier(&self) -> ::std::option::Option<&str> {
        self.log_group_identifier.as_deref()
    }
}
impl DeleteIndexPolicyInput {
    /// Creates a new builder-style object to manufacture [`DeleteIndexPolicyInput`](crate::operation::delete_index_policy::DeleteIndexPolicyInput).
    pub fn builder() -> crate::operation::delete_index_policy::builders::DeleteIndexPolicyInputBuilder {
        crate::operation::delete_index_policy::builders::DeleteIndexPolicyInputBuilder::default()
    }
}

/// A builder for [`DeleteIndexPolicyInput`](crate::operation::delete_index_policy::DeleteIndexPolicyInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteIndexPolicyInputBuilder {
    pub(crate) log_group_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteIndexPolicyInputBuilder {
    /// <p>The log group to delete the index policy for. You can specify either the name or the ARN of the log group.</p>
    /// This field is required.
    pub fn log_group_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.log_group_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The log group to delete the index policy for. You can specify either the name or the ARN of the log group.</p>
    pub fn set_log_group_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.log_group_identifier = input;
        self
    }
    /// <p>The log group to delete the index policy for. You can specify either the name or the ARN of the log group.</p>
    pub fn get_log_group_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.log_group_identifier
    }
    /// Consumes the builder and constructs a [`DeleteIndexPolicyInput`](crate::operation::delete_index_policy::DeleteIndexPolicyInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_index_policy::DeleteIndexPolicyInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_index_policy::DeleteIndexPolicyInput {
            log_group_identifier: self.log_group_identifier,
        })
    }
}