1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// 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 DeregisterEcsClusterInput {
    /// <p>The cluster's Amazon Resource Number (ARN).</p>
    pub ecs_cluster_arn: ::std::option::Option<::std::string::String>,
}
impl DeregisterEcsClusterInput {
    /// <p>The cluster's Amazon Resource Number (ARN).</p>
    pub fn ecs_cluster_arn(&self) -> ::std::option::Option<&str> {
        self.ecs_cluster_arn.as_deref()
    }
}
impl DeregisterEcsClusterInput {
    /// Creates a new builder-style object to manufacture [`DeregisterEcsClusterInput`](crate::operation::deregister_ecs_cluster::DeregisterEcsClusterInput).
    pub fn builder() -> crate::operation::deregister_ecs_cluster::builders::DeregisterEcsClusterInputBuilder {
        crate::operation::deregister_ecs_cluster::builders::DeregisterEcsClusterInputBuilder::default()
    }
}

/// A builder for [`DeregisterEcsClusterInput`](crate::operation::deregister_ecs_cluster::DeregisterEcsClusterInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeregisterEcsClusterInputBuilder {
    pub(crate) ecs_cluster_arn: ::std::option::Option<::std::string::String>,
}
impl DeregisterEcsClusterInputBuilder {
    /// <p>The cluster's Amazon Resource Number (ARN).</p>
    /// This field is required.
    pub fn ecs_cluster_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ecs_cluster_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The cluster's Amazon Resource Number (ARN).</p>
    pub fn set_ecs_cluster_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ecs_cluster_arn = input;
        self
    }
    /// <p>The cluster's Amazon Resource Number (ARN).</p>
    pub fn get_ecs_cluster_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.ecs_cluster_arn
    }
    /// Consumes the builder and constructs a [`DeregisterEcsClusterInput`](crate::operation::deregister_ecs_cluster::DeregisterEcsClusterInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::deregister_ecs_cluster::DeregisterEcsClusterInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::deregister_ecs_cluster::DeregisterEcsClusterInput {
            ecs_cluster_arn: self.ecs_cluster_arn,
        })
    }
}