aws-sdk-snowball 0.27.0

AWS SDK for Amazon Import/Export Snowball
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 DescribeClusterInput {
    /// <p>The automatically generated ID for a cluster.</p>
    #[doc(hidden)]
    pub cluster_id: std::option::Option<std::string::String>,
}
impl DescribeClusterInput {
    /// <p>The automatically generated ID for a cluster.</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 automatically generated ID for a cluster.</p>
    pub fn cluster_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.cluster_id = Some(input.into());
        self
    }
    /// <p>The automatically generated ID for a cluster.</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,
        })
    }
}