aws_sdk_deadline/operation/get_job/
_get_job_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 GetJobOutput {
6    /// <p>The job ID.</p>
7    pub job_id: ::std::string::String,
8    /// <p>The name of the job.</p>
9    pub name: ::std::string::String,
10    /// <p>The life cycle status for the job.</p>
11    pub lifecycle_status: crate::types::JobLifecycleStatus,
12    /// <p>A message that communicates the status of the life cycle for the job.</p>
13    pub lifecycle_status_message: ::std::string::String,
14    /// <p>The job priority.</p>
15    pub priority: i32,
16    /// <p>The date and time the resource was created.</p>
17    pub created_at: ::aws_smithy_types::DateTime,
18    /// <p>The user or system that created this resource.</p>
19    pub created_by: ::std::string::String,
20    /// <p>The date and time the resource was updated.</p>
21    pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
22    /// <p>The user or system that updated this resource.</p>
23    pub updated_by: ::std::option::Option<::std::string::String>,
24    /// <p>The date and time the resource started running.</p>
25    pub started_at: ::std::option::Option<::aws_smithy_types::DateTime>,
26    /// <p>The date and time the resource ended running.</p>
27    pub ended_at: ::std::option::Option<::aws_smithy_types::DateTime>,
28    /// <p>The task run status for the job.</p>
29    pub task_run_status: ::std::option::Option<crate::types::TaskRunStatus>,
30    /// <p>The task status with which the job started.</p>
31    pub target_task_run_status: ::std::option::Option<crate::types::JobTargetTaskRunStatus>,
32    /// <p>The number of tasks running on the job.</p>
33    pub task_run_status_counts: ::std::option::Option<::std::collections::HashMap<crate::types::TaskRunStatus, i32>>,
34    /// <p>The total number of times tasks from the job failed and were retried.</p>
35    pub task_failure_retry_count: ::std::option::Option<i32>,
36    /// <p>The storage profile ID associated with the job.</p>
37    pub storage_profile_id: ::std::option::Option<::std::string::String>,
38    /// <p>The number of task failures before the job stops running and is marked as <code>FAILED</code>.</p>
39    pub max_failed_tasks_count: ::std::option::Option<i32>,
40    /// <p>The maximum number of retries per failed tasks.</p>
41    pub max_retries_per_task: ::std::option::Option<i32>,
42    /// <p>The parameters for the job.</p>
43    pub parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::JobParameter>>,
44    /// <p>The attachments for the job.</p>
45    pub attachments: ::std::option::Option<crate::types::Attachments>,
46    /// <p>The description of the job.</p><important>
47    /// <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>
48    /// </important>
49    pub description: ::std::option::Option<::std::string::String>,
50    /// <p>The maximum number of worker hosts that can concurrently process a job. When the <code>maxWorkerCount</code> is reached, no more workers will be assigned to process the job, even if the fleets assigned to the job's queue has available workers.</p>
51    /// <p>If you don't set the <code>maxWorkerCount</code> when you create a job, this value is not returned in the response.</p>
52    pub max_worker_count: ::std::option::Option<i32>,
53    /// <p>The job ID for the source job.</p>
54    pub source_job_id: ::std::option::Option<::std::string::String>,
55    _request_id: Option<String>,
56}
57impl GetJobOutput {
58    /// <p>The job ID.</p>
59    pub fn job_id(&self) -> &str {
60        use std::ops::Deref;
61        self.job_id.deref()
62    }
63    /// <p>The name of the job.</p>
64    pub fn name(&self) -> &str {
65        use std::ops::Deref;
66        self.name.deref()
67    }
68    /// <p>The life cycle status for the job.</p>
69    pub fn lifecycle_status(&self) -> &crate::types::JobLifecycleStatus {
70        &self.lifecycle_status
71    }
72    /// <p>A message that communicates the status of the life cycle for the job.</p>
73    pub fn lifecycle_status_message(&self) -> &str {
74        use std::ops::Deref;
75        self.lifecycle_status_message.deref()
76    }
77    /// <p>The job priority.</p>
78    pub fn priority(&self) -> i32 {
79        self.priority
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 task run status for the job.</p>
107    pub fn task_run_status(&self) -> ::std::option::Option<&crate::types::TaskRunStatus> {
108        self.task_run_status.as_ref()
109    }
110    /// <p>The task status with which the job started.</p>
111    pub fn target_task_run_status(&self) -> ::std::option::Option<&crate::types::JobTargetTaskRunStatus> {
112        self.target_task_run_status.as_ref()
113    }
114    /// <p>The number of tasks running on the job.</p>
115    pub fn task_run_status_counts(&self) -> ::std::option::Option<&::std::collections::HashMap<crate::types::TaskRunStatus, i32>> {
116        self.task_run_status_counts.as_ref()
117    }
118    /// <p>The total number of times tasks from the job failed and were retried.</p>
119    pub fn task_failure_retry_count(&self) -> ::std::option::Option<i32> {
120        self.task_failure_retry_count
121    }
122    /// <p>The storage profile ID associated with the job.</p>
123    pub fn storage_profile_id(&self) -> ::std::option::Option<&str> {
124        self.storage_profile_id.as_deref()
125    }
126    /// <p>The number of task failures before the job stops running and is marked as <code>FAILED</code>.</p>
127    pub fn max_failed_tasks_count(&self) -> ::std::option::Option<i32> {
128        self.max_failed_tasks_count
129    }
130    /// <p>The maximum number of retries per failed tasks.</p>
131    pub fn max_retries_per_task(&self) -> ::std::option::Option<i32> {
132        self.max_retries_per_task
133    }
134    /// <p>The parameters for the job.</p>
135    pub fn parameters(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::JobParameter>> {
136        self.parameters.as_ref()
137    }
138    /// <p>The attachments for the job.</p>
139    pub fn attachments(&self) -> ::std::option::Option<&crate::types::Attachments> {
140        self.attachments.as_ref()
141    }
142    /// <p>The description of the job.</p><important>
143    /// <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>
144    /// </important>
145    pub fn description(&self) -> ::std::option::Option<&str> {
146        self.description.as_deref()
147    }
148    /// <p>The maximum number of worker hosts that can concurrently process a job. When the <code>maxWorkerCount</code> is reached, no more workers will be assigned to process the job, even if the fleets assigned to the job's queue has available workers.</p>
149    /// <p>If you don't set the <code>maxWorkerCount</code> when you create a job, this value is not returned in the response.</p>
150    pub fn max_worker_count(&self) -> ::std::option::Option<i32> {
151        self.max_worker_count
152    }
153    /// <p>The job ID for the source job.</p>
154    pub fn source_job_id(&self) -> ::std::option::Option<&str> {
155        self.source_job_id.as_deref()
156    }
157}
158impl ::std::fmt::Debug for GetJobOutput {
159    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
160        let mut formatter = f.debug_struct("GetJobOutput");
161        formatter.field("job_id", &self.job_id);
162        formatter.field("name", &self.name);
163        formatter.field("lifecycle_status", &self.lifecycle_status);
164        formatter.field("lifecycle_status_message", &self.lifecycle_status_message);
165        formatter.field("priority", &self.priority);
166        formatter.field("created_at", &self.created_at);
167        formatter.field("created_by", &self.created_by);
168        formatter.field("updated_at", &self.updated_at);
169        formatter.field("updated_by", &self.updated_by);
170        formatter.field("started_at", &self.started_at);
171        formatter.field("ended_at", &self.ended_at);
172        formatter.field("task_run_status", &self.task_run_status);
173        formatter.field("target_task_run_status", &self.target_task_run_status);
174        formatter.field("task_run_status_counts", &self.task_run_status_counts);
175        formatter.field("task_failure_retry_count", &self.task_failure_retry_count);
176        formatter.field("storage_profile_id", &self.storage_profile_id);
177        formatter.field("max_failed_tasks_count", &self.max_failed_tasks_count);
178        formatter.field("max_retries_per_task", &self.max_retries_per_task);
179        formatter.field("parameters", &"*** Sensitive Data Redacted ***");
180        formatter.field("attachments", &self.attachments);
181        formatter.field("description", &"*** Sensitive Data Redacted ***");
182        formatter.field("max_worker_count", &self.max_worker_count);
183        formatter.field("source_job_id", &self.source_job_id);
184        formatter.field("_request_id", &self._request_id);
185        formatter.finish()
186    }
187}
188impl ::aws_types::request_id::RequestId for GetJobOutput {
189    fn request_id(&self) -> Option<&str> {
190        self._request_id.as_deref()
191    }
192}
193impl GetJobOutput {
194    /// Creates a new builder-style object to manufacture [`GetJobOutput`](crate::operation::get_job::GetJobOutput).
195    pub fn builder() -> crate::operation::get_job::builders::GetJobOutputBuilder {
196        crate::operation::get_job::builders::GetJobOutputBuilder::default()
197    }
198}
199
200/// A builder for [`GetJobOutput`](crate::operation::get_job::GetJobOutput).
201#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
202#[non_exhaustive]
203pub struct GetJobOutputBuilder {
204    pub(crate) job_id: ::std::option::Option<::std::string::String>,
205    pub(crate) name: ::std::option::Option<::std::string::String>,
206    pub(crate) lifecycle_status: ::std::option::Option<crate::types::JobLifecycleStatus>,
207    pub(crate) lifecycle_status_message: ::std::option::Option<::std::string::String>,
208    pub(crate) priority: ::std::option::Option<i32>,
209    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
210    pub(crate) created_by: ::std::option::Option<::std::string::String>,
211    pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
212    pub(crate) updated_by: ::std::option::Option<::std::string::String>,
213    pub(crate) started_at: ::std::option::Option<::aws_smithy_types::DateTime>,
214    pub(crate) ended_at: ::std::option::Option<::aws_smithy_types::DateTime>,
215    pub(crate) task_run_status: ::std::option::Option<crate::types::TaskRunStatus>,
216    pub(crate) target_task_run_status: ::std::option::Option<crate::types::JobTargetTaskRunStatus>,
217    pub(crate) task_run_status_counts: ::std::option::Option<::std::collections::HashMap<crate::types::TaskRunStatus, i32>>,
218    pub(crate) task_failure_retry_count: ::std::option::Option<i32>,
219    pub(crate) storage_profile_id: ::std::option::Option<::std::string::String>,
220    pub(crate) max_failed_tasks_count: ::std::option::Option<i32>,
221    pub(crate) max_retries_per_task: ::std::option::Option<i32>,
222    pub(crate) parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::JobParameter>>,
223    pub(crate) attachments: ::std::option::Option<crate::types::Attachments>,
224    pub(crate) description: ::std::option::Option<::std::string::String>,
225    pub(crate) max_worker_count: ::std::option::Option<i32>,
226    pub(crate) source_job_id: ::std::option::Option<::std::string::String>,
227    _request_id: Option<String>,
228}
229impl GetJobOutputBuilder {
230    /// <p>The job ID.</p>
231    /// This field is required.
232    pub fn job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
233        self.job_id = ::std::option::Option::Some(input.into());
234        self
235    }
236    /// <p>The job ID.</p>
237    pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
238        self.job_id = input;
239        self
240    }
241    /// <p>The job ID.</p>
242    pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
243        &self.job_id
244    }
245    /// <p>The name of the job.</p>
246    /// This field is required.
247    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
248        self.name = ::std::option::Option::Some(input.into());
249        self
250    }
251    /// <p>The name of the job.</p>
252    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
253        self.name = input;
254        self
255    }
256    /// <p>The name of the job.</p>
257    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
258        &self.name
259    }
260    /// <p>The life cycle status for the job.</p>
261    /// This field is required.
262    pub fn lifecycle_status(mut self, input: crate::types::JobLifecycleStatus) -> Self {
263        self.lifecycle_status = ::std::option::Option::Some(input);
264        self
265    }
266    /// <p>The life cycle status for the job.</p>
267    pub fn set_lifecycle_status(mut self, input: ::std::option::Option<crate::types::JobLifecycleStatus>) -> Self {
268        self.lifecycle_status = input;
269        self
270    }
271    /// <p>The life cycle status for the job.</p>
272    pub fn get_lifecycle_status(&self) -> &::std::option::Option<crate::types::JobLifecycleStatus> {
273        &self.lifecycle_status
274    }
275    /// <p>A message that communicates the status of the life cycle for the job.</p>
276    /// This field is required.
277    pub fn lifecycle_status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
278        self.lifecycle_status_message = ::std::option::Option::Some(input.into());
279        self
280    }
281    /// <p>A message that communicates the status of the life cycle for the job.</p>
282    pub fn set_lifecycle_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
283        self.lifecycle_status_message = input;
284        self
285    }
286    /// <p>A message that communicates the status of the life cycle for the job.</p>
287    pub fn get_lifecycle_status_message(&self) -> &::std::option::Option<::std::string::String> {
288        &self.lifecycle_status_message
289    }
290    /// <p>The job priority.</p>
291    /// This field is required.
292    pub fn priority(mut self, input: i32) -> Self {
293        self.priority = ::std::option::Option::Some(input);
294        self
295    }
296    /// <p>The job priority.</p>
297    pub fn set_priority(mut self, input: ::std::option::Option<i32>) -> Self {
298        self.priority = input;
299        self
300    }
301    /// <p>The job priority.</p>
302    pub fn get_priority(&self) -> &::std::option::Option<i32> {
303        &self.priority
304    }
305    /// <p>The date and time the resource was created.</p>
306    /// This field is required.
307    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
308        self.created_at = ::std::option::Option::Some(input);
309        self
310    }
311    /// <p>The date and time the resource was created.</p>
312    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
313        self.created_at = input;
314        self
315    }
316    /// <p>The date and time the resource was created.</p>
317    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
318        &self.created_at
319    }
320    /// <p>The user or system that created this resource.</p>
321    /// This field is required.
322    pub fn created_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
323        self.created_by = ::std::option::Option::Some(input.into());
324        self
325    }
326    /// <p>The user or system that created this resource.</p>
327    pub fn set_created_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
328        self.created_by = input;
329        self
330    }
331    /// <p>The user or system that created this resource.</p>
332    pub fn get_created_by(&self) -> &::std::option::Option<::std::string::String> {
333        &self.created_by
334    }
335    /// <p>The date and time the resource was updated.</p>
336    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
337        self.updated_at = ::std::option::Option::Some(input);
338        self
339    }
340    /// <p>The date and time the resource was updated.</p>
341    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
342        self.updated_at = input;
343        self
344    }
345    /// <p>The date and time the resource was updated.</p>
346    pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
347        &self.updated_at
348    }
349    /// <p>The user or system that updated this resource.</p>
350    pub fn updated_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
351        self.updated_by = ::std::option::Option::Some(input.into());
352        self
353    }
354    /// <p>The user or system that updated this resource.</p>
355    pub fn set_updated_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
356        self.updated_by = input;
357        self
358    }
359    /// <p>The user or system that updated this resource.</p>
360    pub fn get_updated_by(&self) -> &::std::option::Option<::std::string::String> {
361        &self.updated_by
362    }
363    /// <p>The date and time the resource started running.</p>
364    pub fn started_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
365        self.started_at = ::std::option::Option::Some(input);
366        self
367    }
368    /// <p>The date and time the resource started running.</p>
369    pub fn set_started_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
370        self.started_at = input;
371        self
372    }
373    /// <p>The date and time the resource started running.</p>
374    pub fn get_started_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
375        &self.started_at
376    }
377    /// <p>The date and time the resource ended running.</p>
378    pub fn ended_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
379        self.ended_at = ::std::option::Option::Some(input);
380        self
381    }
382    /// <p>The date and time the resource ended running.</p>
383    pub fn set_ended_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
384        self.ended_at = input;
385        self
386    }
387    /// <p>The date and time the resource ended running.</p>
388    pub fn get_ended_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
389        &self.ended_at
390    }
391    /// <p>The task run status for the job.</p>
392    pub fn task_run_status(mut self, input: crate::types::TaskRunStatus) -> Self {
393        self.task_run_status = ::std::option::Option::Some(input);
394        self
395    }
396    /// <p>The task run status for the job.</p>
397    pub fn set_task_run_status(mut self, input: ::std::option::Option<crate::types::TaskRunStatus>) -> Self {
398        self.task_run_status = input;
399        self
400    }
401    /// <p>The task run status for the job.</p>
402    pub fn get_task_run_status(&self) -> &::std::option::Option<crate::types::TaskRunStatus> {
403        &self.task_run_status
404    }
405    /// <p>The task status with which the job started.</p>
406    pub fn target_task_run_status(mut self, input: crate::types::JobTargetTaskRunStatus) -> Self {
407        self.target_task_run_status = ::std::option::Option::Some(input);
408        self
409    }
410    /// <p>The task status with which the job started.</p>
411    pub fn set_target_task_run_status(mut self, input: ::std::option::Option<crate::types::JobTargetTaskRunStatus>) -> Self {
412        self.target_task_run_status = input;
413        self
414    }
415    /// <p>The task status with which the job started.</p>
416    pub fn get_target_task_run_status(&self) -> &::std::option::Option<crate::types::JobTargetTaskRunStatus> {
417        &self.target_task_run_status
418    }
419    /// Adds a key-value pair to `task_run_status_counts`.
420    ///
421    /// To override the contents of this collection use [`set_task_run_status_counts`](Self::set_task_run_status_counts).
422    ///
423    /// <p>The number of tasks running on the job.</p>
424    pub fn task_run_status_counts(mut self, k: crate::types::TaskRunStatus, v: i32) -> Self {
425        let mut hash_map = self.task_run_status_counts.unwrap_or_default();
426        hash_map.insert(k, v);
427        self.task_run_status_counts = ::std::option::Option::Some(hash_map);
428        self
429    }
430    /// <p>The number of tasks running on the job.</p>
431    pub fn set_task_run_status_counts(mut self, input: ::std::option::Option<::std::collections::HashMap<crate::types::TaskRunStatus, i32>>) -> Self {
432        self.task_run_status_counts = input;
433        self
434    }
435    /// <p>The number of tasks running on the job.</p>
436    pub fn get_task_run_status_counts(&self) -> &::std::option::Option<::std::collections::HashMap<crate::types::TaskRunStatus, i32>> {
437        &self.task_run_status_counts
438    }
439    /// <p>The total number of times tasks from the job failed and were retried.</p>
440    pub fn task_failure_retry_count(mut self, input: i32) -> Self {
441        self.task_failure_retry_count = ::std::option::Option::Some(input);
442        self
443    }
444    /// <p>The total number of times tasks from the job failed and were retried.</p>
445    pub fn set_task_failure_retry_count(mut self, input: ::std::option::Option<i32>) -> Self {
446        self.task_failure_retry_count = input;
447        self
448    }
449    /// <p>The total number of times tasks from the job failed and were retried.</p>
450    pub fn get_task_failure_retry_count(&self) -> &::std::option::Option<i32> {
451        &self.task_failure_retry_count
452    }
453    /// <p>The storage profile ID associated with the job.</p>
454    pub fn storage_profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
455        self.storage_profile_id = ::std::option::Option::Some(input.into());
456        self
457    }
458    /// <p>The storage profile ID associated with the job.</p>
459    pub fn set_storage_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
460        self.storage_profile_id = input;
461        self
462    }
463    /// <p>The storage profile ID associated with the job.</p>
464    pub fn get_storage_profile_id(&self) -> &::std::option::Option<::std::string::String> {
465        &self.storage_profile_id
466    }
467    /// <p>The number of task failures before the job stops running and is marked as <code>FAILED</code>.</p>
468    pub fn max_failed_tasks_count(mut self, input: i32) -> Self {
469        self.max_failed_tasks_count = ::std::option::Option::Some(input);
470        self
471    }
472    /// <p>The number of task failures before the job stops running and is marked as <code>FAILED</code>.</p>
473    pub fn set_max_failed_tasks_count(mut self, input: ::std::option::Option<i32>) -> Self {
474        self.max_failed_tasks_count = input;
475        self
476    }
477    /// <p>The number of task failures before the job stops running and is marked as <code>FAILED</code>.</p>
478    pub fn get_max_failed_tasks_count(&self) -> &::std::option::Option<i32> {
479        &self.max_failed_tasks_count
480    }
481    /// <p>The maximum number of retries per failed tasks.</p>
482    pub fn max_retries_per_task(mut self, input: i32) -> Self {
483        self.max_retries_per_task = ::std::option::Option::Some(input);
484        self
485    }
486    /// <p>The maximum number of retries per failed tasks.</p>
487    pub fn set_max_retries_per_task(mut self, input: ::std::option::Option<i32>) -> Self {
488        self.max_retries_per_task = input;
489        self
490    }
491    /// <p>The maximum number of retries per failed tasks.</p>
492    pub fn get_max_retries_per_task(&self) -> &::std::option::Option<i32> {
493        &self.max_retries_per_task
494    }
495    /// Adds a key-value pair to `parameters`.
496    ///
497    /// To override the contents of this collection use [`set_parameters`](Self::set_parameters).
498    ///
499    /// <p>The parameters for the job.</p>
500    pub fn parameters(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::JobParameter) -> Self {
501        let mut hash_map = self.parameters.unwrap_or_default();
502        hash_map.insert(k.into(), v);
503        self.parameters = ::std::option::Option::Some(hash_map);
504        self
505    }
506    /// <p>The parameters for the job.</p>
507    pub fn set_parameters(
508        mut self,
509        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::JobParameter>>,
510    ) -> Self {
511        self.parameters = input;
512        self
513    }
514    /// <p>The parameters for the job.</p>
515    pub fn get_parameters(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::JobParameter>> {
516        &self.parameters
517    }
518    /// <p>The attachments for the job.</p>
519    pub fn attachments(mut self, input: crate::types::Attachments) -> Self {
520        self.attachments = ::std::option::Option::Some(input);
521        self
522    }
523    /// <p>The attachments for the job.</p>
524    pub fn set_attachments(mut self, input: ::std::option::Option<crate::types::Attachments>) -> Self {
525        self.attachments = input;
526        self
527    }
528    /// <p>The attachments for the job.</p>
529    pub fn get_attachments(&self) -> &::std::option::Option<crate::types::Attachments> {
530        &self.attachments
531    }
532    /// <p>The description of the job.</p><important>
533    /// <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>
534    /// </important>
535    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
536        self.description = ::std::option::Option::Some(input.into());
537        self
538    }
539    /// <p>The description of the job.</p><important>
540    /// <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>
541    /// </important>
542    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
543        self.description = input;
544        self
545    }
546    /// <p>The description of the job.</p><important>
547    /// <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>
548    /// </important>
549    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
550        &self.description
551    }
552    /// <p>The maximum number of worker hosts that can concurrently process a job. When the <code>maxWorkerCount</code> is reached, no more workers will be assigned to process the job, even if the fleets assigned to the job's queue has available workers.</p>
553    /// <p>If you don't set the <code>maxWorkerCount</code> when you create a job, this value is not returned in the response.</p>
554    pub fn max_worker_count(mut self, input: i32) -> Self {
555        self.max_worker_count = ::std::option::Option::Some(input);
556        self
557    }
558    /// <p>The maximum number of worker hosts that can concurrently process a job. When the <code>maxWorkerCount</code> is reached, no more workers will be assigned to process the job, even if the fleets assigned to the job's queue has available workers.</p>
559    /// <p>If you don't set the <code>maxWorkerCount</code> when you create a job, this value is not returned in the response.</p>
560    pub fn set_max_worker_count(mut self, input: ::std::option::Option<i32>) -> Self {
561        self.max_worker_count = input;
562        self
563    }
564    /// <p>The maximum number of worker hosts that can concurrently process a job. When the <code>maxWorkerCount</code> is reached, no more workers will be assigned to process the job, even if the fleets assigned to the job's queue has available workers.</p>
565    /// <p>If you don't set the <code>maxWorkerCount</code> when you create a job, this value is not returned in the response.</p>
566    pub fn get_max_worker_count(&self) -> &::std::option::Option<i32> {
567        &self.max_worker_count
568    }
569    /// <p>The job ID for the source job.</p>
570    pub fn source_job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
571        self.source_job_id = ::std::option::Option::Some(input.into());
572        self
573    }
574    /// <p>The job ID for the source job.</p>
575    pub fn set_source_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
576        self.source_job_id = input;
577        self
578    }
579    /// <p>The job ID for the source job.</p>
580    pub fn get_source_job_id(&self) -> &::std::option::Option<::std::string::String> {
581        &self.source_job_id
582    }
583    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
584        self._request_id = Some(request_id.into());
585        self
586    }
587
588    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
589        self._request_id = request_id;
590        self
591    }
592    /// Consumes the builder and constructs a [`GetJobOutput`](crate::operation::get_job::GetJobOutput).
593    /// This method will fail if any of the following fields are not set:
594    /// - [`job_id`](crate::operation::get_job::builders::GetJobOutputBuilder::job_id)
595    /// - [`name`](crate::operation::get_job::builders::GetJobOutputBuilder::name)
596    /// - [`lifecycle_status`](crate::operation::get_job::builders::GetJobOutputBuilder::lifecycle_status)
597    /// - [`lifecycle_status_message`](crate::operation::get_job::builders::GetJobOutputBuilder::lifecycle_status_message)
598    /// - [`priority`](crate::operation::get_job::builders::GetJobOutputBuilder::priority)
599    /// - [`created_at`](crate::operation::get_job::builders::GetJobOutputBuilder::created_at)
600    /// - [`created_by`](crate::operation::get_job::builders::GetJobOutputBuilder::created_by)
601    pub fn build(self) -> ::std::result::Result<crate::operation::get_job::GetJobOutput, ::aws_smithy_types::error::operation::BuildError> {
602        ::std::result::Result::Ok(crate::operation::get_job::GetJobOutput {
603            job_id: self.job_id.ok_or_else(|| {
604                ::aws_smithy_types::error::operation::BuildError::missing_field(
605                    "job_id",
606                    "job_id was not specified but it is required when building GetJobOutput",
607                )
608            })?,
609            name: self.name.ok_or_else(|| {
610                ::aws_smithy_types::error::operation::BuildError::missing_field(
611                    "name",
612                    "name was not specified but it is required when building GetJobOutput",
613                )
614            })?,
615            lifecycle_status: self.lifecycle_status.ok_or_else(|| {
616                ::aws_smithy_types::error::operation::BuildError::missing_field(
617                    "lifecycle_status",
618                    "lifecycle_status was not specified but it is required when building GetJobOutput",
619                )
620            })?,
621            lifecycle_status_message: self.lifecycle_status_message.ok_or_else(|| {
622                ::aws_smithy_types::error::operation::BuildError::missing_field(
623                    "lifecycle_status_message",
624                    "lifecycle_status_message was not specified but it is required when building GetJobOutput",
625                )
626            })?,
627            priority: self.priority.ok_or_else(|| {
628                ::aws_smithy_types::error::operation::BuildError::missing_field(
629                    "priority",
630                    "priority was not specified but it is required when building GetJobOutput",
631                )
632            })?,
633            created_at: self.created_at.ok_or_else(|| {
634                ::aws_smithy_types::error::operation::BuildError::missing_field(
635                    "created_at",
636                    "created_at was not specified but it is required when building GetJobOutput",
637                )
638            })?,
639            created_by: self.created_by.ok_or_else(|| {
640                ::aws_smithy_types::error::operation::BuildError::missing_field(
641                    "created_by",
642                    "created_by was not specified but it is required when building GetJobOutput",
643                )
644            })?,
645            updated_at: self.updated_at,
646            updated_by: self.updated_by,
647            started_at: self.started_at,
648            ended_at: self.ended_at,
649            task_run_status: self.task_run_status,
650            target_task_run_status: self.target_task_run_status,
651            task_run_status_counts: self.task_run_status_counts,
652            task_failure_retry_count: self.task_failure_retry_count,
653            storage_profile_id: self.storage_profile_id,
654            max_failed_tasks_count: self.max_failed_tasks_count,
655            max_retries_per_task: self.max_retries_per_task,
656            parameters: self.parameters,
657            attachments: self.attachments,
658            description: self.description,
659            max_worker_count: self.max_worker_count,
660            source_job_id: self.source_job_id,
661            _request_id: self._request_id,
662        })
663    }
664}
665impl ::std::fmt::Debug for GetJobOutputBuilder {
666    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
667        let mut formatter = f.debug_struct("GetJobOutputBuilder");
668        formatter.field("job_id", &self.job_id);
669        formatter.field("name", &self.name);
670        formatter.field("lifecycle_status", &self.lifecycle_status);
671        formatter.field("lifecycle_status_message", &self.lifecycle_status_message);
672        formatter.field("priority", &self.priority);
673        formatter.field("created_at", &self.created_at);
674        formatter.field("created_by", &self.created_by);
675        formatter.field("updated_at", &self.updated_at);
676        formatter.field("updated_by", &self.updated_by);
677        formatter.field("started_at", &self.started_at);
678        formatter.field("ended_at", &self.ended_at);
679        formatter.field("task_run_status", &self.task_run_status);
680        formatter.field("target_task_run_status", &self.target_task_run_status);
681        formatter.field("task_run_status_counts", &self.task_run_status_counts);
682        formatter.field("task_failure_retry_count", &self.task_failure_retry_count);
683        formatter.field("storage_profile_id", &self.storage_profile_id);
684        formatter.field("max_failed_tasks_count", &self.max_failed_tasks_count);
685        formatter.field("max_retries_per_task", &self.max_retries_per_task);
686        formatter.field("parameters", &"*** Sensitive Data Redacted ***");
687        formatter.field("attachments", &self.attachments);
688        formatter.field("description", &"*** Sensitive Data Redacted ***");
689        formatter.field("max_worker_count", &self.max_worker_count);
690        formatter.field("source_job_id", &self.source_job_id);
691        formatter.field("_request_id", &self._request_id);
692        formatter.finish()
693    }
694}