aws-sdk-redshift 1.106.0

AWS SDK for Amazon Redshift
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p></p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeLoggingStatusInput {
    /// <p>The identifier of the cluster from which to get the logging status.</p>
    /// <p>Example: <code>examplecluster</code></p>
    pub cluster_identifier: ::std::option::Option<::std::string::String>,
}
impl DescribeLoggingStatusInput {
    /// <p>The identifier of the cluster from which to get the logging status.</p>
    /// <p>Example: <code>examplecluster</code></p>
    pub fn cluster_identifier(&self) -> ::std::option::Option<&str> {
        self.cluster_identifier.as_deref()
    }
}
impl DescribeLoggingStatusInput {
    /// Creates a new builder-style object to manufacture [`DescribeLoggingStatusInput`](crate::operation::describe_logging_status::DescribeLoggingStatusInput).
    pub fn builder() -> crate::operation::describe_logging_status::builders::DescribeLoggingStatusInputBuilder {
        crate::operation::describe_logging_status::builders::DescribeLoggingStatusInputBuilder::default()
    }
}

/// A builder for [`DescribeLoggingStatusInput`](crate::operation::describe_logging_status::DescribeLoggingStatusInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeLoggingStatusInputBuilder {
    pub(crate) cluster_identifier: ::std::option::Option<::std::string::String>,
}
impl DescribeLoggingStatusInputBuilder {
    /// <p>The identifier of the cluster from which to get the logging status.</p>
    /// <p>Example: <code>examplecluster</code></p>
    /// This field is required.
    pub fn cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.cluster_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the cluster from which to get the logging status.</p>
    /// <p>Example: <code>examplecluster</code></p>
    pub fn set_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cluster_identifier = input;
        self
    }
    /// <p>The identifier of the cluster from which to get the logging status.</p>
    /// <p>Example: <code>examplecluster</code></p>
    pub fn get_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.cluster_identifier
    }
    /// Consumes the builder and constructs a [`DescribeLoggingStatusInput`](crate::operation::describe_logging_status::DescribeLoggingStatusInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_logging_status::DescribeLoggingStatusInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::describe_logging_status::DescribeLoggingStatusInput {
            cluster_identifier: self.cluster_identifier,
        })
    }
}