7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/model/JobLifecycleStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/deadline/model/TaskRunStatus.h>
12#include <aws/deadline/model/JobTargetTaskRunStatus.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
51 template<
typename JobIdT = Aws::String>
52 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet =
true; m_jobId = std::forward<JobIdT>(value); }
53 template<
typename JobIdT = Aws::String>
63 template<
typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
65 template<
typename NameT = Aws::String>
85 template<
typename LifecycleStatusMessageT = Aws::String>
86 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) { m_lifecycleStatusMessageHasBeenSet =
true; m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value); }
87 template<
typename LifecycleStatusMessageT = Aws::String>
97 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
107 template<
typename CreatedAtT = Aws::Utils::DateTime>
108 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
109 template<
typename CreatedAtT = Aws::Utils::DateTime>
119 template<
typename CreatedByT = Aws::String>
120 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet =
true; m_createdBy = std::forward<CreatedByT>(value); }
121 template<
typename CreatedByT = Aws::String>
131 template<
typename UpdatedAtT = Aws::Utils::DateTime>
132 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
133 template<
typename UpdatedAtT = Aws::Utils::DateTime>
143 template<
typename UpdatedByT = Aws::String>
144 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet =
true; m_updatedBy = std::forward<UpdatedByT>(value); }
145 template<
typename UpdatedByT = Aws::String>
155 template<
typename StartedAtT = Aws::Utils::DateTime>
156 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet =
true; m_startedAt = std::forward<StartedAtT>(value); }
157 template<
typename StartedAtT = Aws::Utils::DateTime>
167 template<
typename EndedAtT = Aws::Utils::DateTime>
168 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet =
true; m_endedAt = std::forward<EndedAtT>(value); }
169 template<
typename EndedAtT = Aws::Utils::DateTime>
209 template<
typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus,
int>>
210 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) { m_taskRunStatusCountsHasBeenSet =
true; m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value); }
211 template<
typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus,
int>>
214 m_taskRunStatusCountsHasBeenSet =
true; m_taskRunStatusCounts.emplace(key, value);
return *
this;
245 inline void SetMaxRetriesPerTask(
int value) { m_maxRetriesPerTaskHasBeenSet =
true; m_maxRetriesPerTask = value; }
260 inline void SetMaxWorkerCount(
int value) { m_maxWorkerCountHasBeenSet =
true; m_maxWorkerCount = value; }
270 template<
typename SourceJobIdT = Aws::String>
271 void SetSourceJobId(SourceJobIdT&& value) { m_sourceJobIdHasBeenSet =
true; m_sourceJobId = std::forward<SourceJobIdT>(value); }
272 template<
typename SourceJobIdT = Aws::String>
278 bool m_jobIdHasBeenSet =
false;
281 bool m_nameHasBeenSet =
false;
284 bool m_lifecycleStatusHasBeenSet =
false;
287 bool m_lifecycleStatusMessageHasBeenSet =
false;
290 bool m_priorityHasBeenSet =
false;
293 bool m_createdAtHasBeenSet =
false;
296 bool m_createdByHasBeenSet =
false;
299 bool m_updatedAtHasBeenSet =
false;
302 bool m_updatedByHasBeenSet =
false;
305 bool m_startedAtHasBeenSet =
false;
308 bool m_endedAtHasBeenSet =
false;
311 bool m_taskRunStatusHasBeenSet =
false;
314 bool m_targetTaskRunStatusHasBeenSet =
false;
317 bool m_taskRunStatusCountsHasBeenSet =
false;
319 int m_taskFailureRetryCount{0};
320 bool m_taskFailureRetryCountHasBeenSet =
false;
322 int m_maxFailedTasksCount{0};
323 bool m_maxFailedTasksCountHasBeenSet =
false;
325 int m_maxRetriesPerTask{0};
326 bool m_maxRetriesPerTaskHasBeenSet =
false;
328 int m_maxWorkerCount{0};
329 bool m_maxWorkerCountHasBeenSet =
false;
332 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