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>
45 template <
typename JobIdT = Aws::String>
47 m_jobIdHasBeenSet =
true;
48 m_jobId = std::forward<JobIdT>(value);
50 template <
typename JobIdT = Aws::String>
52 SetJobId(std::forward<JobIdT>(value));
63 template <
typename NameT = Aws::String>
65 m_nameHasBeenSet =
true;
66 m_name = std::forward<NameT>(value);
68 template <
typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
82 m_lifecycleStatusHasBeenSet =
true;
83 m_lifecycleStatus = value;
97 template <
typename LifecycleStatusMessageT = Aws::String>
99 m_lifecycleStatusMessageHasBeenSet =
true;
100 m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value);
102 template <
typename LifecycleStatusMessageT = Aws::String>
116 m_priorityHasBeenSet =
true;
131 template <
typename CreatedAtT = Aws::Utils::DateTime>
133 m_createdAtHasBeenSet =
true;
134 m_createdAt = std::forward<CreatedAtT>(value);
136 template <
typename CreatedAtT = Aws::Utils::DateTime>
149 template <
typename CreatedByT = Aws::String>
151 m_createdByHasBeenSet =
true;
152 m_createdBy = std::forward<CreatedByT>(value);
154 template <
typename CreatedByT = Aws::String>
167 template <
typename UpdatedAtT = Aws::Utils::DateTime>
169 m_updatedAtHasBeenSet =
true;
170 m_updatedAt = std::forward<UpdatedAtT>(value);
172 template <
typename UpdatedAtT = Aws::Utils::DateTime>
185 template <
typename UpdatedByT = Aws::String>
187 m_updatedByHasBeenSet =
true;
188 m_updatedBy = std::forward<UpdatedByT>(value);
190 template <
typename UpdatedByT = Aws::String>
203 template <
typename StartedAtT = Aws::Utils::DateTime>
205 m_startedAtHasBeenSet =
true;
206 m_startedAt = std::forward<StartedAtT>(value);
208 template <
typename StartedAtT = Aws::Utils::DateTime>
221 template <
typename EndedAtT = Aws::Utils::DateTime>
223 m_endedAtHasBeenSet =
true;
224 m_endedAt = std::forward<EndedAtT>(value);
226 template <
typename EndedAtT = Aws::Utils::DateTime>
250 m_taskRunStatusHasBeenSet =
true;
251 m_taskRunStatus = value;
266 m_targetTaskRunStatusHasBeenSet =
true;
267 m_targetTaskRunStatus = value;
281 template <
typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus,
int>>
283 m_taskRunStatusCountsHasBeenSet =
true;
284 m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value);
286 template <
typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus,
int>>
292 m_taskRunStatusCountsHasBeenSet =
true;
293 m_taskRunStatusCounts.emplace(key, value);
305 m_taskFailureRetryCountHasBeenSet =
true;
306 m_taskFailureRetryCount = value;
322 m_maxFailedTasksCountHasBeenSet =
true;
323 m_maxFailedTasksCount = value;
338 m_maxRetriesPerTaskHasBeenSet =
true;
339 m_maxRetriesPerTask = value;
359 m_maxWorkerCountHasBeenSet =
true;
360 m_maxWorkerCount = value;
374 template <
typename SourceJobIdT = Aws::String>
376 m_sourceJobIdHasBeenSet =
true;
377 m_sourceJobId = std::forward<SourceJobIdT>(value);
379 template <
typename SourceJobIdT = Aws::String>
414 int m_taskFailureRetryCount{0};
416 int m_maxFailedTasksCount{0};
418 int m_maxRetriesPerTask{0};
420 int m_maxWorkerCount{0};
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;
void SetPriority(int value)
JobSummary & WithPriority(int value)
JobSummary & WithSourceJobId(SourceJobIdT &&value)
void SetTargetTaskRunStatus(JobTargetTaskRunStatus value)
const Aws::Utils::DateTime & GetStartedAt() const
JobSummary & WithMaxFailedTasksCount(int value)
JobSummary & WithEndedAt(EndedAtT &&value)
JobLifecycleStatus GetLifecycleStatus() const
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
JobSummary & WithCreatedAt(CreatedAtT &&value)
void SetSourceJobId(SourceJobIdT &&value)
int GetMaxRetriesPerTask() const
void SetUpdatedBy(UpdatedByT &&value)
bool LifecycleStatusHasBeenSet() const
void SetStartedAt(StartedAtT &&value)
JobSummary & WithJobId(JobIdT &&value)
JobSummary & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
bool TaskRunStatusHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetTaskRunStatus(TaskRunStatus value)
const Aws::String & GetSourceJobId() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
void SetName(NameT &&value)
JobSummary & WithUpdatedBy(UpdatedByT &&value)
JobSummary & WithCreatedBy(CreatedByT &&value)
AWS_DEADLINE_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetTaskFailureRetryCount(int value)
void SetEndedAt(EndedAtT &&value)
JobSummary & WithStartedAt(StartedAtT &&value)
void SetJobId(JobIdT &&value)
bool MaxFailedTasksCountHasBeenSet() const
bool LifecycleStatusMessageHasBeenSet() const
const Aws::String & GetLifecycleStatusMessage() const
void SetMaxFailedTasksCount(int value)
int GetMaxWorkerCount() const
void SetLifecycleStatus(JobLifecycleStatus value)
bool StartedAtHasBeenSet() const
bool UpdatedByHasBeenSet() const
bool UpdatedAtHasBeenSet() const
TaskRunStatus GetTaskRunStatus() const
void SetCreatedBy(CreatedByT &&value)
const Aws::String & GetJobId() const
AWS_DEADLINE_API JobSummary()=default
bool NameHasBeenSet() const
bool MaxRetriesPerTaskHasBeenSet() const
JobSummary & WithLifecycleStatus(JobLifecycleStatus value)
void SetMaxWorkerCount(int value)
int GetTaskFailureRetryCount() const
JobSummary & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
bool SourceJobIdHasBeenSet() const
JobSummary & WithTargetTaskRunStatus(JobTargetTaskRunStatus value)
void SetCreatedAt(CreatedAtT &&value)
AWS_DEADLINE_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TaskRunStatusCountsHasBeenSet() const
JobSummary & WithTaskRunStatus(TaskRunStatus value)
const Aws::String & GetCreatedBy() const
bool EndedAtHasBeenSet() const
bool JobIdHasBeenSet() const
JobSummary & WithName(NameT &&value)
int GetMaxFailedTasksCount() const
JobSummary & AddTaskRunStatusCounts(TaskRunStatus key, int value)
bool TaskFailureRetryCountHasBeenSet() const
JobSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetName() const
JobSummary & WithMaxRetriesPerTask(int value)
const Aws::Utils::DateTime & GetUpdatedAt() const
JobTargetTaskRunStatus GetTargetTaskRunStatus() const
const Aws::Utils::DateTime & GetEndedAt() const
bool PriorityHasBeenSet() const
void SetMaxRetriesPerTask(int value)
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetUpdatedBy() const
JobSummary & WithMaxWorkerCount(int value)
JobSummary & WithTaskFailureRetryCount(int value)
bool TargetTaskRunStatusHasBeenSet() const
bool CreatedAtHasBeenSet() const
bool MaxWorkerCountHasBeenSet() const
bool CreatedByHasBeenSet() 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