AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
JobSummary.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/JobLifecycleStatus.h>
12#include <aws/deadline/model/JobTargetTaskRunStatus.h>
13#include <aws/deadline/model/TaskRunStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace deadline {
25namespace Model {
26
33 public:
34 AWS_DEADLINE_API JobSummary() = default;
35 AWS_DEADLINE_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEADLINE_API JobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetJobId() const { return m_jobId; }
44 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
45 template <typename JobIdT = Aws::String>
46 void SetJobId(JobIdT&& value) {
47 m_jobIdHasBeenSet = true;
48 m_jobId = std::forward<JobIdT>(value);
49 }
50 template <typename JobIdT = Aws::String>
51 JobSummary& WithJobId(JobIdT&& value) {
52 SetJobId(std::forward<JobIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 JobSummary& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline JobLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
80 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
82 m_lifecycleStatusHasBeenSet = true;
83 m_lifecycleStatus = value;
84 }
86 SetLifecycleStatus(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
96 inline bool LifecycleStatusMessageHasBeenSet() const { return m_lifecycleStatusMessageHasBeenSet; }
97 template <typename LifecycleStatusMessageT = Aws::String>
98 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
99 m_lifecycleStatusMessageHasBeenSet = true;
100 m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value);
101 }
102 template <typename LifecycleStatusMessageT = Aws::String>
103 JobSummary& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
104 SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value));
105 return *this;
106 }
108
110
113 inline int GetPriority() const { return m_priority; }
114 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
115 inline void SetPriority(int value) {
116 m_priorityHasBeenSet = true;
117 m_priority = value;
118 }
119 inline JobSummary& WithPriority(int value) {
120 SetPriority(value);
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
130 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
131 template <typename CreatedAtT = Aws::Utils::DateTime>
132 void SetCreatedAt(CreatedAtT&& value) {
133 m_createdAtHasBeenSet = true;
134 m_createdAt = std::forward<CreatedAtT>(value);
135 }
136 template <typename CreatedAtT = Aws::Utils::DateTime>
137 JobSummary& WithCreatedAt(CreatedAtT&& value) {
138 SetCreatedAt(std::forward<CreatedAtT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
148 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
149 template <typename CreatedByT = Aws::String>
150 void SetCreatedBy(CreatedByT&& value) {
151 m_createdByHasBeenSet = true;
152 m_createdBy = std::forward<CreatedByT>(value);
153 }
154 template <typename CreatedByT = Aws::String>
155 JobSummary& WithCreatedBy(CreatedByT&& value) {
156 SetCreatedBy(std::forward<CreatedByT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
166 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
167 template <typename UpdatedAtT = Aws::Utils::DateTime>
168 void SetUpdatedAt(UpdatedAtT&& value) {
169 m_updatedAtHasBeenSet = true;
170 m_updatedAt = std::forward<UpdatedAtT>(value);
171 }
172 template <typename UpdatedAtT = Aws::Utils::DateTime>
173 JobSummary& WithUpdatedAt(UpdatedAtT&& value) {
174 SetUpdatedAt(std::forward<UpdatedAtT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
184 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
185 template <typename UpdatedByT = Aws::String>
186 void SetUpdatedBy(UpdatedByT&& value) {
187 m_updatedByHasBeenSet = true;
188 m_updatedBy = std::forward<UpdatedByT>(value);
189 }
190 template <typename UpdatedByT = Aws::String>
191 JobSummary& WithUpdatedBy(UpdatedByT&& value) {
192 SetUpdatedBy(std::forward<UpdatedByT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
202 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
203 template <typename StartedAtT = Aws::Utils::DateTime>
204 void SetStartedAt(StartedAtT&& value) {
205 m_startedAtHasBeenSet = true;
206 m_startedAt = std::forward<StartedAtT>(value);
207 }
208 template <typename StartedAtT = Aws::Utils::DateTime>
209 JobSummary& WithStartedAt(StartedAtT&& value) {
210 SetStartedAt(std::forward<StartedAtT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
220 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
221 template <typename EndedAtT = Aws::Utils::DateTime>
222 void SetEndedAt(EndedAtT&& value) {
223 m_endedAtHasBeenSet = true;
224 m_endedAt = std::forward<EndedAtT>(value);
225 }
226 template <typename EndedAtT = Aws::Utils::DateTime>
227 JobSummary& WithEndedAt(EndedAtT&& value) {
228 SetEndedAt(std::forward<EndedAtT>(value));
229 return *this;
230 }
232
234
247 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
248 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
249 inline void SetTaskRunStatus(TaskRunStatus value) {
250 m_taskRunStatusHasBeenSet = true;
251 m_taskRunStatus = value;
252 }
254 SetTaskRunStatus(value);
255 return *this;
256 }
258
260
263 inline JobTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
264 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
266 m_targetTaskRunStatusHasBeenSet = true;
267 m_targetTaskRunStatus = value;
268 }
271 return *this;
272 }
274
276
279 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
280 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
281 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
282 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
283 m_taskRunStatusCountsHasBeenSet = true;
284 m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value);
285 }
286 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
287 JobSummary& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
288 SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value));
289 return *this;
290 }
292 m_taskRunStatusCountsHasBeenSet = true;
293 m_taskRunStatusCounts.emplace(key, value);
294 return *this;
295 }
297
299
302 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
303 inline bool TaskFailureRetryCountHasBeenSet() const { return m_taskFailureRetryCountHasBeenSet; }
304 inline void SetTaskFailureRetryCount(int value) {
305 m_taskFailureRetryCountHasBeenSet = true;
306 m_taskFailureRetryCount = value;
307 }
310 return *this;
311 }
313
315
319 inline int GetMaxFailedTasksCount() const { return m_maxFailedTasksCount; }
320 inline bool MaxFailedTasksCountHasBeenSet() const { return m_maxFailedTasksCountHasBeenSet; }
321 inline void SetMaxFailedTasksCount(int value) {
322 m_maxFailedTasksCountHasBeenSet = true;
323 m_maxFailedTasksCount = value;
324 }
327 return *this;
328 }
330
332
335 inline int GetMaxRetriesPerTask() const { return m_maxRetriesPerTask; }
336 inline bool MaxRetriesPerTaskHasBeenSet() const { return m_maxRetriesPerTaskHasBeenSet; }
337 inline void SetMaxRetriesPerTask(int value) {
338 m_maxRetriesPerTaskHasBeenSet = true;
339 m_maxRetriesPerTask = value;
340 }
343 return *this;
344 }
346
348
356 inline int GetMaxWorkerCount() const { return m_maxWorkerCount; }
357 inline bool MaxWorkerCountHasBeenSet() const { return m_maxWorkerCountHasBeenSet; }
358 inline void SetMaxWorkerCount(int value) {
359 m_maxWorkerCountHasBeenSet = true;
360 m_maxWorkerCount = value;
361 }
362 inline JobSummary& WithMaxWorkerCount(int value) {
363 SetMaxWorkerCount(value);
364 return *this;
365 }
367
369
372 inline const Aws::String& GetSourceJobId() const { return m_sourceJobId; }
373 inline bool SourceJobIdHasBeenSet() const { return m_sourceJobIdHasBeenSet; }
374 template <typename SourceJobIdT = Aws::String>
375 void SetSourceJobId(SourceJobIdT&& value) {
376 m_sourceJobIdHasBeenSet = true;
377 m_sourceJobId = std::forward<SourceJobIdT>(value);
378 }
379 template <typename SourceJobIdT = Aws::String>
380 JobSummary& WithSourceJobId(SourceJobIdT&& value) {
381 SetSourceJobId(std::forward<SourceJobIdT>(value));
382 return *this;
383 }
385 private:
386 Aws::String m_jobId;
387
388 Aws::String m_name;
389
391
392 Aws::String m_lifecycleStatusMessage;
393
394 int m_priority{0};
395
396 Aws::Utils::DateTime m_createdAt{};
397
398 Aws::String m_createdBy;
399
400 Aws::Utils::DateTime m_updatedAt{};
401
402 Aws::String m_updatedBy;
403
404 Aws::Utils::DateTime m_startedAt{};
405
406 Aws::Utils::DateTime m_endedAt{};
407
408 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
409
411
412 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
413
414 int m_taskFailureRetryCount{0};
415
416 int m_maxFailedTasksCount{0};
417
418 int m_maxRetriesPerTask{0};
419
420 int m_maxWorkerCount{0};
421
422 Aws::String m_sourceJobId;
423 bool m_jobIdHasBeenSet = false;
424 bool m_nameHasBeenSet = false;
425 bool m_lifecycleStatusHasBeenSet = false;
426 bool m_lifecycleStatusMessageHasBeenSet = false;
427 bool m_priorityHasBeenSet = false;
428 bool m_createdAtHasBeenSet = false;
429 bool m_createdByHasBeenSet = false;
430 bool m_updatedAtHasBeenSet = false;
431 bool m_updatedByHasBeenSet = false;
432 bool m_startedAtHasBeenSet = false;
433 bool m_endedAtHasBeenSet = false;
434 bool m_taskRunStatusHasBeenSet = false;
435 bool m_targetTaskRunStatusHasBeenSet = false;
436 bool m_taskRunStatusCountsHasBeenSet = false;
437 bool m_taskFailureRetryCountHasBeenSet = false;
438 bool m_maxFailedTasksCountHasBeenSet = false;
439 bool m_maxRetriesPerTaskHasBeenSet = false;
440 bool m_maxWorkerCountHasBeenSet = false;
441 bool m_sourceJobIdHasBeenSet = false;
442};
443
444} // namespace Model
445} // namespace deadline
446} // namespace Aws
JobSummary & WithPriority(int value)
Definition JobSummary.h:119
JobSummary & WithSourceJobId(SourceJobIdT &&value)
Definition JobSummary.h:380
void SetTargetTaskRunStatus(JobTargetTaskRunStatus value)
Definition JobSummary.h:265
const Aws::Utils::DateTime & GetStartedAt() const
Definition JobSummary.h:201
JobSummary & WithMaxFailedTasksCount(int value)
Definition JobSummary.h:325
JobSummary & WithEndedAt(EndedAtT &&value)
Definition JobSummary.h:227
JobLifecycleStatus GetLifecycleStatus() const
Definition JobSummary.h:79
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
Definition JobSummary.h:279
JobSummary & WithCreatedAt(CreatedAtT &&value)
Definition JobSummary.h:137
void SetSourceJobId(SourceJobIdT &&value)
Definition JobSummary.h:375
void SetUpdatedBy(UpdatedByT &&value)
Definition JobSummary.h:186
void SetStartedAt(StartedAtT &&value)
Definition JobSummary.h:204
JobSummary & WithJobId(JobIdT &&value)
Definition JobSummary.h:51
JobSummary & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
Definition JobSummary.h:287
const Aws::Utils::DateTime & GetCreatedAt() const
Definition JobSummary.h:129
void SetTaskRunStatus(TaskRunStatus value)
Definition JobSummary.h:249
const Aws::String & GetSourceJobId() const
Definition JobSummary.h:372
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
Definition JobSummary.h:282
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
Definition JobSummary.h:98
void SetName(NameT &&value)
Definition JobSummary.h:64
JobSummary & WithUpdatedBy(UpdatedByT &&value)
Definition JobSummary.h:191
JobSummary & WithCreatedBy(CreatedByT &&value)
Definition JobSummary.h:155
AWS_DEADLINE_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetTaskFailureRetryCount(int value)
Definition JobSummary.h:304
void SetEndedAt(EndedAtT &&value)
Definition JobSummary.h:222
JobSummary & WithStartedAt(StartedAtT &&value)
Definition JobSummary.h:209
void SetJobId(JobIdT &&value)
Definition JobSummary.h:46
bool MaxFailedTasksCountHasBeenSet() const
Definition JobSummary.h:320
bool LifecycleStatusMessageHasBeenSet() const
Definition JobSummary.h:96
const Aws::String & GetLifecycleStatusMessage() const
Definition JobSummary.h:95
void SetMaxFailedTasksCount(int value)
Definition JobSummary.h:321
void SetLifecycleStatus(JobLifecycleStatus value)
Definition JobSummary.h:81
TaskRunStatus GetTaskRunStatus() const
Definition JobSummary.h:247
void SetCreatedBy(CreatedByT &&value)
Definition JobSummary.h:150
const Aws::String & GetJobId() const
Definition JobSummary.h:43
AWS_DEADLINE_API JobSummary()=default
JobSummary & WithLifecycleStatus(JobLifecycleStatus value)
Definition JobSummary.h:85
JobSummary & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
Definition JobSummary.h:103
JobSummary & WithTargetTaskRunStatus(JobTargetTaskRunStatus value)
Definition JobSummary.h:269
void SetCreatedAt(CreatedAtT &&value)
Definition JobSummary.h:132
AWS_DEADLINE_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TaskRunStatusCountsHasBeenSet() const
Definition JobSummary.h:280
JobSummary & WithTaskRunStatus(TaskRunStatus value)
Definition JobSummary.h:253
const Aws::String & GetCreatedBy() const
Definition JobSummary.h:147
JobSummary & WithName(NameT &&value)
Definition JobSummary.h:69
JobSummary & AddTaskRunStatusCounts(TaskRunStatus key, int value)
Definition JobSummary.h:291
bool TaskFailureRetryCountHasBeenSet() const
Definition JobSummary.h:303
JobSummary & WithUpdatedAt(UpdatedAtT &&value)
Definition JobSummary.h:173
const Aws::String & GetName() const
Definition JobSummary.h:61
JobSummary & WithMaxRetriesPerTask(int value)
Definition JobSummary.h:341
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition JobSummary.h:165
JobTargetTaskRunStatus GetTargetTaskRunStatus() const
Definition JobSummary.h:263
const Aws::Utils::DateTime & GetEndedAt() const
Definition JobSummary.h:219
void SetMaxRetriesPerTask(int value)
Definition JobSummary.h:337
void SetUpdatedAt(UpdatedAtT &&value)
Definition JobSummary.h:168
const Aws::String & GetUpdatedBy() const
Definition JobSummary.h:183
JobSummary & WithMaxWorkerCount(int value)
Definition JobSummary.h:362
JobSummary & WithTaskFailureRetryCount(int value)
Definition JobSummary.h:308
bool TargetTaskRunStatusHasBeenSet() const
Definition JobSummary.h:264
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