AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
JobSearchSummary.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/JobParameter.h>
13#include <aws/deadline/model/JobTargetTaskRunStatus.h>
14#include <aws/deadline/model/TaskRunStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace deadline {
26namespace Model {
27
34 public:
35 AWS_DEADLINE_API JobSearchSummary() = default;
36 AWS_DEADLINE_API JobSearchSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetJobId() const { return m_jobId; }
45 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
46 template <typename JobIdT = Aws::String>
47 void SetJobId(JobIdT&& value) {
48 m_jobIdHasBeenSet = true;
49 m_jobId = std::forward<JobIdT>(value);
50 }
51 template <typename JobIdT = Aws::String>
52 JobSearchSummary& WithJobId(JobIdT&& value) {
53 SetJobId(std::forward<JobIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetQueueId() const { return m_queueId; }
63 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
64 template <typename QueueIdT = Aws::String>
65 void SetQueueId(QueueIdT&& value) {
66 m_queueIdHasBeenSet = true;
67 m_queueId = std::forward<QueueIdT>(value);
68 }
69 template <typename QueueIdT = Aws::String>
70 JobSearchSummary& WithQueueId(QueueIdT&& value) {
71 SetQueueId(std::forward<QueueIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 JobSearchSummary& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline JobLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
99 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
101 m_lifecycleStatusHasBeenSet = true;
102 m_lifecycleStatus = value;
103 }
105 SetLifecycleStatus(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
115 inline bool LifecycleStatusMessageHasBeenSet() const { return m_lifecycleStatusMessageHasBeenSet; }
116 template <typename LifecycleStatusMessageT = Aws::String>
117 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
118 m_lifecycleStatusMessageHasBeenSet = true;
119 m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value);
120 }
121 template <typename LifecycleStatusMessageT = Aws::String>
122 JobSearchSummary& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
123 SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value));
124 return *this;
125 }
127
129
142 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
143 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
144 inline void SetTaskRunStatus(TaskRunStatus value) {
145 m_taskRunStatusHasBeenSet = true;
146 m_taskRunStatus = value;
147 }
149 SetTaskRunStatus(value);
150 return *this;
151 }
153
155
158 inline JobTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
159 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
161 m_targetTaskRunStatusHasBeenSet = true;
162 m_targetTaskRunStatus = value;
163 }
166 return *this;
167 }
169
171
174 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
175 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
176 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
177 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
178 m_taskRunStatusCountsHasBeenSet = true;
179 m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value);
180 }
181 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
182 JobSearchSummary& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
183 SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value));
184 return *this;
185 }
187 m_taskRunStatusCountsHasBeenSet = true;
188 m_taskRunStatusCounts.emplace(key, value);
189 return *this;
190 }
192
194
197 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
198 inline bool TaskFailureRetryCountHasBeenSet() const { return m_taskFailureRetryCountHasBeenSet; }
199 inline void SetTaskFailureRetryCount(int value) {
200 m_taskFailureRetryCountHasBeenSet = true;
201 m_taskFailureRetryCount = value;
202 }
205 return *this;
206 }
208
210
213 inline int GetPriority() const { return m_priority; }
214 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
215 inline void SetPriority(int value) {
216 m_priorityHasBeenSet = true;
217 m_priority = value;
218 }
219 inline JobSearchSummary& WithPriority(int value) {
220 SetPriority(value);
221 return *this;
222 }
224
226
230 inline int GetMaxFailedTasksCount() const { return m_maxFailedTasksCount; }
231 inline bool MaxFailedTasksCountHasBeenSet() const { return m_maxFailedTasksCountHasBeenSet; }
232 inline void SetMaxFailedTasksCount(int value) {
233 m_maxFailedTasksCountHasBeenSet = true;
234 m_maxFailedTasksCount = value;
235 }
238 return *this;
239 }
241
243
246 inline int GetMaxRetriesPerTask() const { return m_maxRetriesPerTask; }
247 inline bool MaxRetriesPerTaskHasBeenSet() const { return m_maxRetriesPerTaskHasBeenSet; }
248 inline void SetMaxRetriesPerTask(int value) {
249 m_maxRetriesPerTaskHasBeenSet = true;
250 m_maxRetriesPerTask = value;
251 }
254 return *this;
255 }
257
259
262 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
263 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
264 template <typename CreatedByT = Aws::String>
265 void SetCreatedBy(CreatedByT&& value) {
266 m_createdByHasBeenSet = true;
267 m_createdBy = std::forward<CreatedByT>(value);
268 }
269 template <typename CreatedByT = Aws::String>
270 JobSearchSummary& WithCreatedBy(CreatedByT&& value) {
271 SetCreatedBy(std::forward<CreatedByT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
281 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
282 template <typename CreatedAtT = Aws::Utils::DateTime>
283 void SetCreatedAt(CreatedAtT&& value) {
284 m_createdAtHasBeenSet = true;
285 m_createdAt = std::forward<CreatedAtT>(value);
286 }
287 template <typename CreatedAtT = Aws::Utils::DateTime>
288 JobSearchSummary& WithCreatedAt(CreatedAtT&& value) {
289 SetCreatedAt(std::forward<CreatedAtT>(value));
290 return *this;
291 }
293
295
298 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
299 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
300 template <typename EndedAtT = Aws::Utils::DateTime>
301 void SetEndedAt(EndedAtT&& value) {
302 m_endedAtHasBeenSet = true;
303 m_endedAt = std::forward<EndedAtT>(value);
304 }
305 template <typename EndedAtT = Aws::Utils::DateTime>
306 JobSearchSummary& WithEndedAt(EndedAtT&& value) {
307 SetEndedAt(std::forward<EndedAtT>(value));
308 return *this;
309 }
311
313
316 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
317 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
318 template <typename StartedAtT = Aws::Utils::DateTime>
319 void SetStartedAt(StartedAtT&& value) {
320 m_startedAtHasBeenSet = true;
321 m_startedAt = std::forward<StartedAtT>(value);
322 }
323 template <typename StartedAtT = Aws::Utils::DateTime>
324 JobSearchSummary& WithStartedAt(StartedAtT&& value) {
325 SetStartedAt(std::forward<StartedAtT>(value));
326 return *this;
327 }
329
331
334 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
335 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
336 template <typename UpdatedAtT = Aws::Utils::DateTime>
337 void SetUpdatedAt(UpdatedAtT&& value) {
338 m_updatedAtHasBeenSet = true;
339 m_updatedAt = std::forward<UpdatedAtT>(value);
340 }
341 template <typename UpdatedAtT = Aws::Utils::DateTime>
342 JobSearchSummary& WithUpdatedAt(UpdatedAtT&& value) {
343 SetUpdatedAt(std::forward<UpdatedAtT>(value));
344 return *this;
345 }
347
349
352 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
353 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
354 template <typename UpdatedByT = Aws::String>
355 void SetUpdatedBy(UpdatedByT&& value) {
356 m_updatedByHasBeenSet = true;
357 m_updatedBy = std::forward<UpdatedByT>(value);
358 }
359 template <typename UpdatedByT = Aws::String>
360 JobSearchSummary& WithUpdatedBy(UpdatedByT&& value) {
361 SetUpdatedBy(std::forward<UpdatedByT>(value));
362 return *this;
363 }
365
367
370 inline const Aws::Map<Aws::String, JobParameter>& GetJobParameters() const { return m_jobParameters; }
371 inline bool JobParametersHasBeenSet() const { return m_jobParametersHasBeenSet; }
372 template <typename JobParametersT = Aws::Map<Aws::String, JobParameter>>
373 void SetJobParameters(JobParametersT&& value) {
374 m_jobParametersHasBeenSet = true;
375 m_jobParameters = std::forward<JobParametersT>(value);
376 }
377 template <typename JobParametersT = Aws::Map<Aws::String, JobParameter>>
378 JobSearchSummary& WithJobParameters(JobParametersT&& value) {
379 SetJobParameters(std::forward<JobParametersT>(value));
380 return *this;
381 }
382 template <typename JobParametersKeyT = Aws::String, typename JobParametersValueT = JobParameter>
383 JobSearchSummary& AddJobParameters(JobParametersKeyT&& key, JobParametersValueT&& value) {
384 m_jobParametersHasBeenSet = true;
385 m_jobParameters.emplace(std::forward<JobParametersKeyT>(key), std::forward<JobParametersValueT>(value));
386 return *this;
387 }
389
391
399 inline int GetMaxWorkerCount() const { return m_maxWorkerCount; }
400 inline bool MaxWorkerCountHasBeenSet() const { return m_maxWorkerCountHasBeenSet; }
401 inline void SetMaxWorkerCount(int value) {
402 m_maxWorkerCountHasBeenSet = true;
403 m_maxWorkerCount = value;
404 }
406 SetMaxWorkerCount(value);
407 return *this;
408 }
410
412
415 inline const Aws::String& GetSourceJobId() const { return m_sourceJobId; }
416 inline bool SourceJobIdHasBeenSet() const { return m_sourceJobIdHasBeenSet; }
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 JobSearchSummary& WithSourceJobId(SourceJobIdT&& value) {
424 SetSourceJobId(std::forward<SourceJobIdT>(value));
425 return *this;
426 }
428 private:
429 Aws::String m_jobId;
430 bool m_jobIdHasBeenSet = false;
431
432 Aws::String m_queueId;
433 bool m_queueIdHasBeenSet = false;
434
435 Aws::String m_name;
436 bool m_nameHasBeenSet = false;
437
439 bool m_lifecycleStatusHasBeenSet = false;
440
441 Aws::String m_lifecycleStatusMessage;
442 bool m_lifecycleStatusMessageHasBeenSet = false;
443
444 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
445 bool m_taskRunStatusHasBeenSet = false;
446
448 bool m_targetTaskRunStatusHasBeenSet = false;
449
450 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
451 bool m_taskRunStatusCountsHasBeenSet = false;
452
453 int m_taskFailureRetryCount{0};
454 bool m_taskFailureRetryCountHasBeenSet = false;
455
456 int m_priority{0};
457 bool m_priorityHasBeenSet = false;
458
459 int m_maxFailedTasksCount{0};
460 bool m_maxFailedTasksCountHasBeenSet = false;
461
462 int m_maxRetriesPerTask{0};
463 bool m_maxRetriesPerTaskHasBeenSet = false;
464
465 Aws::String m_createdBy;
466 bool m_createdByHasBeenSet = false;
467
468 Aws::Utils::DateTime m_createdAt{};
469 bool m_createdAtHasBeenSet = false;
470
471 Aws::Utils::DateTime m_endedAt{};
472 bool m_endedAtHasBeenSet = false;
473
474 Aws::Utils::DateTime m_startedAt{};
475 bool m_startedAtHasBeenSet = false;
476
477 Aws::Utils::DateTime m_updatedAt{};
478 bool m_updatedAtHasBeenSet = false;
479
480 Aws::String m_updatedBy;
481 bool m_updatedByHasBeenSet = false;
482
484 bool m_jobParametersHasBeenSet = false;
485
486 int m_maxWorkerCount{0};
487 bool m_maxWorkerCountHasBeenSet = false;
488
489 Aws::String m_sourceJobId;
490 bool m_sourceJobIdHasBeenSet = false;
491};
492
493} // namespace Model
494} // namespace deadline
495} // namespace Aws
void SetSourceJobId(SourceJobIdT &&value)
JobSearchSummary & WithPriority(int value)
JobSearchSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
JobSearchSummary & WithJobId(JobIdT &&value)
AWS_DEADLINE_API JobSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetJobId() const
JobSearchSummary & WithCreatedBy(CreatedByT &&value)
JobSearchSummary & WithMaxRetriesPerTask(int value)
JobSearchSummary & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
JobSearchSummary & WithUpdatedBy(UpdatedByT &&value)
AWS_DEADLINE_API JobSearchSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQueueId() const
void SetTaskRunStatus(TaskRunStatus value)
JobSearchSummary & WithMaxFailedTasksCount(int value)
JobSearchSummary & WithTaskFailureRetryCount(int value)
JobSearchSummary & WithStartedAt(StartedAtT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
JobSearchSummary & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
void SetTargetTaskRunStatus(JobTargetTaskRunStatus value)
JobSearchSummary & AddJobParameters(JobParametersKeyT &&key, JobParametersValueT &&value)
const Aws::String & GetUpdatedBy() const
void SetJobParameters(JobParametersT &&value)
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
JobSearchSummary & AddTaskRunStatusCounts(TaskRunStatus key, int value)
JobSearchSummary & WithQueueId(QueueIdT &&value)
JobSearchSummary & WithName(NameT &&value)
JobSearchSummary & WithUpdatedAt(UpdatedAtT &&value)
JobSearchSummary & WithMaxWorkerCount(int value)
const Aws::String & GetSourceJobId() const
JobSearchSummary & WithEndedAt(EndedAtT &&value)
JobSearchSummary & WithTargetTaskRunStatus(JobTargetTaskRunStatus value)
JobSearchSummary & WithLifecycleStatus(JobLifecycleStatus value)
JobSearchSummary & WithJobParameters(JobParametersT &&value)
JobSearchSummary & WithTaskRunStatus(TaskRunStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
JobSearchSummary & WithSourceJobId(SourceJobIdT &&value)
const Aws::String & GetLifecycleStatusMessage() const
const Aws::Utils::DateTime & GetStartedAt() const
AWS_DEADLINE_API JobSearchSummary()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
const Aws::String & GetName() const
JobLifecycleStatus GetLifecycleStatus() const
void SetLifecycleStatus(JobLifecycleStatus value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
const Aws::Map< Aws::String, JobParameter > & GetJobParameters() const
JobTargetTaskRunStatus GetTargetTaskRunStatus() const
const Aws::String & GetCreatedBy() const
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