aws_sdk_deadline/operation/get_step/
_get_step_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
5pub struct GetStepOutput {
6    /// <p>The step ID.</p>
7    pub step_id: ::std::string::String,
8    /// <p>The name of the step.</p>
9    pub name: ::std::string::String,
10    /// <p>The life cycle status of the step.</p>
11    pub lifecycle_status: crate::types::StepLifecycleStatus,
12    /// <p>A message that describes the lifecycle status of the step.</p>
13    pub lifecycle_status_message: ::std::option::Option<::std::string::String>,
14    /// <p>The task run status for the job.</p>
15    pub task_run_status: crate::types::TaskRunStatus,
16    /// <p>The number of tasks running on the job.</p>
17    pub task_run_status_counts: ::std::collections::HashMap<crate::types::TaskRunStatus, i32>,
18    /// <p>The total number of times tasks from the step failed and were retried.</p>
19    pub task_failure_retry_count: ::std::option::Option<i32>,
20    /// <p>The task status with which the job started.</p>
21    pub target_task_run_status: ::std::option::Option<crate::types::StepTargetTaskRunStatus>,
22    /// <p>The date and time the resource was created.</p>
23    pub created_at: ::aws_smithy_types::DateTime,
24    /// <p>The user or system that created this resource.</p>
25    pub created_by: ::std::string::String,
26    /// <p>The date and time the resource was updated.</p>
27    pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
28    /// <p>The user or system that updated this resource.</p>
29    pub updated_by: ::std::option::Option<::std::string::String>,
30    /// <p>The date and time the resource started running.</p>
31    pub started_at: ::std::option::Option<::aws_smithy_types::DateTime>,
32    /// <p>The date and time the resource ended running.</p>
33    pub ended_at: ::std::option::Option<::aws_smithy_types::DateTime>,
34    /// <p>The number of dependencies in the step.</p>
35    pub dependency_counts: ::std::option::Option<crate::types::DependencyCounts>,
36    /// <p>The required capabilities of the step.</p>
37    pub required_capabilities: ::std::option::Option<crate::types::StepRequiredCapabilities>,
38    /// <p>A list of step parameters and the combination expression for the step.</p>
39    pub parameter_space: ::std::option::Option<crate::types::ParameterSpace>,
40    /// <p>The description of the step.</p><important>
41    /// <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p>
42    /// </important>
43    pub description: ::std::option::Option<::std::string::String>,
44    _request_id: Option<String>,
45}
46impl GetStepOutput {
47    /// <p>The step ID.</p>
48    pub fn step_id(&self) -> &str {
49        use std::ops::Deref;
50        self.step_id.deref()
51    }
52    /// <p>The name of the step.</p>
53    pub fn name(&self) -> &str {
54        use std::ops::Deref;
55        self.name.deref()
56    }
57    /// <p>The life cycle status of the step.</p>
58    pub fn lifecycle_status(&self) -> &crate::types::StepLifecycleStatus {
59        &self.lifecycle_status
60    }
61    /// <p>A message that describes the lifecycle status of the step.</p>
62    pub fn lifecycle_status_message(&self) -> ::std::option::Option<&str> {
63        self.lifecycle_status_message.as_deref()
64    }
65    /// <p>The task run status for the job.</p>
66    pub fn task_run_status(&self) -> &crate::types::TaskRunStatus {
67        &self.task_run_status
68    }
69    /// <p>The number of tasks running on the job.</p>
70    pub fn task_run_status_counts(&self) -> &::std::collections::HashMap<crate::types::TaskRunStatus, i32> {
71        &self.task_run_status_counts
72    }
73    /// <p>The total number of times tasks from the step failed and were retried.</p>
74    pub fn task_failure_retry_count(&self) -> ::std::option::Option<i32> {
75        self.task_failure_retry_count
76    }
77    /// <p>The task status with which the job started.</p>
78    pub fn target_task_run_status(&self) -> ::std::option::Option<&crate::types::StepTargetTaskRunStatus> {
79        self.target_task_run_status.as_ref()
80    }
81    /// <p>The date and time the resource was created.</p>
82    pub fn created_at(&self) -> &::aws_smithy_types::DateTime {
83        &self.created_at
84    }
85    /// <p>The user or system that created this resource.</p>
86    pub fn created_by(&self) -> &str {
87        use std::ops::Deref;
88        self.created_by.deref()
89    }
90    /// <p>The date and time the resource was updated.</p>
91    pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
92        self.updated_at.as_ref()
93    }
94    /// <p>The user or system that updated this resource.</p>
95    pub fn updated_by(&self) -> ::std::option::Option<&str> {
96        self.updated_by.as_deref()
97    }
98    /// <p>The date and time the resource started running.</p>
99    pub fn started_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
100        self.started_at.as_ref()
101    }
102    /// <p>The date and time the resource ended running.</p>
103    pub fn ended_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
104        self.ended_at.as_ref()
105    }
106    /// <p>The number of dependencies in the step.</p>
107    pub fn dependency_counts(&self) -> ::std::option::Option<&crate::types::DependencyCounts> {
108        self.dependency_counts.as_ref()
109    }
110    /// <p>The required capabilities of the step.</p>
111    pub fn required_capabilities(&self) -> ::std::option::Option<&crate::types::StepRequiredCapabilities> {
112        self.required_capabilities.as_ref()
113    }
114    /// <p>A list of step parameters and the combination expression for the step.</p>
115    pub fn parameter_space(&self) -> ::std::option::Option<&crate::types::ParameterSpace> {
116        self.parameter_space.as_ref()
117    }
118    /// <p>The description of the step.</p><important>
119    /// <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p>
120    /// </important>
121    pub fn description(&self) -> ::std::option::Option<&str> {
122        self.description.as_deref()
123    }
124}
125impl ::std::fmt::Debug for GetStepOutput {
126    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
127        let mut formatter = f.debug_struct("GetStepOutput");
128        formatter.field("step_id", &self.step_id);
129        formatter.field("name", &self.name);
130        formatter.field("lifecycle_status", &self.lifecycle_status);
131        formatter.field("lifecycle_status_message", &self.lifecycle_status_message);
132        formatter.field("task_run_status", &self.task_run_status);
133        formatter.field("task_run_status_counts", &self.task_run_status_counts);
134        formatter.field("task_failure_retry_count", &self.task_failure_retry_count);
135        formatter.field("target_task_run_status", &self.target_task_run_status);
136        formatter.field("created_at", &self.created_at);
137        formatter.field("created_by", &self.created_by);
138        formatter.field("updated_at", &self.updated_at);
139        formatter.field("updated_by", &self.updated_by);
140        formatter.field("started_at", &self.started_at);
141        formatter.field("ended_at", &self.ended_at);
142        formatter.field("dependency_counts", &self.dependency_counts);
143        formatter.field("required_capabilities", &self.required_capabilities);
144        formatter.field("parameter_space", &self.parameter_space);
145        formatter.field("description", &"*** Sensitive Data Redacted ***");
146        formatter.field("_request_id", &self._request_id);
147        formatter.finish()
148    }
149}
150impl ::aws_types::request_id::RequestId for GetStepOutput {
151    fn request_id(&self) -> Option<&str> {
152        self._request_id.as_deref()
153    }
154}
155impl GetStepOutput {
156    /// Creates a new builder-style object to manufacture [`GetStepOutput`](crate::operation::get_step::GetStepOutput).
157    pub fn builder() -> crate::operation::get_step::builders::GetStepOutputBuilder {
158        crate::operation::get_step::builders::GetStepOutputBuilder::default()
159    }
160}
161
162/// A builder for [`GetStepOutput`](crate::operation::get_step::GetStepOutput).
163#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
164#[non_exhaustive]
165pub struct GetStepOutputBuilder {
166    pub(crate) step_id: ::std::option::Option<::std::string::String>,
167    pub(crate) name: ::std::option::Option<::std::string::String>,
168    pub(crate) lifecycle_status: ::std::option::Option<crate::types::StepLifecycleStatus>,
169    pub(crate) lifecycle_status_message: ::std::option::Option<::std::string::String>,
170    pub(crate) task_run_status: ::std::option::Option<crate::types::TaskRunStatus>,
171    pub(crate) task_run_status_counts: ::std::option::Option<::std::collections::HashMap<crate::types::TaskRunStatus, i32>>,
172    pub(crate) task_failure_retry_count: ::std::option::Option<i32>,
173    pub(crate) target_task_run_status: ::std::option::Option<crate::types::StepTargetTaskRunStatus>,
174    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
175    pub(crate) created_by: ::std::option::Option<::std::string::String>,
176    pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
177    pub(crate) updated_by: ::std::option::Option<::std::string::String>,
178    pub(crate) started_at: ::std::option::Option<::aws_smithy_types::DateTime>,
179    pub(crate) ended_at: ::std::option::Option<::aws_smithy_types::DateTime>,
180    pub(crate) dependency_counts: ::std::option::Option<crate::types::DependencyCounts>,
181    pub(crate) required_capabilities: ::std::option::Option<crate::types::StepRequiredCapabilities>,
182    pub(crate) parameter_space: ::std::option::Option<crate::types::ParameterSpace>,
183    pub(crate) description: ::std::option::Option<::std::string::String>,
184    _request_id: Option<String>,
185}
186impl GetStepOutputBuilder {
187    /// <p>The step ID.</p>
188    /// This field is required.
189    pub fn step_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
190        self.step_id = ::std::option::Option::Some(input.into());
191        self
192    }
193    /// <p>The step ID.</p>
194    pub fn set_step_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
195        self.step_id = input;
196        self
197    }
198    /// <p>The step ID.</p>
199    pub fn get_step_id(&self) -> &::std::option::Option<::std::string::String> {
200        &self.step_id
201    }
202    /// <p>The name of the step.</p>
203    /// This field is required.
204    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
205        self.name = ::std::option::Option::Some(input.into());
206        self
207    }
208    /// <p>The name of the step.</p>
209    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
210        self.name = input;
211        self
212    }
213    /// <p>The name of the step.</p>
214    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
215        &self.name
216    }
217    /// <p>The life cycle status of the step.</p>
218    /// This field is required.
219    pub fn lifecycle_status(mut self, input: crate::types::StepLifecycleStatus) -> Self {
220        self.lifecycle_status = ::std::option::Option::Some(input);
221        self
222    }
223    /// <p>The life cycle status of the step.</p>
224    pub fn set_lifecycle_status(mut self, input: ::std::option::Option<crate::types::StepLifecycleStatus>) -> Self {
225        self.lifecycle_status = input;
226        self
227    }
228    /// <p>The life cycle status of the step.</p>
229    pub fn get_lifecycle_status(&self) -> &::std::option::Option<crate::types::StepLifecycleStatus> {
230        &self.lifecycle_status
231    }
232    /// <p>A message that describes the lifecycle status of the step.</p>
233    pub fn lifecycle_status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
234        self.lifecycle_status_message = ::std::option::Option::Some(input.into());
235        self
236    }
237    /// <p>A message that describes the lifecycle status of the step.</p>
238    pub fn set_lifecycle_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
239        self.lifecycle_status_message = input;
240        self
241    }
242    /// <p>A message that describes the lifecycle status of the step.</p>
243    pub fn get_lifecycle_status_message(&self) -> &::std::option::Option<::std::string::String> {
244        &self.lifecycle_status_message
245    }
246    /// <p>The task run status for the job.</p>
247    /// This field is required.
248    pub fn task_run_status(mut self, input: crate::types::TaskRunStatus) -> Self {
249        self.task_run_status = ::std::option::Option::Some(input);
250        self
251    }
252    /// <p>The task run status for the job.</p>
253    pub fn set_task_run_status(mut self, input: ::std::option::Option<crate::types::TaskRunStatus>) -> Self {
254        self.task_run_status = input;
255        self
256    }
257    /// <p>The task run status for the job.</p>
258    pub fn get_task_run_status(&self) -> &::std::option::Option<crate::types::TaskRunStatus> {
259        &self.task_run_status
260    }
261    /// Adds a key-value pair to `task_run_status_counts`.
262    ///
263    /// To override the contents of this collection use [`set_task_run_status_counts`](Self::set_task_run_status_counts).
264    ///
265    /// <p>The number of tasks running on the job.</p>
266    pub fn task_run_status_counts(mut self, k: crate::types::TaskRunStatus, v: i32) -> Self {
267        let mut hash_map = self.task_run_status_counts.unwrap_or_default();
268        hash_map.insert(k, v);
269        self.task_run_status_counts = ::std::option::Option::Some(hash_map);
270        self
271    }
272    /// <p>The number of tasks running on the job.</p>
273    pub fn set_task_run_status_counts(mut self, input: ::std::option::Option<::std::collections::HashMap<crate::types::TaskRunStatus, i32>>) -> Self {
274        self.task_run_status_counts = input;
275        self
276    }
277    /// <p>The number of tasks running on the job.</p>
278    pub fn get_task_run_status_counts(&self) -> &::std::option::Option<::std::collections::HashMap<crate::types::TaskRunStatus, i32>> {
279        &self.task_run_status_counts
280    }
281    /// <p>The total number of times tasks from the step failed and were retried.</p>
282    pub fn task_failure_retry_count(mut self, input: i32) -> Self {
283        self.task_failure_retry_count = ::std::option::Option::Some(input);
284        self
285    }
286    /// <p>The total number of times tasks from the step failed and were retried.</p>
287    pub fn set_task_failure_retry_count(mut self, input: ::std::option::Option<i32>) -> Self {
288        self.task_failure_retry_count = input;
289        self
290    }
291    /// <p>The total number of times tasks from the step failed and were retried.</p>
292    pub fn get_task_failure_retry_count(&self) -> &::std::option::Option<i32> {
293        &self.task_failure_retry_count
294    }
295    /// <p>The task status with which the job started.</p>
296    pub fn target_task_run_status(mut self, input: crate::types::StepTargetTaskRunStatus) -> Self {
297        self.target_task_run_status = ::std::option::Option::Some(input);
298        self
299    }
300    /// <p>The task status with which the job started.</p>
301    pub fn set_target_task_run_status(mut self, input: ::std::option::Option<crate::types::StepTargetTaskRunStatus>) -> Self {
302        self.target_task_run_status = input;
303        self
304    }
305    /// <p>The task status with which the job started.</p>
306    pub fn get_target_task_run_status(&self) -> &::std::option::Option<crate::types::StepTargetTaskRunStatus> {
307        &self.target_task_run_status
308    }
309    /// <p>The date and time the resource was created.</p>
310    /// This field is required.
311    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
312        self.created_at = ::std::option::Option::Some(input);
313        self
314    }
315    /// <p>The date and time the resource was created.</p>
316    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
317        self.created_at = input;
318        self
319    }
320    /// <p>The date and time the resource was created.</p>
321    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
322        &self.created_at
323    }
324    /// <p>The user or system that created this resource.</p>
325    /// This field is required.
326    pub fn created_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
327        self.created_by = ::std::option::Option::Some(input.into());
328        self
329    }
330    /// <p>The user or system that created this resource.</p>
331    pub fn set_created_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
332        self.created_by = input;
333        self
334    }
335    /// <p>The user or system that created this resource.</p>
336    pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> {
337        &self.created_by
338    }
339    /// <p>The date and time the resource was updated.</p>
340    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
341        self.updated_at = ::std::option::Option::Some(input);
342        self
343    }
344    /// <p>The date and time the resource was updated.</p>
345    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
346        self.updated_at = input;
347        self
348    }
349    /// <p>The date and time the resource was updated.</p>
350    pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
351        &self.updated_at
352    }
353    /// <p>The user or system that updated this resource.</p>
354    pub fn updated_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
355        self.updated_by = ::std::option::Option::Some(input.into());
356        self
357    }
358    /// <p>The user or system that updated this resource.</p>
359    pub fn set_updated_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
360        self.updated_by = input;
361        self
362    }
363    /// <p>The user or system that updated this resource.</p>
364    pub fn get_updated_by(&self) -> &::std::option::Option<::std::string::String> {
365        &self.updated_by
366    }
367    /// <p>The date and time the resource started running.</p>
368    pub fn started_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
369        self.started_at = ::std::option::Option::Some(input);
370        self
371    }
372    /// <p>The date and time the resource started running.</p>
373    pub fn set_started_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
374        self.started_at = input;
375        self
376    }
377    /// <p>The date and time the resource started running.</p>
378    pub fn get_started_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
379        &self.started_at
380    }
381    /// <p>The date and time the resource ended running.</p>
382    pub fn ended_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
383        self.ended_at = ::std::option::Option::Some(input);
384        self
385    }
386    /// <p>The date and time the resource ended running.</p>
387    pub fn set_ended_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
388        self.ended_at = input;
389        self
390    }
391    /// <p>The date and time the resource ended running.</p>
392    pub fn get_ended_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
393        &self.ended_at
394    }
395    /// <p>The number of dependencies in the step.</p>
396    pub fn dependency_counts(mut self, input: crate::types::DependencyCounts) -> Self {
397        self.dependency_counts = ::std::option::Option::Some(input);
398        self
399    }
400    /// <p>The number of dependencies in the step.</p>
401    pub fn set_dependency_counts(mut self, input: ::std::option::Option<crate::types::DependencyCounts>) -> Self {
402        self.dependency_counts = input;
403        self
404    }
405    /// <p>The number of dependencies in the step.</p>
406    pub fn get_dependency_counts(&self) -> &::std::option::Option<crate::types::DependencyCounts> {
407        &self.dependency_counts
408    }
409    /// <p>The required capabilities of the step.</p>
410    pub fn required_capabilities(mut self, input: crate::types::StepRequiredCapabilities) -> Self {
411        self.required_capabilities = ::std::option::Option::Some(input);
412        self
413    }
414    /// <p>The required capabilities of the step.</p>
415    pub fn set_required_capabilities(mut self, input: ::std::option::Option<crate::types::StepRequiredCapabilities>) -> Self {
416        self.required_capabilities = input;
417        self
418    }
419    /// <p>The required capabilities of the step.</p>
420    pub fn get_required_capabilities(&self) -> &::std::option::Option<crate::types::StepRequiredCapabilities> {
421        &self.required_capabilities
422    }
423    /// <p>A list of step parameters and the combination expression for the step.</p>
424    pub fn parameter_space(mut self, input: crate::types::ParameterSpace) -> Self {
425        self.parameter_space = ::std::option::Option::Some(input);
426        self
427    }
428    /// <p>A list of step parameters and the combination expression for the step.</p>
429    pub fn set_parameter_space(mut self, input: ::std::option::Option<crate::types::ParameterSpace>) -> Self {
430        self.parameter_space = input;
431        self
432    }
433    /// <p>A list of step parameters and the combination expression for the step.</p>
434    pub fn get_parameter_space(&self) -> &::std::option::Option<crate::types::ParameterSpace> {
435        &self.parameter_space
436    }
437    /// <p>The description of the step.</p><important>
438    /// <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p>
439    /// </important>
440    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
441        self.description = ::std::option::Option::Some(input.into());
442        self
443    }
444    /// <p>The description of the step.</p><important>
445    /// <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p>
446    /// </important>
447    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
448        self.description = input;
449        self
450    }
451    /// <p>The description of the step.</p><important>
452    /// <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p>
453    /// </important>
454    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
455        &self.description
456    }
457    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
458        self._request_id = Some(request_id.into());
459        self
460    }
461
462    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
463        self._request_id = request_id;
464        self
465    }
466    /// Consumes the builder and constructs a [`GetStepOutput`](crate::operation::get_step::GetStepOutput).
467    /// This method will fail if any of the following fields are not set:
468    /// - [`step_id`](crate::operation::get_step::builders::GetStepOutputBuilder::step_id)
469    /// - [`name`](crate::operation::get_step::builders::GetStepOutputBuilder::name)
470    /// - [`lifecycle_status`](crate::operation::get_step::builders::GetStepOutputBuilder::lifecycle_status)
471    /// - [`task_run_status`](crate::operation::get_step::builders::GetStepOutputBuilder::task_run_status)
472    /// - [`task_run_status_counts`](crate::operation::get_step::builders::GetStepOutputBuilder::task_run_status_counts)
473    /// - [`created_at`](crate::operation::get_step::builders::GetStepOutputBuilder::created_at)
474    /// - [`created_by`](crate::operation::get_step::builders::GetStepOutputBuilder::created_by)
475    pub fn build(self) -> ::std::result::Result<crate::operation::get_step::GetStepOutput, ::aws_smithy_types::error::operation::BuildError> {
476        ::std::result::Result::Ok(crate::operation::get_step::GetStepOutput {
477            step_id: self.step_id.ok_or_else(|| {
478                ::aws_smithy_types::error::operation::BuildError::missing_field(
479                    "step_id",
480                    "step_id was not specified but it is required when building GetStepOutput",
481                )
482            })?,
483            name: self.name.ok_or_else(|| {
484                ::aws_smithy_types::error::operation::BuildError::missing_field(
485                    "name",
486                    "name was not specified but it is required when building GetStepOutput",
487                )
488            })?,
489            lifecycle_status: self.lifecycle_status.ok_or_else(|| {
490                ::aws_smithy_types::error::operation::BuildError::missing_field(
491                    "lifecycle_status",
492                    "lifecycle_status was not specified but it is required when building GetStepOutput",
493                )
494            })?,
495            lifecycle_status_message: self.lifecycle_status_message,
496            task_run_status: self.task_run_status.ok_or_else(|| {
497                ::aws_smithy_types::error::operation::BuildError::missing_field(
498                    "task_run_status",
499                    "task_run_status was not specified but it is required when building GetStepOutput",
500                )
501            })?,
502            task_run_status_counts: self.task_run_status_counts.ok_or_else(|| {
503                ::aws_smithy_types::error::operation::BuildError::missing_field(
504                    "task_run_status_counts",
505                    "task_run_status_counts was not specified but it is required when building GetStepOutput",
506                )
507            })?,
508            task_failure_retry_count: self.task_failure_retry_count,
509            target_task_run_status: self.target_task_run_status,
510            created_at: self.created_at.ok_or_else(|| {
511                ::aws_smithy_types::error::operation::BuildError::missing_field(
512                    "created_at",
513                    "created_at was not specified but it is required when building GetStepOutput",
514                )
515            })?,
516            created_by: self.created_by.ok_or_else(|| {
517                ::aws_smithy_types::error::operation::BuildError::missing_field(
518                    "created_by",
519                    "created_by was not specified but it is required when building GetStepOutput",
520                )
521            })?,
522            updated_at: self.updated_at,
523            updated_by: self.updated_by,
524            started_at: self.started_at,
525            ended_at: self.ended_at,
526            dependency_counts: self.dependency_counts,
527            required_capabilities: self.required_capabilities,
528            parameter_space: self.parameter_space,
529            description: self.description,
530            _request_id: self._request_id,
531        })
532    }
533}
534impl ::std::fmt::Debug for GetStepOutputBuilder {
535    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
536        let mut formatter = f.debug_struct("GetStepOutputBuilder");
537        formatter.field("step_id", &self.step_id);
538        formatter.field("name", &self.name);
539        formatter.field("lifecycle_status", &self.lifecycle_status);
540        formatter.field("lifecycle_status_message", &self.lifecycle_status_message);
541        formatter.field("task_run_status", &self.task_run_status);
542        formatter.field("task_run_status_counts", &self.task_run_status_counts);
543        formatter.field("task_failure_retry_count", &self.task_failure_retry_count);
544        formatter.field("target_task_run_status", &self.target_task_run_status);
545        formatter.field("created_at", &self.created_at);
546        formatter.field("created_by", &self.created_by);
547        formatter.field("updated_at", &self.updated_at);
548        formatter.field("updated_by", &self.updated_by);
549        formatter.field("started_at", &self.started_at);
550        formatter.field("ended_at", &self.ended_at);
551        formatter.field("dependency_counts", &self.dependency_counts);
552        formatter.field("required_capabilities", &self.required_capabilities);
553        formatter.field("parameter_space", &self.parameter_space);
554        formatter.field("description", &"*** Sensitive Data Redacted ***");
555        formatter.field("_request_id", &self._request_id);
556        formatter.finish()
557    }
558}