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
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetRunOutput {
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::types::RunStatus>,
#[doc(hidden)]
pub workflow_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub workflow_type: std::option::Option<crate::types::WorkflowType>,
#[doc(hidden)]
pub run_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub role_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub run_group_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub priority: std::option::Option<i32>,
#[doc(hidden)]
pub definition: std::option::Option<std::string::String>,
#[doc(hidden)]
pub digest: std::option::Option<std::string::String>,
#[doc(hidden)]
pub parameters: std::option::Option<aws_smithy_types::Document>,
#[doc(hidden)]
pub storage_capacity: std::option::Option<i32>,
#[doc(hidden)]
pub output_uri: std::option::Option<std::string::String>,
#[doc(hidden)]
pub log_level: std::option::Option<crate::types::RunLogLevel>,
#[doc(hidden)]
pub resource_digests:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
#[doc(hidden)]
pub started_by: std::option::Option<std::string::String>,
#[doc(hidden)]
pub creation_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub start_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub stop_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub status_message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
_request_id: Option<String>,
}
impl GetRunOutput {
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::types::RunStatus> {
self.status.as_ref()
}
pub fn workflow_id(&self) -> std::option::Option<&str> {
self.workflow_id.as_deref()
}
pub fn workflow_type(&self) -> std::option::Option<&crate::types::WorkflowType> {
self.workflow_type.as_ref()
}
pub fn run_id(&self) -> std::option::Option<&str> {
self.run_id.as_deref()
}
pub fn role_arn(&self) -> std::option::Option<&str> {
self.role_arn.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn run_group_id(&self) -> std::option::Option<&str> {
self.run_group_id.as_deref()
}
pub fn priority(&self) -> std::option::Option<i32> {
self.priority
}
pub fn definition(&self) -> std::option::Option<&str> {
self.definition.as_deref()
}
pub fn digest(&self) -> std::option::Option<&str> {
self.digest.as_deref()
}
pub fn parameters(&self) -> std::option::Option<&aws_smithy_types::Document> {
self.parameters.as_ref()
}
pub fn storage_capacity(&self) -> std::option::Option<i32> {
self.storage_capacity
}
pub fn output_uri(&self) -> std::option::Option<&str> {
self.output_uri.as_deref()
}
pub fn log_level(&self) -> std::option::Option<&crate::types::RunLogLevel> {
self.log_level.as_ref()
}
pub fn resource_digests(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.resource_digests.as_ref()
}
pub fn started_by(&self) -> std::option::Option<&str> {
self.started_by.as_deref()
}
pub fn creation_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn start_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.start_time.as_ref()
}
pub fn stop_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.stop_time.as_ref()
}
pub fn status_message(&self) -> std::option::Option<&str> {
self.status_message.as_deref()
}
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 GetRunOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetRunOutput {
pub fn builder() -> crate::operation::get_run::builders::GetRunOutputBuilder {
crate::operation::get_run::builders::GetRunOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetRunOutputBuilder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::types::RunStatus>,
pub(crate) workflow_id: std::option::Option<std::string::String>,
pub(crate) workflow_type: std::option::Option<crate::types::WorkflowType>,
pub(crate) run_id: std::option::Option<std::string::String>,
pub(crate) role_arn: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) run_group_id: std::option::Option<std::string::String>,
pub(crate) priority: std::option::Option<i32>,
pub(crate) definition: std::option::Option<std::string::String>,
pub(crate) digest: std::option::Option<std::string::String>,
pub(crate) parameters: std::option::Option<aws_smithy_types::Document>,
pub(crate) storage_capacity: std::option::Option<i32>,
pub(crate) output_uri: std::option::Option<std::string::String>,
pub(crate) log_level: std::option::Option<crate::types::RunLogLevel>,
pub(crate) resource_digests:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
pub(crate) started_by: std::option::Option<std::string::String>,
pub(crate) creation_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) start_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) stop_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) status_message: std::option::Option<std::string::String>,
pub(crate) tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
_request_id: Option<String>,
}
impl GetRunOutputBuilder {
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn status(mut self, input: crate::types::RunStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(mut self, input: std::option::Option<crate::types::RunStatus>) -> Self {
self.status = input;
self
}
pub fn workflow_id(mut self, input: impl Into<std::string::String>) -> Self {
self.workflow_id = Some(input.into());
self
}
pub fn set_workflow_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.workflow_id = input;
self
}
pub fn workflow_type(mut self, input: crate::types::WorkflowType) -> Self {
self.workflow_type = Some(input);
self
}
pub fn set_workflow_type(
mut self,
input: std::option::Option<crate::types::WorkflowType>,
) -> Self {
self.workflow_type = input;
self
}
pub fn run_id(mut self, input: impl Into<std::string::String>) -> Self {
self.run_id = Some(input.into());
self
}
pub fn set_run_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.run_id = input;
self
}
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.role_arn = Some(input.into());
self
}
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role_arn = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn run_group_id(mut self, input: impl Into<std::string::String>) -> Self {
self.run_group_id = Some(input.into());
self
}
pub fn set_run_group_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.run_group_id = input;
self
}
pub fn priority(mut self, input: i32) -> Self {
self.priority = Some(input);
self
}
pub fn set_priority(mut self, input: std::option::Option<i32>) -> Self {
self.priority = input;
self
}
pub fn definition(mut self, input: impl Into<std::string::String>) -> Self {
self.definition = Some(input.into());
self
}
pub fn set_definition(mut self, input: std::option::Option<std::string::String>) -> Self {
self.definition = input;
self
}
pub fn digest(mut self, input: impl Into<std::string::String>) -> Self {
self.digest = Some(input.into());
self
}
pub fn set_digest(mut self, input: std::option::Option<std::string::String>) -> Self {
self.digest = input;
self
}
pub fn parameters(mut self, input: aws_smithy_types::Document) -> Self {
self.parameters = Some(input);
self
}
pub fn set_parameters(
mut self,
input: std::option::Option<aws_smithy_types::Document>,
) -> Self {
self.parameters = input;
self
}
pub fn storage_capacity(mut self, input: i32) -> Self {
self.storage_capacity = Some(input);
self
}
pub fn set_storage_capacity(mut self, input: std::option::Option<i32>) -> Self {
self.storage_capacity = input;
self
}
pub fn output_uri(mut self, input: impl Into<std::string::String>) -> Self {
self.output_uri = Some(input.into());
self
}
pub fn set_output_uri(mut self, input: std::option::Option<std::string::String>) -> Self {
self.output_uri = input;
self
}
pub fn log_level(mut self, input: crate::types::RunLogLevel) -> Self {
self.log_level = Some(input);
self
}
pub fn set_log_level(mut self, input: std::option::Option<crate::types::RunLogLevel>) -> Self {
self.log_level = input;
self
}
pub fn resource_digests(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.resource_digests.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.resource_digests = Some(hash_map);
self
}
pub fn set_resource_digests(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.resource_digests = input;
self
}
pub fn started_by(mut self, input: impl Into<std::string::String>) -> Self {
self.started_by = Some(input.into());
self
}
pub fn set_started_by(mut self, input: std::option::Option<std::string::String>) -> Self {
self.started_by = input;
self
}
pub fn creation_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_time = Some(input);
self
}
pub fn set_creation_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_time = input;
self
}
pub fn start_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.start_time = Some(input);
self
}
pub fn set_start_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.start_time = input;
self
}
pub fn stop_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.stop_time = Some(input);
self
}
pub fn set_stop_time(mut self, input: std::option::Option<aws_smithy_types::DateTime>) -> Self {
self.stop_time = input;
self
}
pub fn status_message(mut self, input: impl Into<std::string::String>) -> Self {
self.status_message = Some(input.into());
self
}
pub fn set_status_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.status_message = input;
self
}
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = Some(hash_map);
self
}
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
}
pub fn build(self) -> crate::operation::get_run::GetRunOutput {
crate::operation::get_run::GetRunOutput {
arn: self.arn,
id: self.id,
status: self.status,
workflow_id: self.workflow_id,
workflow_type: self.workflow_type,
run_id: self.run_id,
role_arn: self.role_arn,
name: self.name,
run_group_id: self.run_group_id,
priority: self.priority,
definition: self.definition,
digest: self.digest,
parameters: self.parameters,
storage_capacity: self.storage_capacity,
output_uri: self.output_uri,
log_level: self.log_level,
resource_digests: self.resource_digests,
started_by: self.started_by,
creation_time: self.creation_time,
start_time: self.start_time,
stop_time: self.stop_time,
status_message: self.status_message,
tags: self.tags,
_request_id: self._request_id,
}
}
}