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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes how many instances a stack has for each status.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct InstancesCount {
    /// <p>The number of instances in the Assigning state.</p>
    pub assigning: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>booting</code> status.</p>
    pub booting: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>connection_lost</code> status.</p>
    pub connection_lost: ::std::option::Option<i32>,
    /// <p>The number of instances in the Deregistering state.</p>
    pub deregistering: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>online</code> status.</p>
    pub online: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>pending</code> status.</p>
    pub pending: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>rebooting</code> status.</p>
    pub rebooting: ::std::option::Option<i32>,
    /// <p>The number of instances in the Registered state.</p>
    pub registered: ::std::option::Option<i32>,
    /// <p>The number of instances in the Registering state.</p>
    pub registering: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>requested</code> status.</p>
    pub requested: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>running_setup</code> status.</p>
    pub running_setup: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>setup_failed</code> status.</p>
    pub setup_failed: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>shutting_down</code> status.</p>
    pub shutting_down: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>start_failed</code> status.</p>
    pub start_failed: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>stop_failed</code> status.</p>
    pub stop_failed: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>stopped</code> status.</p>
    pub stopped: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>stopping</code> status.</p>
    pub stopping: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>terminated</code> status.</p>
    pub terminated: ::std::option::Option<i32>,
    /// <p>The number of instances with <code>terminating</code> status.</p>
    pub terminating: ::std::option::Option<i32>,
    /// <p>The number of instances in the Unassigning state.</p>
    pub unassigning: ::std::option::Option<i32>,
}
impl InstancesCount {
    /// <p>The number of instances in the Assigning state.</p>
    pub fn assigning(&self) -> ::std::option::Option<i32> {
        self.assigning
    }
    /// <p>The number of instances with <code>booting</code> status.</p>
    pub fn booting(&self) -> ::std::option::Option<i32> {
        self.booting
    }
    /// <p>The number of instances with <code>connection_lost</code> status.</p>
    pub fn connection_lost(&self) -> ::std::option::Option<i32> {
        self.connection_lost
    }
    /// <p>The number of instances in the Deregistering state.</p>
    pub fn deregistering(&self) -> ::std::option::Option<i32> {
        self.deregistering
    }
    /// <p>The number of instances with <code>online</code> status.</p>
    pub fn online(&self) -> ::std::option::Option<i32> {
        self.online
    }
    /// <p>The number of instances with <code>pending</code> status.</p>
    pub fn pending(&self) -> ::std::option::Option<i32> {
        self.pending
    }
    /// <p>The number of instances with <code>rebooting</code> status.</p>
    pub fn rebooting(&self) -> ::std::option::Option<i32> {
        self.rebooting
    }
    /// <p>The number of instances in the Registered state.</p>
    pub fn registered(&self) -> ::std::option::Option<i32> {
        self.registered
    }
    /// <p>The number of instances in the Registering state.</p>
    pub fn registering(&self) -> ::std::option::Option<i32> {
        self.registering
    }
    /// <p>The number of instances with <code>requested</code> status.</p>
    pub fn requested(&self) -> ::std::option::Option<i32> {
        self.requested
    }
    /// <p>The number of instances with <code>running_setup</code> status.</p>
    pub fn running_setup(&self) -> ::std::option::Option<i32> {
        self.running_setup
    }
    /// <p>The number of instances with <code>setup_failed</code> status.</p>
    pub fn setup_failed(&self) -> ::std::option::Option<i32> {
        self.setup_failed
    }
    /// <p>The number of instances with <code>shutting_down</code> status.</p>
    pub fn shutting_down(&self) -> ::std::option::Option<i32> {
        self.shutting_down
    }
    /// <p>The number of instances with <code>start_failed</code> status.</p>
    pub fn start_failed(&self) -> ::std::option::Option<i32> {
        self.start_failed
    }
    /// <p>The number of instances with <code>stop_failed</code> status.</p>
    pub fn stop_failed(&self) -> ::std::option::Option<i32> {
        self.stop_failed
    }
    /// <p>The number of instances with <code>stopped</code> status.</p>
    pub fn stopped(&self) -> ::std::option::Option<i32> {
        self.stopped
    }
    /// <p>The number of instances with <code>stopping</code> status.</p>
    pub fn stopping(&self) -> ::std::option::Option<i32> {
        self.stopping
    }
    /// <p>The number of instances with <code>terminated</code> status.</p>
    pub fn terminated(&self) -> ::std::option::Option<i32> {
        self.terminated
    }
    /// <p>The number of instances with <code>terminating</code> status.</p>
    pub fn terminating(&self) -> ::std::option::Option<i32> {
        self.terminating
    }
    /// <p>The number of instances in the Unassigning state.</p>
    pub fn unassigning(&self) -> ::std::option::Option<i32> {
        self.unassigning
    }
}
impl InstancesCount {
    /// Creates a new builder-style object to manufacture [`InstancesCount`](crate::types::InstancesCount).
    pub fn builder() -> crate::types::builders::InstancesCountBuilder {
        crate::types::builders::InstancesCountBuilder::default()
    }
}

/// A builder for [`InstancesCount`](crate::types::InstancesCount).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct InstancesCountBuilder {
    pub(crate) assigning: ::std::option::Option<i32>,
    pub(crate) booting: ::std::option::Option<i32>,
    pub(crate) connection_lost: ::std::option::Option<i32>,
    pub(crate) deregistering: ::std::option::Option<i32>,
    pub(crate) online: ::std::option::Option<i32>,
    pub(crate) pending: ::std::option::Option<i32>,
    pub(crate) rebooting: ::std::option::Option<i32>,
    pub(crate) registered: ::std::option::Option<i32>,
    pub(crate) registering: ::std::option::Option<i32>,
    pub(crate) requested: ::std::option::Option<i32>,
    pub(crate) running_setup: ::std::option::Option<i32>,
    pub(crate) setup_failed: ::std::option::Option<i32>,
    pub(crate) shutting_down: ::std::option::Option<i32>,
    pub(crate) start_failed: ::std::option::Option<i32>,
    pub(crate) stop_failed: ::std::option::Option<i32>,
    pub(crate) stopped: ::std::option::Option<i32>,
    pub(crate) stopping: ::std::option::Option<i32>,
    pub(crate) terminated: ::std::option::Option<i32>,
    pub(crate) terminating: ::std::option::Option<i32>,
    pub(crate) unassigning: ::std::option::Option<i32>,
}
impl InstancesCountBuilder {
    /// <p>The number of instances in the Assigning state.</p>
    pub fn assigning(mut self, input: i32) -> Self {
        self.assigning = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances in the Assigning state.</p>
    pub fn set_assigning(mut self, input: ::std::option::Option<i32>) -> Self {
        self.assigning = input;
        self
    }
    /// <p>The number of instances in the Assigning state.</p>
    pub fn get_assigning(&self) -> &::std::option::Option<i32> {
        &self.assigning
    }
    /// <p>The number of instances with <code>booting</code> status.</p>
    pub fn booting(mut self, input: i32) -> Self {
        self.booting = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>booting</code> status.</p>
    pub fn set_booting(mut self, input: ::std::option::Option<i32>) -> Self {
        self.booting = input;
        self
    }
    /// <p>The number of instances with <code>booting</code> status.</p>
    pub fn get_booting(&self) -> &::std::option::Option<i32> {
        &self.booting
    }
    /// <p>The number of instances with <code>connection_lost</code> status.</p>
    pub fn connection_lost(mut self, input: i32) -> Self {
        self.connection_lost = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>connection_lost</code> status.</p>
    pub fn set_connection_lost(mut self, input: ::std::option::Option<i32>) -> Self {
        self.connection_lost = input;
        self
    }
    /// <p>The number of instances with <code>connection_lost</code> status.</p>
    pub fn get_connection_lost(&self) -> &::std::option::Option<i32> {
        &self.connection_lost
    }
    /// <p>The number of instances in the Deregistering state.</p>
    pub fn deregistering(mut self, input: i32) -> Self {
        self.deregistering = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances in the Deregistering state.</p>
    pub fn set_deregistering(mut self, input: ::std::option::Option<i32>) -> Self {
        self.deregistering = input;
        self
    }
    /// <p>The number of instances in the Deregistering state.</p>
    pub fn get_deregistering(&self) -> &::std::option::Option<i32> {
        &self.deregistering
    }
    /// <p>The number of instances with <code>online</code> status.</p>
    pub fn online(mut self, input: i32) -> Self {
        self.online = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>online</code> status.</p>
    pub fn set_online(mut self, input: ::std::option::Option<i32>) -> Self {
        self.online = input;
        self
    }
    /// <p>The number of instances with <code>online</code> status.</p>
    pub fn get_online(&self) -> &::std::option::Option<i32> {
        &self.online
    }
    /// <p>The number of instances with <code>pending</code> status.</p>
    pub fn pending(mut self, input: i32) -> Self {
        self.pending = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>pending</code> status.</p>
    pub fn set_pending(mut self, input: ::std::option::Option<i32>) -> Self {
        self.pending = input;
        self
    }
    /// <p>The number of instances with <code>pending</code> status.</p>
    pub fn get_pending(&self) -> &::std::option::Option<i32> {
        &self.pending
    }
    /// <p>The number of instances with <code>rebooting</code> status.</p>
    pub fn rebooting(mut self, input: i32) -> Self {
        self.rebooting = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>rebooting</code> status.</p>
    pub fn set_rebooting(mut self, input: ::std::option::Option<i32>) -> Self {
        self.rebooting = input;
        self
    }
    /// <p>The number of instances with <code>rebooting</code> status.</p>
    pub fn get_rebooting(&self) -> &::std::option::Option<i32> {
        &self.rebooting
    }
    /// <p>The number of instances in the Registered state.</p>
    pub fn registered(mut self, input: i32) -> Self {
        self.registered = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances in the Registered state.</p>
    pub fn set_registered(mut self, input: ::std::option::Option<i32>) -> Self {
        self.registered = input;
        self
    }
    /// <p>The number of instances in the Registered state.</p>
    pub fn get_registered(&self) -> &::std::option::Option<i32> {
        &self.registered
    }
    /// <p>The number of instances in the Registering state.</p>
    pub fn registering(mut self, input: i32) -> Self {
        self.registering = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances in the Registering state.</p>
    pub fn set_registering(mut self, input: ::std::option::Option<i32>) -> Self {
        self.registering = input;
        self
    }
    /// <p>The number of instances in the Registering state.</p>
    pub fn get_registering(&self) -> &::std::option::Option<i32> {
        &self.registering
    }
    /// <p>The number of instances with <code>requested</code> status.</p>
    pub fn requested(mut self, input: i32) -> Self {
        self.requested = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>requested</code> status.</p>
    pub fn set_requested(mut self, input: ::std::option::Option<i32>) -> Self {
        self.requested = input;
        self
    }
    /// <p>The number of instances with <code>requested</code> status.</p>
    pub fn get_requested(&self) -> &::std::option::Option<i32> {
        &self.requested
    }
    /// <p>The number of instances with <code>running_setup</code> status.</p>
    pub fn running_setup(mut self, input: i32) -> Self {
        self.running_setup = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>running_setup</code> status.</p>
    pub fn set_running_setup(mut self, input: ::std::option::Option<i32>) -> Self {
        self.running_setup = input;
        self
    }
    /// <p>The number of instances with <code>running_setup</code> status.</p>
    pub fn get_running_setup(&self) -> &::std::option::Option<i32> {
        &self.running_setup
    }
    /// <p>The number of instances with <code>setup_failed</code> status.</p>
    pub fn setup_failed(mut self, input: i32) -> Self {
        self.setup_failed = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>setup_failed</code> status.</p>
    pub fn set_setup_failed(mut self, input: ::std::option::Option<i32>) -> Self {
        self.setup_failed = input;
        self
    }
    /// <p>The number of instances with <code>setup_failed</code> status.</p>
    pub fn get_setup_failed(&self) -> &::std::option::Option<i32> {
        &self.setup_failed
    }
    /// <p>The number of instances with <code>shutting_down</code> status.</p>
    pub fn shutting_down(mut self, input: i32) -> Self {
        self.shutting_down = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>shutting_down</code> status.</p>
    pub fn set_shutting_down(mut self, input: ::std::option::Option<i32>) -> Self {
        self.shutting_down = input;
        self
    }
    /// <p>The number of instances with <code>shutting_down</code> status.</p>
    pub fn get_shutting_down(&self) -> &::std::option::Option<i32> {
        &self.shutting_down
    }
    /// <p>The number of instances with <code>start_failed</code> status.</p>
    pub fn start_failed(mut self, input: i32) -> Self {
        self.start_failed = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>start_failed</code> status.</p>
    pub fn set_start_failed(mut self, input: ::std::option::Option<i32>) -> Self {
        self.start_failed = input;
        self
    }
    /// <p>The number of instances with <code>start_failed</code> status.</p>
    pub fn get_start_failed(&self) -> &::std::option::Option<i32> {
        &self.start_failed
    }
    /// <p>The number of instances with <code>stop_failed</code> status.</p>
    pub fn stop_failed(mut self, input: i32) -> Self {
        self.stop_failed = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>stop_failed</code> status.</p>
    pub fn set_stop_failed(mut self, input: ::std::option::Option<i32>) -> Self {
        self.stop_failed = input;
        self
    }
    /// <p>The number of instances with <code>stop_failed</code> status.</p>
    pub fn get_stop_failed(&self) -> &::std::option::Option<i32> {
        &self.stop_failed
    }
    /// <p>The number of instances with <code>stopped</code> status.</p>
    pub fn stopped(mut self, input: i32) -> Self {
        self.stopped = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>stopped</code> status.</p>
    pub fn set_stopped(mut self, input: ::std::option::Option<i32>) -> Self {
        self.stopped = input;
        self
    }
    /// <p>The number of instances with <code>stopped</code> status.</p>
    pub fn get_stopped(&self) -> &::std::option::Option<i32> {
        &self.stopped
    }
    /// <p>The number of instances with <code>stopping</code> status.</p>
    pub fn stopping(mut self, input: i32) -> Self {
        self.stopping = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>stopping</code> status.</p>
    pub fn set_stopping(mut self, input: ::std::option::Option<i32>) -> Self {
        self.stopping = input;
        self
    }
    /// <p>The number of instances with <code>stopping</code> status.</p>
    pub fn get_stopping(&self) -> &::std::option::Option<i32> {
        &self.stopping
    }
    /// <p>The number of instances with <code>terminated</code> status.</p>
    pub fn terminated(mut self, input: i32) -> Self {
        self.terminated = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>terminated</code> status.</p>
    pub fn set_terminated(mut self, input: ::std::option::Option<i32>) -> Self {
        self.terminated = input;
        self
    }
    /// <p>The number of instances with <code>terminated</code> status.</p>
    pub fn get_terminated(&self) -> &::std::option::Option<i32> {
        &self.terminated
    }
    /// <p>The number of instances with <code>terminating</code> status.</p>
    pub fn terminating(mut self, input: i32) -> Self {
        self.terminating = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances with <code>terminating</code> status.</p>
    pub fn set_terminating(mut self, input: ::std::option::Option<i32>) -> Self {
        self.terminating = input;
        self
    }
    /// <p>The number of instances with <code>terminating</code> status.</p>
    pub fn get_terminating(&self) -> &::std::option::Option<i32> {
        &self.terminating
    }
    /// <p>The number of instances in the Unassigning state.</p>
    pub fn unassigning(mut self, input: i32) -> Self {
        self.unassigning = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of instances in the Unassigning state.</p>
    pub fn set_unassigning(mut self, input: ::std::option::Option<i32>) -> Self {
        self.unassigning = input;
        self
    }
    /// <p>The number of instances in the Unassigning state.</p>
    pub fn get_unassigning(&self) -> &::std::option::Option<i32> {
        &self.unassigning
    }
    /// Consumes the builder and constructs a [`InstancesCount`](crate::types::InstancesCount).
    pub fn build(self) -> crate::types::InstancesCount {
        crate::types::InstancesCount {
            assigning: self.assigning,
            booting: self.booting,
            connection_lost: self.connection_lost,
            deregistering: self.deregistering,
            online: self.online,
            pending: self.pending,
            rebooting: self.rebooting,
            registered: self.registered,
            registering: self.registering,
            requested: self.requested,
            running_setup: self.running_setup,
            setup_failed: self.setup_failed,
            shutting_down: self.shutting_down,
            start_failed: self.start_failed,
            stop_failed: self.stop_failed,
            stopped: self.stopped,
            stopping: self.stopping,
            terminated: self.terminated,
            terminating: self.terminating,
            unassigning: self.unassigning,
        }
    }
}