aws_sdk_redshift/operation/disable_logging/
_disable_logging_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p></p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DisableLoggingInput {
7    /// <p>The identifier of the cluster on which logging is to be stopped.</p>
8    /// <p>Example: <code>examplecluster</code></p>
9    pub cluster_identifier: ::std::option::Option<::std::string::String>,
10}
11impl DisableLoggingInput {
12    /// <p>The identifier of the cluster on which logging is to be stopped.</p>
13    /// <p>Example: <code>examplecluster</code></p>
14    pub fn cluster_identifier(&self) -> ::std::option::Option<&str> {
15        self.cluster_identifier.as_deref()
16    }
17}
18impl DisableLoggingInput {
19    /// Creates a new builder-style object to manufacture [`DisableLoggingInput`](crate::operation::disable_logging::DisableLoggingInput).
20    pub fn builder() -> crate::operation::disable_logging::builders::DisableLoggingInputBuilder {
21        crate::operation::disable_logging::builders::DisableLoggingInputBuilder::default()
22    }
23}
24
25/// A builder for [`DisableLoggingInput`](crate::operation::disable_logging::DisableLoggingInput).
26#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
27#[non_exhaustive]
28pub struct DisableLoggingInputBuilder {
29    pub(crate) cluster_identifier: ::std::option::Option<::std::string::String>,
30}
31impl DisableLoggingInputBuilder {
32    /// <p>The identifier of the cluster on which logging is to be stopped.</p>
33    /// <p>Example: <code>examplecluster</code></p>
34    /// This field is required.
35    pub fn cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
36        self.cluster_identifier = ::std::option::Option::Some(input.into());
37        self
38    }
39    /// <p>The identifier of the cluster on which logging is to be stopped.</p>
40    /// <p>Example: <code>examplecluster</code></p>
41    pub fn set_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
42        self.cluster_identifier = input;
43        self
44    }
45    /// <p>The identifier of the cluster on which logging is to be stopped.</p>
46    /// <p>Example: <code>examplecluster</code></p>
47    pub fn get_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
48        &self.cluster_identifier
49    }
50    /// Consumes the builder and constructs a [`DisableLoggingInput`](crate::operation::disable_logging::DisableLoggingInput).
51    pub fn build(
52        self,
53    ) -> ::std::result::Result<crate::operation::disable_logging::DisableLoggingInput, ::aws_smithy_types::error::operation::BuildError> {
54        ::std::result::Result::Ok(crate::operation::disable_logging::DisableLoggingInput {
55            cluster_identifier: self.cluster_identifier,
56        })
57    }
58}