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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Placeholder documentation for DeleteMultiplexResponse
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteMultiplexOutput {
    /// The unique arn of the multiplex.
    #[doc(hidden)]
    pub arn: ::std::option::Option<::std::string::String>,
    /// A list of availability zones for the multiplex.
    #[doc(hidden)]
    pub availability_zones: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// A list of the multiplex output destinations.
    #[doc(hidden)]
    pub destinations:
        ::std::option::Option<::std::vec::Vec<crate::types::MultiplexOutputDestination>>,
    /// The unique id of the multiplex.
    #[doc(hidden)]
    pub id: ::std::option::Option<::std::string::String>,
    /// Configuration for a multiplex event.
    #[doc(hidden)]
    pub multiplex_settings: ::std::option::Option<crate::types::MultiplexSettings>,
    /// The name of the multiplex.
    #[doc(hidden)]
    pub name: ::std::option::Option<::std::string::String>,
    /// The number of currently healthy pipelines.
    #[doc(hidden)]
    pub pipelines_running_count: ::std::option::Option<i32>,
    /// The number of programs in the multiplex.
    #[doc(hidden)]
    pub program_count: ::std::option::Option<i32>,
    /// The current state of the multiplex.
    #[doc(hidden)]
    pub state: ::std::option::Option<crate::types::MultiplexState>,
    /// A collection of key-value pairs.
    #[doc(hidden)]
    pub tags: ::std::option::Option<
        ::std::collections::HashMap<::std::string::String, ::std::string::String>,
    >,
    _request_id: Option<String>,
}
impl DeleteMultiplexOutput {
    /// The unique arn of the multiplex.
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// A list of availability zones for the multiplex.
    pub fn availability_zones(&self) -> ::std::option::Option<&[::std::string::String]> {
        self.availability_zones.as_deref()
    }
    /// A list of the multiplex output destinations.
    pub fn destinations(
        &self,
    ) -> ::std::option::Option<&[crate::types::MultiplexOutputDestination]> {
        self.destinations.as_deref()
    }
    /// The unique id of the multiplex.
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// Configuration for a multiplex event.
    pub fn multiplex_settings(&self) -> ::std::option::Option<&crate::types::MultiplexSettings> {
        self.multiplex_settings.as_ref()
    }
    /// The name of the multiplex.
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// The number of currently healthy pipelines.
    pub fn pipelines_running_count(&self) -> ::std::option::Option<i32> {
        self.pipelines_running_count
    }
    /// The number of programs in the multiplex.
    pub fn program_count(&self) -> ::std::option::Option<i32> {
        self.program_count
    }
    /// The current state of the multiplex.
    pub fn state(&self) -> ::std::option::Option<&crate::types::MultiplexState> {
        self.state.as_ref()
    }
    /// A collection of key-value pairs.
    pub fn tags(
        &self,
    ) -> ::std::option::Option<
        &::std::collections::HashMap<::std::string::String, ::std::string::String>,
    > {
        self.tags.as_ref()
    }
}
impl ::aws_http::request_id::RequestId for DeleteMultiplexOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DeleteMultiplexOutput {
    /// Creates a new builder-style object to manufacture [`DeleteMultiplexOutput`](crate::operation::delete_multiplex::DeleteMultiplexOutput).
    pub fn builder() -> crate::operation::delete_multiplex::builders::DeleteMultiplexOutputBuilder {
        crate::operation::delete_multiplex::builders::DeleteMultiplexOutputBuilder::default()
    }
}

/// A builder for [`DeleteMultiplexOutput`](crate::operation::delete_multiplex::DeleteMultiplexOutput).
#[non_exhaustive]
#[derive(
    ::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
)]
pub struct DeleteMultiplexOutputBuilder {
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) availability_zones: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) destinations:
        ::std::option::Option<::std::vec::Vec<crate::types::MultiplexOutputDestination>>,
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) multiplex_settings: ::std::option::Option<crate::types::MultiplexSettings>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) pipelines_running_count: ::std::option::Option<i32>,
    pub(crate) program_count: ::std::option::Option<i32>,
    pub(crate) state: ::std::option::Option<crate::types::MultiplexState>,
    pub(crate) tags: ::std::option::Option<
        ::std::collections::HashMap<::std::string::String, ::std::string::String>,
    >,
    _request_id: Option<String>,
}
impl DeleteMultiplexOutputBuilder {
    /// The unique arn of the multiplex.
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arn = ::std::option::Option::Some(input.into());
        self
    }
    /// The unique arn of the multiplex.
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// Appends an item to `availability_zones`.
    ///
    /// To override the contents of this collection use [`set_availability_zones`](Self::set_availability_zones).
    ///
    /// A list of availability zones for the multiplex.
    pub fn availability_zones(
        mut self,
        input: impl ::std::convert::Into<::std::string::String>,
    ) -> Self {
        let mut v = self.availability_zones.unwrap_or_default();
        v.push(input.into());
        self.availability_zones = ::std::option::Option::Some(v);
        self
    }
    /// A list of availability zones for the multiplex.
    pub fn set_availability_zones(
        mut self,
        input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    ) -> Self {
        self.availability_zones = input;
        self
    }
    /// Appends an item to `destinations`.
    ///
    /// To override the contents of this collection use [`set_destinations`](Self::set_destinations).
    ///
    /// A list of the multiplex output destinations.
    pub fn destinations(mut self, input: crate::types::MultiplexOutputDestination) -> Self {
        let mut v = self.destinations.unwrap_or_default();
        v.push(input);
        self.destinations = ::std::option::Option::Some(v);
        self
    }
    /// A list of the multiplex output destinations.
    pub fn set_destinations(
        mut self,
        input: ::std::option::Option<::std::vec::Vec<crate::types::MultiplexOutputDestination>>,
    ) -> Self {
        self.destinations = input;
        self
    }
    /// The unique id of the multiplex.
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// The unique id of the multiplex.
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// Configuration for a multiplex event.
    pub fn multiplex_settings(mut self, input: crate::types::MultiplexSettings) -> Self {
        self.multiplex_settings = ::std::option::Option::Some(input);
        self
    }
    /// Configuration for a multiplex event.
    pub fn set_multiplex_settings(
        mut self,
        input: ::std::option::Option<crate::types::MultiplexSettings>,
    ) -> Self {
        self.multiplex_settings = input;
        self
    }
    /// The name of the multiplex.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// The name of the multiplex.
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// The number of currently healthy pipelines.
    pub fn pipelines_running_count(mut self, input: i32) -> Self {
        self.pipelines_running_count = ::std::option::Option::Some(input);
        self
    }
    /// The number of currently healthy pipelines.
    pub fn set_pipelines_running_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.pipelines_running_count = input;
        self
    }
    /// The number of programs in the multiplex.
    pub fn program_count(mut self, input: i32) -> Self {
        self.program_count = ::std::option::Option::Some(input);
        self
    }
    /// The number of programs in the multiplex.
    pub fn set_program_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.program_count = input;
        self
    }
    /// The current state of the multiplex.
    pub fn state(mut self, input: crate::types::MultiplexState) -> Self {
        self.state = ::std::option::Option::Some(input);
        self
    }
    /// The current state of the multiplex.
    pub fn set_state(mut self, input: ::std::option::Option<crate::types::MultiplexState>) -> Self {
        self.state = input;
        self
    }
    /// Adds a key-value pair to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// A collection of key-value pairs.
    pub fn tags(
        mut self,
        k: impl ::std::convert::Into<::std::string::String>,
        v: impl ::std::convert::Into<::std::string::String>,
    ) -> Self {
        let mut hash_map = self.tags.unwrap_or_default();
        hash_map.insert(k.into(), v.into());
        self.tags = ::std::option::Option::Some(hash_map);
        self
    }
    /// A collection of key-value pairs.
    pub fn set_tags(
        mut self,
        input: ::std::option::Option<
            ::std::collections::HashMap<::std::string::String, ::std::string::String>,
        >,
    ) -> Self {
        self.tags = input;
        self
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DeleteMultiplexOutput`](crate::operation::delete_multiplex::DeleteMultiplexOutput).
    pub fn build(self) -> crate::operation::delete_multiplex::DeleteMultiplexOutput {
        crate::operation::delete_multiplex::DeleteMultiplexOutput {
            arn: self.arn,
            availability_zones: self.availability_zones,
            destinations: self.destinations,
            id: self.id,
            multiplex_settings: self.multiplex_settings,
            name: self.name,
            pipelines_running_count: self.pipelines_running_count,
            program_count: self.program_count,
            state: self.state,
            tags: self.tags,
            _request_id: self._request_id,
        }
    }
}