AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
BatchGetJobItem.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 {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace deadline {
27namespace Model {
28
36 public:
37 AWS_DEADLINE_API BatchGetJobItem() = default;
38 AWS_DEADLINE_API BatchGetJobItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetFarmId() const { return m_farmId; }
47 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
48 template <typename FarmIdT = Aws::String>
49 void SetFarmId(FarmIdT&& value) {
50 m_farmIdHasBeenSet = true;
51 m_farmId = std::forward<FarmIdT>(value);
52 }
53 template <typename FarmIdT = Aws::String>
54 BatchGetJobItem& WithFarmId(FarmIdT&& value) {
55 SetFarmId(std::forward<FarmIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetQueueId() const { return m_queueId; }
65 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
66 template <typename QueueIdT = Aws::String>
67 void SetQueueId(QueueIdT&& value) {
68 m_queueIdHasBeenSet = true;
69 m_queueId = std::forward<QueueIdT>(value);
70 }
71 template <typename QueueIdT = Aws::String>
72 BatchGetJobItem& WithQueueId(QueueIdT&& value) {
73 SetQueueId(std::forward<QueueIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetJobId() const { return m_jobId; }
83 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
84 template <typename JobIdT = Aws::String>
85 void SetJobId(JobIdT&& value) {
86 m_jobIdHasBeenSet = true;
87 m_jobId = std::forward<JobIdT>(value);
88 }
89 template <typename JobIdT = Aws::String>
90 BatchGetJobItem& WithJobId(JobIdT&& value) {
91 SetJobId(std::forward<JobIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetName() const { return m_name; }
101 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 template <typename NameT = Aws::String>
103 void SetName(NameT&& value) {
104 m_nameHasBeenSet = true;
105 m_name = std::forward<NameT>(value);
106 }
107 template <typename NameT = Aws::String>
108 BatchGetJobItem& WithName(NameT&& value) {
109 SetName(std::forward<NameT>(value));
110 return *this;
111 }
113
115
118 inline JobLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
119 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
121 m_lifecycleStatusHasBeenSet = true;
122 m_lifecycleStatus = value;
123 }
125 SetLifecycleStatus(value);
126 return *this;
127 }
129
131
134 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
135 inline bool LifecycleStatusMessageHasBeenSet() const { return m_lifecycleStatusMessageHasBeenSet; }
136 template <typename LifecycleStatusMessageT = Aws::String>
137 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
138 m_lifecycleStatusMessageHasBeenSet = true;
139 m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value);
140 }
141 template <typename LifecycleStatusMessageT = Aws::String>
142 BatchGetJobItem& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
143 SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value));
144 return *this;
145 }
147
149
152 inline int GetPriority() const { return m_priority; }
153 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
154 inline void SetPriority(int value) {
155 m_priorityHasBeenSet = true;
156 m_priority = value;
157 }
158 inline BatchGetJobItem& WithPriority(int value) {
159 SetPriority(value);
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
169 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
170 template <typename CreatedAtT = Aws::Utils::DateTime>
171 void SetCreatedAt(CreatedAtT&& value) {
172 m_createdAtHasBeenSet = true;
173 m_createdAt = std::forward<CreatedAtT>(value);
174 }
175 template <typename CreatedAtT = Aws::Utils::DateTime>
176 BatchGetJobItem& WithCreatedAt(CreatedAtT&& value) {
177 SetCreatedAt(std::forward<CreatedAtT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
187 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
188 template <typename CreatedByT = Aws::String>
189 void SetCreatedBy(CreatedByT&& value) {
190 m_createdByHasBeenSet = true;
191 m_createdBy = std::forward<CreatedByT>(value);
192 }
193 template <typename CreatedByT = Aws::String>
194 BatchGetJobItem& WithCreatedBy(CreatedByT&& value) {
195 SetCreatedBy(std::forward<CreatedByT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
205 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
206 template <typename UpdatedAtT = Aws::Utils::DateTime>
207 void SetUpdatedAt(UpdatedAtT&& value) {
208 m_updatedAtHasBeenSet = true;
209 m_updatedAt = std::forward<UpdatedAtT>(value);
210 }
211 template <typename UpdatedAtT = Aws::Utils::DateTime>
212 BatchGetJobItem& WithUpdatedAt(UpdatedAtT&& value) {
213 SetUpdatedAt(std::forward<UpdatedAtT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
223 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
224 template <typename UpdatedByT = Aws::String>
225 void SetUpdatedBy(UpdatedByT&& value) {
226 m_updatedByHasBeenSet = true;
227 m_updatedBy = std::forward<UpdatedByT>(value);
228 }
229 template <typename UpdatedByT = Aws::String>
230 BatchGetJobItem& WithUpdatedBy(UpdatedByT&& value) {
231 SetUpdatedBy(std::forward<UpdatedByT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
241 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
242 template <typename StartedAtT = Aws::Utils::DateTime>
243 void SetStartedAt(StartedAtT&& value) {
244 m_startedAtHasBeenSet = true;
245 m_startedAt = std::forward<StartedAtT>(value);
246 }
247 template <typename StartedAtT = Aws::Utils::DateTime>
248 BatchGetJobItem& WithStartedAt(StartedAtT&& value) {
249 SetStartedAt(std::forward<StartedAtT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
259 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
260 template <typename EndedAtT = Aws::Utils::DateTime>
261 void SetEndedAt(EndedAtT&& value) {
262 m_endedAtHasBeenSet = true;
263 m_endedAt = std::forward<EndedAtT>(value);
264 }
265 template <typename EndedAtT = Aws::Utils::DateTime>
266 BatchGetJobItem& WithEndedAt(EndedAtT&& value) {
267 SetEndedAt(std::forward<EndedAtT>(value));
268 return *this;
269 }
271
273
276 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
277 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
278 inline void SetTaskRunStatus(TaskRunStatus value) {
279 m_taskRunStatusHasBeenSet = true;
280 m_taskRunStatus = value;
281 }
283 SetTaskRunStatus(value);
284 return *this;
285 }
287
289
292 inline JobTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
293 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
295 m_targetTaskRunStatusHasBeenSet = true;
296 m_targetTaskRunStatus = value;
297 }
300 return *this;
301 }
303
305
308 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
309 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
310 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
311 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
312 m_taskRunStatusCountsHasBeenSet = true;
313 m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value);
314 }
315 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
316 BatchGetJobItem& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
317 SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value));
318 return *this;
319 }
321 m_taskRunStatusCountsHasBeenSet = true;
322 m_taskRunStatusCounts.emplace(key, value);
323 return *this;
324 }
326
328
331 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
332 inline bool TaskFailureRetryCountHasBeenSet() const { return m_taskFailureRetryCountHasBeenSet; }
333 inline void SetTaskFailureRetryCount(int value) {
334 m_taskFailureRetryCountHasBeenSet = true;
335 m_taskFailureRetryCount = value;
336 }
339 return *this;
340 }
342
344
347 inline const Aws::String& GetStorageProfileId() const { return m_storageProfileId; }
348 inline bool StorageProfileIdHasBeenSet() const { return m_storageProfileIdHasBeenSet; }
349 template <typename StorageProfileIdT = Aws::String>
350 void SetStorageProfileId(StorageProfileIdT&& value) {
351 m_storageProfileIdHasBeenSet = true;
352 m_storageProfileId = std::forward<StorageProfileIdT>(value);
353 }
354 template <typename StorageProfileIdT = Aws::String>
355 BatchGetJobItem& WithStorageProfileId(StorageProfileIdT&& value) {
356 SetStorageProfileId(std::forward<StorageProfileIdT>(value));
357 return *this;
358 }
360
362
366 inline int GetMaxFailedTasksCount() const { return m_maxFailedTasksCount; }
367 inline bool MaxFailedTasksCountHasBeenSet() const { return m_maxFailedTasksCountHasBeenSet; }
368 inline void SetMaxFailedTasksCount(int value) {
369 m_maxFailedTasksCountHasBeenSet = true;
370 m_maxFailedTasksCount = value;
371 }
374 return *this;
375 }
377
379
382 inline int GetMaxRetriesPerTask() const { return m_maxRetriesPerTask; }
383 inline bool MaxRetriesPerTaskHasBeenSet() const { return m_maxRetriesPerTaskHasBeenSet; }
384 inline void SetMaxRetriesPerTask(int value) {
385 m_maxRetriesPerTaskHasBeenSet = true;
386 m_maxRetriesPerTask = value;
387 }
390 return *this;
391 }
393
395
398 inline const Aws::Map<Aws::String, JobParameter>& GetParameters() const { return m_parameters; }
399 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
400 template <typename ParametersT = Aws::Map<Aws::String, JobParameter>>
401 void SetParameters(ParametersT&& value) {
402 m_parametersHasBeenSet = true;
403 m_parameters = std::forward<ParametersT>(value);
404 }
405 template <typename ParametersT = Aws::Map<Aws::String, JobParameter>>
406 BatchGetJobItem& WithParameters(ParametersT&& value) {
407 SetParameters(std::forward<ParametersT>(value));
408 return *this;
409 }
410 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = JobParameter>
411 BatchGetJobItem& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
412 m_parametersHasBeenSet = true;
413 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
414 return *this;
415 }
417
419
422 inline const Attachments& GetAttachments() const { return m_attachments; }
423 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
424 template <typename AttachmentsT = Attachments>
425 void SetAttachments(AttachmentsT&& value) {
426 m_attachmentsHasBeenSet = true;
427 m_attachments = std::forward<AttachmentsT>(value);
428 }
429 template <typename AttachmentsT = Attachments>
430 BatchGetJobItem& WithAttachments(AttachmentsT&& value) {
431 SetAttachments(std::forward<AttachmentsT>(value));
432 return *this;
433 }
435
437
440 inline const Aws::String& GetDescription() const { return m_description; }
441 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
442 template <typename DescriptionT = Aws::String>
443 void SetDescription(DescriptionT&& value) {
444 m_descriptionHasBeenSet = true;
445 m_description = std::forward<DescriptionT>(value);
446 }
447 template <typename DescriptionT = Aws::String>
448 BatchGetJobItem& WithDescription(DescriptionT&& value) {
449 SetDescription(std::forward<DescriptionT>(value));
450 return *this;
451 }
453
455
458 inline int GetMaxWorkerCount() const { return m_maxWorkerCount; }
459 inline bool MaxWorkerCountHasBeenSet() const { return m_maxWorkerCountHasBeenSet; }
460 inline void SetMaxWorkerCount(int value) {
461 m_maxWorkerCountHasBeenSet = true;
462 m_maxWorkerCount = value;
463 }
465 SetMaxWorkerCount(value);
466 return *this;
467 }
469
471
474 inline const Aws::String& GetSourceJobId() const { return m_sourceJobId; }
475 inline bool SourceJobIdHasBeenSet() const { return m_sourceJobIdHasBeenSet; }
476 template <typename SourceJobIdT = Aws::String>
477 void SetSourceJobId(SourceJobIdT&& value) {
478 m_sourceJobIdHasBeenSet = true;
479 m_sourceJobId = std::forward<SourceJobIdT>(value);
480 }
481 template <typename SourceJobIdT = Aws::String>
482 BatchGetJobItem& WithSourceJobId(SourceJobIdT&& value) {
483 SetSourceJobId(std::forward<SourceJobIdT>(value));
484 return *this;
485 }
487 private:
488 Aws::String m_farmId;
489
490 Aws::String m_queueId;
491
492 Aws::String m_jobId;
493
494 Aws::String m_name;
495
497
498 Aws::String m_lifecycleStatusMessage;
499
500 int m_priority{0};
501
502 Aws::Utils::DateTime m_createdAt{};
503
504 Aws::String m_createdBy;
505
506 Aws::Utils::DateTime m_updatedAt{};
507
508 Aws::String m_updatedBy;
509
510 Aws::Utils::DateTime m_startedAt{};
511
512 Aws::Utils::DateTime m_endedAt{};
513
514 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
515
517
518 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
519
520 int m_taskFailureRetryCount{0};
521
522 Aws::String m_storageProfileId;
523
524 int m_maxFailedTasksCount{0};
525
526 int m_maxRetriesPerTask{0};
527
529
530 Attachments m_attachments;
531
532 Aws::String m_description;
533
534 int m_maxWorkerCount{0};
535
536 Aws::String m_sourceJobId;
537 bool m_farmIdHasBeenSet = false;
538 bool m_queueIdHasBeenSet = false;
539 bool m_jobIdHasBeenSet = false;
540 bool m_nameHasBeenSet = false;
541 bool m_lifecycleStatusHasBeenSet = false;
542 bool m_lifecycleStatusMessageHasBeenSet = false;
543 bool m_priorityHasBeenSet = false;
544 bool m_createdAtHasBeenSet = false;
545 bool m_createdByHasBeenSet = false;
546 bool m_updatedAtHasBeenSet = false;
547 bool m_updatedByHasBeenSet = false;
548 bool m_startedAtHasBeenSet = false;
549 bool m_endedAtHasBeenSet = false;
550 bool m_taskRunStatusHasBeenSet = false;
551 bool m_targetTaskRunStatusHasBeenSet = false;
552 bool m_taskRunStatusCountsHasBeenSet = false;
553 bool m_taskFailureRetryCountHasBeenSet = false;
554 bool m_storageProfileIdHasBeenSet = false;
555 bool m_maxFailedTasksCountHasBeenSet = false;
556 bool m_maxRetriesPerTaskHasBeenSet = false;
557 bool m_parametersHasBeenSet = false;
558 bool m_attachmentsHasBeenSet = false;
559 bool m_descriptionHasBeenSet = false;
560 bool m_maxWorkerCountHasBeenSet = false;
561 bool m_sourceJobIdHasBeenSet = false;
562};
563
564} // namespace Model
565} // namespace deadline
566} // namespace Aws
AWS_DEADLINE_API BatchGetJobItem()=default
void SetDescription(DescriptionT &&value)
const Aws::String & GetCreatedBy() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
BatchGetJobItem & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
BatchGetJobItem & WithStartedAt(StartedAtT &&value)
const Aws::String & GetSourceJobId() const
BatchGetJobItem & WithSourceJobId(SourceJobIdT &&value)
AWS_DEADLINE_API BatchGetJobItem(Aws::Utils::Json::JsonView jsonValue)
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
BatchGetJobItem & AddTaskRunStatusCounts(TaskRunStatus key, int value)
void SetStartedAt(StartedAtT &&value)
const Aws::String & GetLifecycleStatusMessage() const
const Attachments & GetAttachments() const
BatchGetJobItem & WithUpdatedBy(UpdatedByT &&value)
const Aws::String & GetName() const
void SetLifecycleStatus(JobLifecycleStatus value)
void SetParameters(ParametersT &&value)
BatchGetJobItem & WithAttachments(AttachmentsT &&value)
BatchGetJobItem & WithTaskRunStatus(TaskRunStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetTargetTaskRunStatus(JobTargetTaskRunStatus value)
BatchGetJobItem & WithCreatedAt(CreatedAtT &&value)
void SetSourceJobId(SourceJobIdT &&value)
BatchGetJobItem & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
const Aws::String & GetDescription() const
BatchGetJobItem & WithFarmId(FarmIdT &&value)
BatchGetJobItem & WithCreatedBy(CreatedByT &&value)
const Aws::String & GetStorageProfileId() const
JobLifecycleStatus GetLifecycleStatus() const
void SetTaskRunStatus(TaskRunStatus value)
void SetCreatedBy(CreatedByT &&value)
BatchGetJobItem & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
const Aws::String & GetFarmId() const
const Aws::String & GetQueueId() const
void SetUpdatedBy(UpdatedByT &&value)
BatchGetJobItem & WithParameters(ParametersT &&value)
BatchGetJobItem & WithStorageProfileId(StorageProfileIdT &&value)
BatchGetJobItem & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetJobId() const
BatchGetJobItem & WithJobId(JobIdT &&value)
JobTargetTaskRunStatus GetTargetTaskRunStatus() const
BatchGetJobItem & WithTargetTaskRunStatus(JobTargetTaskRunStatus value)
BatchGetJobItem & WithLifecycleStatus(JobLifecycleStatus value)
BatchGetJobItem & WithMaxFailedTasksCount(int value)
void SetCreatedAt(CreatedAtT &&value)
AWS_DEADLINE_API BatchGetJobItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndedAt() const
BatchGetJobItem & WithName(NameT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetUpdatedBy() const
BatchGetJobItem & WithEndedAt(EndedAtT &&value)
BatchGetJobItem & WithPriority(int value)
BatchGetJobItem & WithQueueId(QueueIdT &&value)
void SetAttachments(AttachmentsT &&value)
const Aws::Map< Aws::String, JobParameter > & GetParameters() const
void SetStorageProfileId(StorageProfileIdT &&value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
BatchGetJobItem & WithDescription(DescriptionT &&value)
BatchGetJobItem & WithMaxWorkerCount(int value)
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
BatchGetJobItem & WithMaxRetriesPerTask(int value)
BatchGetJobItem & WithTaskFailureRetryCount(int 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