1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>This input determines which cluster to describe.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeClusterInput {
    /// <p>The identifier of the cluster to describe.</p>
    #[doc(hidden)]
    pub cluster_id: std::option::Option<std::string::String>,
}
impl DescribeClusterInput {
    /// <p>The identifier of the cluster to describe.</p>
    pub fn cluster_id(&self) -> std::option::Option<&str> {
        self.cluster_id.as_deref()
    }
}
impl DescribeClusterInput {
    /// Creates a new builder-style object to manufacture [`DescribeClusterInput`](crate::operation::describe_cluster::DescribeClusterInput).
    pub fn builder() -> crate::operation::describe_cluster::builders::DescribeClusterInputBuilder {
        crate::operation::describe_cluster::builders::DescribeClusterInputBuilder::default()
    }
}

/// A builder for [`DescribeClusterInput`](crate::operation::describe_cluster::DescribeClusterInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeClusterInputBuilder {
    pub(crate) cluster_id: std::option::Option<std::string::String>,
}
impl DescribeClusterInputBuilder {
    /// <p>The identifier of the cluster to describe.</p>
    pub fn cluster_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.cluster_id = Some(input.into());
        self
    }
    /// <p>The identifier of the cluster to describe.</p>
    pub fn set_cluster_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.cluster_id = input;
        self
    }
    /// Consumes the builder and constructs a [`DescribeClusterInput`](crate::operation::describe_cluster::DescribeClusterInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::describe_cluster::DescribeClusterInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::describe_cluster::DescribeClusterInput {
            cluster_id: self.cluster_id,
        })
    }
}