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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes a registered Amazon ECS cluster.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct EcsCluster {
    /// <p>The cluster's ARN.</p>
    pub ecs_cluster_arn: ::std::option::Option<::std::string::String>,
    /// <p>The cluster name.</p>
    pub ecs_cluster_name: ::std::option::Option<::std::string::String>,
    /// <p>The stack ID.</p>
    pub stack_id: ::std::option::Option<::std::string::String>,
    /// <p>The time and date that the cluster was registered with the stack.</p>
    pub registered_at: ::std::option::Option<::std::string::String>,
}
impl EcsCluster {
    /// <p>The cluster's ARN.</p>
    pub fn ecs_cluster_arn(&self) -> ::std::option::Option<&str> {
        self.ecs_cluster_arn.as_deref()
    }
    /// <p>The cluster name.</p>
    pub fn ecs_cluster_name(&self) -> ::std::option::Option<&str> {
        self.ecs_cluster_name.as_deref()
    }
    /// <p>The stack ID.</p>
    pub fn stack_id(&self) -> ::std::option::Option<&str> {
        self.stack_id.as_deref()
    }
    /// <p>The time and date that the cluster was registered with the stack.</p>
    pub fn registered_at(&self) -> ::std::option::Option<&str> {
        self.registered_at.as_deref()
    }
}
impl EcsCluster {
    /// Creates a new builder-style object to manufacture [`EcsCluster`](crate::types::EcsCluster).
    pub fn builder() -> crate::types::builders::EcsClusterBuilder {
        crate::types::builders::EcsClusterBuilder::default()
    }
}

/// A builder for [`EcsCluster`](crate::types::EcsCluster).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct EcsClusterBuilder {
    pub(crate) ecs_cluster_arn: ::std::option::Option<::std::string::String>,
    pub(crate) ecs_cluster_name: ::std::option::Option<::std::string::String>,
    pub(crate) stack_id: ::std::option::Option<::std::string::String>,
    pub(crate) registered_at: ::std::option::Option<::std::string::String>,
}
impl EcsClusterBuilder {
    /// <p>The cluster's ARN.</p>
    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 cluster name.</p>
    pub fn ecs_cluster_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ecs_cluster_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The cluster name.</p>
    pub fn set_ecs_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ecs_cluster_name = input;
        self
    }
    /// <p>The cluster name.</p>
    pub fn get_ecs_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.ecs_cluster_name
    }
    /// <p>The stack ID.</p>
    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
    }
    /// <p>The time and date that the cluster was registered with the stack.</p>
    pub fn registered_at(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.registered_at = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The time and date that the cluster was registered with the stack.</p>
    pub fn set_registered_at(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.registered_at = input;
        self
    }
    /// <p>The time and date that the cluster was registered with the stack.</p>
    pub fn get_registered_at(&self) -> &::std::option::Option<::std::string::String> {
        &self.registered_at
    }
    /// Consumes the builder and constructs a [`EcsCluster`](crate::types::EcsCluster).
    pub fn build(self) -> crate::types::EcsCluster {
        crate::types::EcsCluster {
            ecs_cluster_arn: self.ecs_cluster_arn,
            ecs_cluster_name: self.ecs_cluster_name,
            stack_id: self.stack_id,
            registered_at: self.registered_at,
        }
    }
}