aws-sdk-docdbelastic 0.5.0

AWS SDK for Amazon DocumentDB Elastic Clusters
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 DeleteClusterInput {
    /// <p>The arn of the Elastic DocumentDB cluster that is to be deleted.</p>
    #[doc(hidden)]
    pub cluster_arn: std::option::Option<std::string::String>,
}
impl DeleteClusterInput {
    /// <p>The arn of the Elastic DocumentDB cluster that is to be deleted.</p>
    pub fn cluster_arn(&self) -> std::option::Option<&str> {
        self.cluster_arn.as_deref()
    }
}
impl DeleteClusterInput {
    /// Creates a new builder-style object to manufacture [`DeleteClusterInput`](crate::operation::delete_cluster::DeleteClusterInput).
    pub fn builder() -> crate::operation::delete_cluster::builders::DeleteClusterInputBuilder {
        crate::operation::delete_cluster::builders::DeleteClusterInputBuilder::default()
    }
}

/// A builder for [`DeleteClusterInput`](crate::operation::delete_cluster::DeleteClusterInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteClusterInputBuilder {
    pub(crate) cluster_arn: std::option::Option<std::string::String>,
}
impl DeleteClusterInputBuilder {
    /// <p>The arn of the Elastic DocumentDB cluster that is to be deleted.</p>
    pub fn cluster_arn(mut self, input: impl Into<std::string::String>) -> Self {
        self.cluster_arn = Some(input.into());
        self
    }
    /// <p>The arn of the Elastic DocumentDB cluster that is to be deleted.</p>
    pub fn set_cluster_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.cluster_arn = input;
        self
    }
    /// Consumes the builder and constructs a [`DeleteClusterInput`](crate::operation::delete_cluster::DeleteClusterInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::delete_cluster::DeleteClusterInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::delete_cluster::DeleteClusterInput {
            cluster_arn: self.cluster_arn,
        })
    }
}