AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetJobResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/deadline/Deadline_EXPORTS.h>
12#include <aws/deadline/model/Attachments.h>
13#include <aws/deadline/model/JobLifecycleStatus.h>
14#include <aws/deadline/model/JobParameter.h>
15#include <aws/deadline/model/JobTargetTaskRunStatus.h>
16#include <aws/deadline/model/TaskRunStatus.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace deadline {
30namespace Model {
39 public:
40 AWS_DEADLINE_API GetJobResult() = default;
43
45
48 inline const Aws::String& GetJobId() const { return m_jobId; }
49 template <typename JobIdT = Aws::String>
50 void SetJobId(JobIdT&& value) {
51 m_jobIdHasBeenSet = true;
52 m_jobId = std::forward<JobIdT>(value);
53 }
54 template <typename JobIdT = Aws::String>
55 GetJobResult& WithJobId(JobIdT&& value) {
56 SetJobId(std::forward<JobIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetName() const { return m_name; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 GetJobResult& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline JobLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
84 m_lifecycleStatusHasBeenSet = true;
85 m_lifecycleStatus = value;
86 }
88 SetLifecycleStatus(value);
89 return *this;
90 }
92
94
97 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
98 template <typename LifecycleStatusMessageT = Aws::String>
99 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
100 m_lifecycleStatusMessageHasBeenSet = true;
101 m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value);
102 }
103 template <typename LifecycleStatusMessageT = Aws::String>
104 GetJobResult& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
105 SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value));
106 return *this;
107 }
109
111
114 inline int GetPriority() const { return m_priority; }
115 inline void SetPriority(int value) {
116 m_priorityHasBeenSet = true;
117 m_priority = value;
118 }
119 inline GetJobResult& WithPriority(int value) {
120 SetPriority(value);
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
130 template <typename CreatedAtT = Aws::Utils::DateTime>
131 void SetCreatedAt(CreatedAtT&& value) {
132 m_createdAtHasBeenSet = true;
133 m_createdAt = std::forward<CreatedAtT>(value);
134 }
135 template <typename CreatedAtT = Aws::Utils::DateTime>
136 GetJobResult& WithCreatedAt(CreatedAtT&& value) {
137 SetCreatedAt(std::forward<CreatedAtT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
147 template <typename CreatedByT = Aws::String>
148 void SetCreatedBy(CreatedByT&& value) {
149 m_createdByHasBeenSet = true;
150 m_createdBy = std::forward<CreatedByT>(value);
151 }
152 template <typename CreatedByT = Aws::String>
153 GetJobResult& WithCreatedBy(CreatedByT&& value) {
154 SetCreatedBy(std::forward<CreatedByT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
164 template <typename UpdatedAtT = Aws::Utils::DateTime>
165 void SetUpdatedAt(UpdatedAtT&& value) {
166 m_updatedAtHasBeenSet = true;
167 m_updatedAt = std::forward<UpdatedAtT>(value);
168 }
169 template <typename UpdatedAtT = Aws::Utils::DateTime>
170 GetJobResult& WithUpdatedAt(UpdatedAtT&& value) {
171 SetUpdatedAt(std::forward<UpdatedAtT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
181 template <typename UpdatedByT = Aws::String>
182 void SetUpdatedBy(UpdatedByT&& value) {
183 m_updatedByHasBeenSet = true;
184 m_updatedBy = std::forward<UpdatedByT>(value);
185 }
186 template <typename UpdatedByT = Aws::String>
187 GetJobResult& WithUpdatedBy(UpdatedByT&& value) {
188 SetUpdatedBy(std::forward<UpdatedByT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
198 template <typename StartedAtT = Aws::Utils::DateTime>
199 void SetStartedAt(StartedAtT&& value) {
200 m_startedAtHasBeenSet = true;
201 m_startedAt = std::forward<StartedAtT>(value);
202 }
203 template <typename StartedAtT = Aws::Utils::DateTime>
204 GetJobResult& WithStartedAt(StartedAtT&& value) {
205 SetStartedAt(std::forward<StartedAtT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
215 template <typename EndedAtT = Aws::Utils::DateTime>
216 void SetEndedAt(EndedAtT&& value) {
217 m_endedAtHasBeenSet = true;
218 m_endedAt = std::forward<EndedAtT>(value);
219 }
220 template <typename EndedAtT = Aws::Utils::DateTime>
221 GetJobResult& WithEndedAt(EndedAtT&& value) {
222 SetEndedAt(std::forward<EndedAtT>(value));
223 return *this;
224 }
226
228
231 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
232 inline void SetTaskRunStatus(TaskRunStatus value) {
233 m_taskRunStatusHasBeenSet = true;
234 m_taskRunStatus = value;
235 }
237 SetTaskRunStatus(value);
238 return *this;
239 }
241
243
246 inline JobTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
248 m_targetTaskRunStatusHasBeenSet = true;
249 m_targetTaskRunStatus = value;
250 }
253 return *this;
254 }
256
258
261 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
262 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
263 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
264 m_taskRunStatusCountsHasBeenSet = true;
265 m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value);
266 }
267 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
268 GetJobResult& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
269 SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value));
270 return *this;
271 }
273 m_taskRunStatusCountsHasBeenSet = true;
274 m_taskRunStatusCounts.emplace(key, value);
275 return *this;
276 }
278
280
283 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
284 inline void SetTaskFailureRetryCount(int value) {
285 m_taskFailureRetryCountHasBeenSet = true;
286 m_taskFailureRetryCount = value;
287 }
290 return *this;
291 }
293
295
298 inline const Aws::String& GetStorageProfileId() const { return m_storageProfileId; }
299 template <typename StorageProfileIdT = Aws::String>
300 void SetStorageProfileId(StorageProfileIdT&& value) {
301 m_storageProfileIdHasBeenSet = true;
302 m_storageProfileId = std::forward<StorageProfileIdT>(value);
303 }
304 template <typename StorageProfileIdT = Aws::String>
305 GetJobResult& WithStorageProfileId(StorageProfileIdT&& value) {
306 SetStorageProfileId(std::forward<StorageProfileIdT>(value));
307 return *this;
308 }
310
312
316 inline int GetMaxFailedTasksCount() const { return m_maxFailedTasksCount; }
317 inline void SetMaxFailedTasksCount(int value) {
318 m_maxFailedTasksCountHasBeenSet = true;
319 m_maxFailedTasksCount = value;
320 }
323 return *this;
324 }
326
328
331 inline int GetMaxRetriesPerTask() const { return m_maxRetriesPerTask; }
332 inline void SetMaxRetriesPerTask(int value) {
333 m_maxRetriesPerTaskHasBeenSet = true;
334 m_maxRetriesPerTask = value;
335 }
338 return *this;
339 }
341
343
346 inline const Aws::Map<Aws::String, JobParameter>& GetParameters() const { return m_parameters; }
347 template <typename ParametersT = Aws::Map<Aws::String, JobParameter>>
348 void SetParameters(ParametersT&& value) {
349 m_parametersHasBeenSet = true;
350 m_parameters = std::forward<ParametersT>(value);
351 }
352 template <typename ParametersT = Aws::Map<Aws::String, JobParameter>>
353 GetJobResult& WithParameters(ParametersT&& value) {
354 SetParameters(std::forward<ParametersT>(value));
355 return *this;
356 }
357 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = JobParameter>
358 GetJobResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
359 m_parametersHasBeenSet = true;
360 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
361 return *this;
362 }
364
366
369 inline const Attachments& GetAttachments() const { return m_attachments; }
370 template <typename AttachmentsT = Attachments>
371 void SetAttachments(AttachmentsT&& value) {
372 m_attachmentsHasBeenSet = true;
373 m_attachments = std::forward<AttachmentsT>(value);
374 }
375 template <typename AttachmentsT = Attachments>
376 GetJobResult& WithAttachments(AttachmentsT&& value) {
377 SetAttachments(std::forward<AttachmentsT>(value));
378 return *this;
379 }
381
383
388 inline const Aws::String& GetDescription() const { return m_description; }
389 template <typename DescriptionT = Aws::String>
390 void SetDescription(DescriptionT&& value) {
391 m_descriptionHasBeenSet = true;
392 m_description = std::forward<DescriptionT>(value);
393 }
394 template <typename DescriptionT = Aws::String>
395 GetJobResult& WithDescription(DescriptionT&& value) {
396 SetDescription(std::forward<DescriptionT>(value));
397 return *this;
398 }
400
402
409 inline int GetMaxWorkerCount() const { return m_maxWorkerCount; }
410 inline void SetMaxWorkerCount(int value) {
411 m_maxWorkerCountHasBeenSet = true;
412 m_maxWorkerCount = value;
413 }
414 inline GetJobResult& WithMaxWorkerCount(int value) {
415 SetMaxWorkerCount(value);
416 return *this;
417 }
419
421
424 inline const Aws::String& GetSourceJobId() const { return m_sourceJobId; }
425 template <typename SourceJobIdT = Aws::String>
426 void SetSourceJobId(SourceJobIdT&& value) {
427 m_sourceJobIdHasBeenSet = true;
428 m_sourceJobId = std::forward<SourceJobIdT>(value);
429 }
430 template <typename SourceJobIdT = Aws::String>
431 GetJobResult& WithSourceJobId(SourceJobIdT&& value) {
432 SetSourceJobId(std::forward<SourceJobIdT>(value));
433 return *this;
434 }
436
438
439 inline const Aws::String& GetRequestId() const { return m_requestId; }
440 template <typename RequestIdT = Aws::String>
441 void SetRequestId(RequestIdT&& value) {
442 m_requestIdHasBeenSet = true;
443 m_requestId = std::forward<RequestIdT>(value);
444 }
445 template <typename RequestIdT = Aws::String>
446 GetJobResult& WithRequestId(RequestIdT&& value) {
447 SetRequestId(std::forward<RequestIdT>(value));
448 return *this;
449 }
451 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
452
453 private:
454 Aws::String m_jobId;
455
456 Aws::String m_name;
457
459
460 Aws::String m_lifecycleStatusMessage;
461
462 int m_priority{0};
463
464 Aws::Utils::DateTime m_createdAt{};
465
466 Aws::String m_createdBy;
467
468 Aws::Utils::DateTime m_updatedAt{};
469
470 Aws::String m_updatedBy;
471
472 Aws::Utils::DateTime m_startedAt{};
473
474 Aws::Utils::DateTime m_endedAt{};
475
476 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
477
479
480 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
481
482 int m_taskFailureRetryCount{0};
483
484 Aws::String m_storageProfileId;
485
486 int m_maxFailedTasksCount{0};
487
488 int m_maxRetriesPerTask{0};
489
491
492 Attachments m_attachments;
493
494 Aws::String m_description;
495
496 int m_maxWorkerCount{0};
497
498 Aws::String m_sourceJobId;
499
500 Aws::String m_requestId;
501 Aws::Http::HttpResponseCode m_HttpResponseCode;
502 bool m_jobIdHasBeenSet = false;
503 bool m_nameHasBeenSet = false;
504 bool m_lifecycleStatusHasBeenSet = false;
505 bool m_lifecycleStatusMessageHasBeenSet = false;
506 bool m_priorityHasBeenSet = false;
507 bool m_createdAtHasBeenSet = false;
508 bool m_createdByHasBeenSet = false;
509 bool m_updatedAtHasBeenSet = false;
510 bool m_updatedByHasBeenSet = false;
511 bool m_startedAtHasBeenSet = false;
512 bool m_endedAtHasBeenSet = false;
513 bool m_taskRunStatusHasBeenSet = false;
514 bool m_targetTaskRunStatusHasBeenSet = false;
515 bool m_taskRunStatusCountsHasBeenSet = false;
516 bool m_taskFailureRetryCountHasBeenSet = false;
517 bool m_storageProfileIdHasBeenSet = false;
518 bool m_maxFailedTasksCountHasBeenSet = false;
519 bool m_maxRetriesPerTaskHasBeenSet = false;
520 bool m_parametersHasBeenSet = false;
521 bool m_attachmentsHasBeenSet = false;
522 bool m_descriptionHasBeenSet = false;
523 bool m_maxWorkerCountHasBeenSet = false;
524 bool m_sourceJobIdHasBeenSet = false;
525 bool m_requestIdHasBeenSet = false;
526};
527
528} // namespace Model
529} // namespace deadline
530} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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