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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// 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 RegisterEcsClusterInput {
    /// <p>The cluster's ARN.</p>
    pub ecs_cluster_arn: ::std::option::Option<::std::string::String>,
    /// <p>The stack ID.</p>
    pub stack_id: ::std::option::Option<::std::string::String>,
}
impl RegisterEcsClusterInput {
    /// <p>The cluster's ARN.</p>
    pub fn ecs_cluster_arn(&self) -> ::std::option::Option<&str> {
        self.ecs_cluster_arn.as_deref()
    }
    /// <p>The stack ID.</p>
    pub fn stack_id(&self) -> ::std::option::Option<&str> {
        self.stack_id.as_deref()
    }
}
impl RegisterEcsClusterInput {
    /// Creates a new builder-style object to manufacture [`RegisterEcsClusterInput`](crate::operation::register_ecs_cluster::RegisterEcsClusterInput).
    pub fn builder() -> crate::operation::register_ecs_cluster::builders::RegisterEcsClusterInputBuilder {
        crate::operation::register_ecs_cluster::builders::RegisterEcsClusterInputBuilder::default()
    }
}

/// A builder for [`RegisterEcsClusterInput`](crate::operation::register_ecs_cluster::RegisterEcsClusterInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct RegisterEcsClusterInputBuilder {
    pub(crate) ecs_cluster_arn: ::std::option::Option<::std::string::String>,
    pub(crate) stack_id: ::std::option::Option<::std::string::String>,
}
impl RegisterEcsClusterInputBuilder {
    /// <p>The cluster's 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 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 ARN.</p>
    pub fn get_ecs_cluster_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.ecs_cluster_arn
    }
    /// <p>The stack ID.</p>
    /// This field is required.
    pub fn stack_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stack_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The stack ID.</p>
    pub fn set_stack_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stack_id = input;
        self
    }
    /// <p>The stack ID.</p>
    pub fn get_stack_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.stack_id
    }
    /// Consumes the builder and constructs a [`RegisterEcsClusterInput`](crate::operation::register_ecs_cluster::RegisterEcsClusterInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::register_ecs_cluster::RegisterEcsClusterInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::register_ecs_cluster::RegisterEcsClusterInput {
            ecs_cluster_arn: self.ecs_cluster_arn,
            stack_id: self.stack_id,
        })
    }
}