aws_sdk_kafka/operation/describe_cluster/
_describe_cluster_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeClusterInput {
6    pub cluster_arn: ::std::option::Option<::std::string::String>,
8}
9impl DescribeClusterInput {
10    pub fn cluster_arn(&self) -> ::std::option::Option<&str> {
12        self.cluster_arn.as_deref()
13    }
14}
15impl DescribeClusterInput {
16    pub fn builder() -> crate::operation::describe_cluster::builders::DescribeClusterInputBuilder {
18        crate::operation::describe_cluster::builders::DescribeClusterInputBuilder::default()
19    }
20}
21
22#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct DescribeClusterInputBuilder {
26    pub(crate) cluster_arn: ::std::option::Option<::std::string::String>,
27}
28impl DescribeClusterInputBuilder {
29    pub fn cluster_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
32        self.cluster_arn = ::std::option::Option::Some(input.into());
33        self
34    }
35    pub fn set_cluster_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
37        self.cluster_arn = input;
38        self
39    }
40    pub fn get_cluster_arn(&self) -> &::std::option::Option<::std::string::String> {
42        &self.cluster_arn
43    }
44    pub fn build(
46        self,
47    ) -> ::std::result::Result<crate::operation::describe_cluster::DescribeClusterInput, ::aws_smithy_types::error::operation::BuildError> {
48        ::std::result::Result::Ok(crate::operation::describe_cluster::DescribeClusterInput {
49            cluster_arn: self.cluster_arn,
50        })
51    }
52}