#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteClusterInput {
#[doc(hidden)]
pub cluster: std::option::Option<std::string::String>,
}
impl DeleteClusterInput {
pub fn cluster(&self) -> std::option::Option<&str> {
self.cluster.as_deref()
}
}
impl DeleteClusterInput {
pub fn builder() -> crate::operation::delete_cluster::builders::DeleteClusterInputBuilder {
crate::operation::delete_cluster::builders::DeleteClusterInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteClusterInputBuilder {
pub(crate) cluster: std::option::Option<std::string::String>,
}
impl DeleteClusterInputBuilder {
pub fn cluster(mut self, input: impl Into<std::string::String>) -> Self {
self.cluster = Some(input.into());
self
}
pub fn set_cluster(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cluster = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_cluster::DeleteClusterInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_cluster::DeleteClusterInput {
cluster: self.cluster,
})
}
}