1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteClusterInput {
6/// <p>The name of the cluster to be deleted.</p>
7pub cluster_name: ::std::option::Option<::std::string::String>,
8}
9impl DeleteClusterInput {
10/// <p>The name of the cluster to be deleted.</p>
11pub fn cluster_name(&self) -> ::std::option::Option<&str> {
12self.cluster_name.as_deref()
13 }
14}
15impl DeleteClusterInput {
16/// Creates a new builder-style object to manufacture [`DeleteClusterInput`](crate::operation::delete_cluster::DeleteClusterInput).
17pub fn builder() -> crate::operation::delete_cluster::builders::DeleteClusterInputBuilder {
18crate::operation::delete_cluster::builders::DeleteClusterInputBuilder::default()
19 }
20}
2122/// A builder for [`DeleteClusterInput`](crate::operation::delete_cluster::DeleteClusterInput).
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct DeleteClusterInputBuilder {
26pub(crate) cluster_name: ::std::option::Option<::std::string::String>,
27}
28impl DeleteClusterInputBuilder {
29/// <p>The name of the cluster to be deleted.</p>
30 /// This field is required.
31pub fn cluster_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
32self.cluster_name = ::std::option::Option::Some(input.into());
33self
34}
35/// <p>The name of the cluster to be deleted.</p>
36pub fn set_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
37self.cluster_name = input;
38self
39}
40/// <p>The name of the cluster to be deleted.</p>
41pub fn get_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
42&self.cluster_name
43 }
44/// Consumes the builder and constructs a [`DeleteClusterInput`](crate::operation::delete_cluster::DeleteClusterInput).
45pub fn build(
46self,
47 ) -> ::std::result::Result<crate::operation::delete_cluster::DeleteClusterInput, ::aws_smithy_types::error::operation::BuildError> {
48 ::std::result::Result::Ok(crate::operation::delete_cluster::DeleteClusterInput {
49 cluster_name: self.cluster_name,
50 })
51 }
52}