AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetJobResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/Attachments.h>
12#include <aws/deadline/model/JobLifecycleStatus.h>
13#include <aws/deadline/model/JobParameter.h>
14#include <aws/deadline/model/JobTargetTaskRunStatus.h>
15#include <aws/deadline/model/TaskRunStatus.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace deadline {
29namespace Model {
31 public:
32 AWS_DEADLINE_API GetJobResult() = default;
35
37
40 inline const Aws::String& GetJobId() const { return m_jobId; }
41 template <typename JobIdT = Aws::String>
42 void SetJobId(JobIdT&& value) {
43 m_jobIdHasBeenSet = true;
44 m_jobId = std::forward<JobIdT>(value);
45 }
46 template <typename JobIdT = Aws::String>
47 GetJobResult& WithJobId(JobIdT&& value) {
48 SetJobId(std::forward<JobIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 GetJobResult& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline JobLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
76 m_lifecycleStatusHasBeenSet = true;
77 m_lifecycleStatus = value;
78 }
80 SetLifecycleStatus(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
90 template <typename LifecycleStatusMessageT = Aws::String>
91 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
92 m_lifecycleStatusMessageHasBeenSet = true;
93 m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value);
94 }
95 template <typename LifecycleStatusMessageT = Aws::String>
96 GetJobResult& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
97 SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value));
98 return *this;
99 }
101
103
106 inline int GetPriority() const { return m_priority; }
107 inline void SetPriority(int value) {
108 m_priorityHasBeenSet = true;
109 m_priority = value;
110 }
111 inline GetJobResult& WithPriority(int value) {
112 SetPriority(value);
113 return *this;
114 }
116
118
121 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
122 template <typename CreatedAtT = Aws::Utils::DateTime>
123 void SetCreatedAt(CreatedAtT&& value) {
124 m_createdAtHasBeenSet = true;
125 m_createdAt = std::forward<CreatedAtT>(value);
126 }
127 template <typename CreatedAtT = Aws::Utils::DateTime>
128 GetJobResult& WithCreatedAt(CreatedAtT&& value) {
129 SetCreatedAt(std::forward<CreatedAtT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
139 template <typename CreatedByT = Aws::String>
140 void SetCreatedBy(CreatedByT&& value) {
141 m_createdByHasBeenSet = true;
142 m_createdBy = std::forward<CreatedByT>(value);
143 }
144 template <typename CreatedByT = Aws::String>
145 GetJobResult& WithCreatedBy(CreatedByT&& value) {
146 SetCreatedBy(std::forward<CreatedByT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
156 template <typename UpdatedAtT = Aws::Utils::DateTime>
157 void SetUpdatedAt(UpdatedAtT&& value) {
158 m_updatedAtHasBeenSet = true;
159 m_updatedAt = std::forward<UpdatedAtT>(value);
160 }
161 template <typename UpdatedAtT = Aws::Utils::DateTime>
162 GetJobResult& WithUpdatedAt(UpdatedAtT&& value) {
163 SetUpdatedAt(std::forward<UpdatedAtT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
173 template <typename UpdatedByT = Aws::String>
174 void SetUpdatedBy(UpdatedByT&& value) {
175 m_updatedByHasBeenSet = true;
176 m_updatedBy = std::forward<UpdatedByT>(value);
177 }
178 template <typename UpdatedByT = Aws::String>
179 GetJobResult& WithUpdatedBy(UpdatedByT&& value) {
180 SetUpdatedBy(std::forward<UpdatedByT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
190 template <typename StartedAtT = Aws::Utils::DateTime>
191 void SetStartedAt(StartedAtT&& value) {
192 m_startedAtHasBeenSet = true;
193 m_startedAt = std::forward<StartedAtT>(value);
194 }
195 template <typename StartedAtT = Aws::Utils::DateTime>
196 GetJobResult& WithStartedAt(StartedAtT&& value) {
197 SetStartedAt(std::forward<StartedAtT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
207 template <typename EndedAtT = Aws::Utils::DateTime>
208 void SetEndedAt(EndedAtT&& value) {
209 m_endedAtHasBeenSet = true;
210 m_endedAt = std::forward<EndedAtT>(value);
211 }
212 template <typename EndedAtT = Aws::Utils::DateTime>
213 GetJobResult& WithEndedAt(EndedAtT&& value) {
214 SetEndedAt(std::forward<EndedAtT>(value));
215 return *this;
216 }
218
220
223 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
224 inline void SetTaskRunStatus(TaskRunStatus value) {
225 m_taskRunStatusHasBeenSet = true;
226 m_taskRunStatus = value;
227 }
229 SetTaskRunStatus(value);
230 return *this;
231 }
233
235
238 inline JobTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
240 m_targetTaskRunStatusHasBeenSet = true;
241 m_targetTaskRunStatus = value;
242 }
245 return *this;
246 }
248
250
253 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
254 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
255 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
256 m_taskRunStatusCountsHasBeenSet = true;
257 m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value);
258 }
259 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
260 GetJobResult& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
261 SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value));
262 return *this;
263 }
265 m_taskRunStatusCountsHasBeenSet = true;
266 m_taskRunStatusCounts.emplace(key, value);
267 return *this;
268 }
270
272
275 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
276 inline void SetTaskFailureRetryCount(int value) {
277 m_taskFailureRetryCountHasBeenSet = true;
278 m_taskFailureRetryCount = value;
279 }
282 return *this;
283 }
285
287
290 inline const Aws::String& GetStorageProfileId() const { return m_storageProfileId; }
291 template <typename StorageProfileIdT = Aws::String>
292 void SetStorageProfileId(StorageProfileIdT&& value) {
293 m_storageProfileIdHasBeenSet = true;
294 m_storageProfileId = std::forward<StorageProfileIdT>(value);
295 }
296 template <typename StorageProfileIdT = Aws::String>
297 GetJobResult& WithStorageProfileId(StorageProfileIdT&& value) {
298 SetStorageProfileId(std::forward<StorageProfileIdT>(value));
299 return *this;
300 }
302
304
308 inline int GetMaxFailedTasksCount() const { return m_maxFailedTasksCount; }
309 inline void SetMaxFailedTasksCount(int value) {
310 m_maxFailedTasksCountHasBeenSet = true;
311 m_maxFailedTasksCount = value;
312 }
315 return *this;
316 }
318
320
323 inline int GetMaxRetriesPerTask() const { return m_maxRetriesPerTask; }
324 inline void SetMaxRetriesPerTask(int value) {
325 m_maxRetriesPerTaskHasBeenSet = true;
326 m_maxRetriesPerTask = value;
327 }
330 return *this;
331 }
333
335
338 inline const Aws::Map<Aws::String, JobParameter>& GetParameters() const { return m_parameters; }
339 template <typename ParametersT = Aws::Map<Aws::String, JobParameter>>
340 void SetParameters(ParametersT&& value) {
341 m_parametersHasBeenSet = true;
342 m_parameters = std::forward<ParametersT>(value);
343 }
344 template <typename ParametersT = Aws::Map<Aws::String, JobParameter>>
345 GetJobResult& WithParameters(ParametersT&& value) {
346 SetParameters(std::forward<ParametersT>(value));
347 return *this;
348 }
349 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = JobParameter>
350 GetJobResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
351 m_parametersHasBeenSet = true;
352 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
353 return *this;
354 }
356
358
361 inline const Attachments& GetAttachments() const { return m_attachments; }
362 template <typename AttachmentsT = Attachments>
363 void SetAttachments(AttachmentsT&& value) {
364 m_attachmentsHasBeenSet = true;
365 m_attachments = std::forward<AttachmentsT>(value);
366 }
367 template <typename AttachmentsT = Attachments>
368 GetJobResult& WithAttachments(AttachmentsT&& value) {
369 SetAttachments(std::forward<AttachmentsT>(value));
370 return *this;
371 }
373
375
380 inline const Aws::String& GetDescription() const { return m_description; }
381 template <typename DescriptionT = Aws::String>
382 void SetDescription(DescriptionT&& value) {
383 m_descriptionHasBeenSet = true;
384 m_description = std::forward<DescriptionT>(value);
385 }
386 template <typename DescriptionT = Aws::String>
387 GetJobResult& WithDescription(DescriptionT&& value) {
388 SetDescription(std::forward<DescriptionT>(value));
389 return *this;
390 }
392
394
401 inline int GetMaxWorkerCount() const { return m_maxWorkerCount; }
402 inline void SetMaxWorkerCount(int value) {
403 m_maxWorkerCountHasBeenSet = true;
404 m_maxWorkerCount = value;
405 }
406 inline GetJobResult& WithMaxWorkerCount(int value) {
407 SetMaxWorkerCount(value);
408 return *this;
409 }
411
413
416 inline const Aws::String& GetSourceJobId() const { return m_sourceJobId; }
417 template <typename SourceJobIdT = Aws::String>
418 void SetSourceJobId(SourceJobIdT&& value) {
419 m_sourceJobIdHasBeenSet = true;
420 m_sourceJobId = std::forward<SourceJobIdT>(value);
421 }
422 template <typename SourceJobIdT = Aws::String>
423 GetJobResult& WithSourceJobId(SourceJobIdT&& value) {
424 SetSourceJobId(std::forward<SourceJobIdT>(value));
425 return *this;
426 }
428
430
431 inline const Aws::String& GetRequestId() const { return m_requestId; }
432 template <typename RequestIdT = Aws::String>
433 void SetRequestId(RequestIdT&& value) {
434 m_requestIdHasBeenSet = true;
435 m_requestId = std::forward<RequestIdT>(value);
436 }
437 template <typename RequestIdT = Aws::String>
438 GetJobResult& WithRequestId(RequestIdT&& value) {
439 SetRequestId(std::forward<RequestIdT>(value));
440 return *this;
441 }
443 private:
444 Aws::String m_jobId;
445
446 Aws::String m_name;
447
449
450 Aws::String m_lifecycleStatusMessage;
451
452 int m_priority{0};
453
454 Aws::Utils::DateTime m_createdAt{};
455
456 Aws::String m_createdBy;
457
458 Aws::Utils::DateTime m_updatedAt{};
459
460 Aws::String m_updatedBy;
461
462 Aws::Utils::DateTime m_startedAt{};
463
464 Aws::Utils::DateTime m_endedAt{};
465
466 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
467
469
470 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
471
472 int m_taskFailureRetryCount{0};
473
474 Aws::String m_storageProfileId;
475
476 int m_maxFailedTasksCount{0};
477
478 int m_maxRetriesPerTask{0};
479
481
482 Attachments m_attachments;
483
484 Aws::String m_description;
485
486 int m_maxWorkerCount{0};
487
488 Aws::String m_sourceJobId;
489
490 Aws::String m_requestId;
491 bool m_jobIdHasBeenSet = false;
492 bool m_nameHasBeenSet = false;
493 bool m_lifecycleStatusHasBeenSet = false;
494 bool m_lifecycleStatusMessageHasBeenSet = false;
495 bool m_priorityHasBeenSet = false;
496 bool m_createdAtHasBeenSet = false;
497 bool m_createdByHasBeenSet = false;
498 bool m_updatedAtHasBeenSet = false;
499 bool m_updatedByHasBeenSet = false;
500 bool m_startedAtHasBeenSet = false;
501 bool m_endedAtHasBeenSet = false;
502 bool m_taskRunStatusHasBeenSet = false;
503 bool m_targetTaskRunStatusHasBeenSet = false;
504 bool m_taskRunStatusCountsHasBeenSet = false;
505 bool m_taskFailureRetryCountHasBeenSet = false;
506 bool m_storageProfileIdHasBeenSet = false;
507 bool m_maxFailedTasksCountHasBeenSet = false;
508 bool m_maxRetriesPerTaskHasBeenSet = false;
509 bool m_parametersHasBeenSet = false;
510 bool m_attachmentsHasBeenSet = false;
511 bool m_descriptionHasBeenSet = false;
512 bool m_maxWorkerCountHasBeenSet = false;
513 bool m_sourceJobIdHasBeenSet = false;
514 bool m_requestIdHasBeenSet = false;
515};
516
517} // namespace Model
518} // namespace deadline
519} // namespace Aws
GetJobResult & WithName(NameT &&value)
GetJobResult & WithUpdatedBy(UpdatedByT &&value)
const Aws::String & GetJobId() const
GetJobResult & WithSourceJobId(SourceJobIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetJobResult & WithPriority(int value)
GetJobResult & WithUpdatedAt(UpdatedAtT &&value)
void SetLifecycleStatus(JobLifecycleStatus value)
void SetSourceJobId(SourceJobIdT &&value)
const Aws::String & GetName() const
void SetCreatedAt(CreatedAtT &&value)
const Attachments & GetAttachments() const
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
void SetRequestId(RequestIdT &&value)
TaskRunStatus GetTaskRunStatus() const
GetJobResult & WithJobId(JobIdT &&value)
GetJobResult & WithMaxRetriesPerTask(int value)
void SetAttachments(AttachmentsT &&value)
GetJobResult & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
GetJobResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetUpdatedBy() const
void SetDescription(DescriptionT &&value)
GetJobResult & WithCreatedBy(CreatedByT &&value)
const Aws::String & GetLifecycleStatusMessage() const
GetJobResult & WithTaskRunStatus(TaskRunStatus value)
void SetStorageProfileId(StorageProfileIdT &&value)
GetJobResult & WithMaxWorkerCount(int value)
GetJobResult & WithDescription(DescriptionT &&value)
JobLifecycleStatus GetLifecycleStatus() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetJobResult & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
GetJobResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
GetJobResult & WithLifecycleStatus(JobLifecycleStatus value)
const Aws::String & GetRequestId() const
const Aws::String & GetDescription() const
const Aws::String & GetCreatedBy() const
GetJobResult & WithParameters(ParametersT &&value)
void SetEndedAt(EndedAtT &&value)
void SetParameters(ParametersT &&value)
GetJobResult & WithRequestId(RequestIdT &&value)
GetJobResult & WithStartedAt(StartedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetCreatedBy(CreatedByT &&value)
AWS_DEADLINE_API GetJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetJobResult & WithEndedAt(EndedAtT &&value)
GetJobResult & WithMaxFailedTasksCount(int value)
GetJobResult & WithAttachments(AttachmentsT &&value)
GetJobResult & AddTaskRunStatusCounts(TaskRunStatus key, int value)
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
JobTargetTaskRunStatus GetTargetTaskRunStatus() const
const Aws::Utils::DateTime & GetEndedAt() const
AWS_DEADLINE_API GetJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetUpdatedBy(UpdatedByT &&value)
const Aws::String & GetSourceJobId() const
void SetTargetTaskRunStatus(JobTargetTaskRunStatus value)
AWS_DEADLINE_API GetJobResult()=default
const Aws::String & GetStorageProfileId() const
GetJobResult & WithTaskFailureRetryCount(int value)
GetJobResult & WithTargetTaskRunStatus(JobTargetTaskRunStatus value)
const Aws::Map< Aws::String, JobParameter > & GetParameters() const
void SetStartedAt(StartedAtT &&value)
void SetTaskRunStatus(TaskRunStatus value)
GetJobResult & WithStorageProfileId(StorageProfileIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue