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 CancelClusterInput {
    /// <p>The 39-character ID for the cluster that you want to cancel, for example <code>CID123e4567-e89b-12d3-a456-426655440000</code>.</p>
    #[doc(hidden)]
    pub cluster_id: std::option::Option<std::string::String>,
}
impl CancelClusterInput {
    /// <p>The 39-character ID for the cluster that you want to cancel, for example <code>CID123e4567-e89b-12d3-a456-426655440000</code>.</p>
    pub fn cluster_id(&self) -> std::option::Option<&str> {
        self.cluster_id.as_deref()
    }
}
impl CancelClusterInput {
    /// Creates a new builder-style object to manufacture [`CancelClusterInput`](crate::operation::cancel_cluster::CancelClusterInput).
    pub fn builder() -> crate::operation::cancel_cluster::builders::CancelClusterInputBuilder {
        crate::operation::cancel_cluster::builders::CancelClusterInputBuilder::default()
    }
}

/// A builder for [`CancelClusterInput`](crate::operation::cancel_cluster::CancelClusterInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct CancelClusterInputBuilder {
    pub(crate) cluster_id: std::option::Option<std::string::String>,
}
impl CancelClusterInputBuilder {
    /// <p>The 39-character ID for the cluster that you want to cancel, for example <code>CID123e4567-e89b-12d3-a456-426655440000</code>.</p>
    pub fn cluster_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.cluster_id = Some(input.into());
        self
    }
    /// <p>The 39-character ID for the cluster that you want to cancel, for example <code>CID123e4567-e89b-12d3-a456-426655440000</code>.</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 [`CancelClusterInput`](crate::operation::cancel_cluster::CancelClusterInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::cancel_cluster::CancelClusterInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::cancel_cluster::CancelClusterInput {
            cluster_id: self.cluster_id,
        })
    }
}