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>
14#include <aws/deadline/model/Attachments.h>
15#include <aws/deadline/model/JobParameter.h>
20template<
typename RESULT_TYPE>
21class AmazonWebServiceResult;
47 template<
typename JobIdT = Aws::String>
48 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet =
true; m_jobId = std::forward<JobIdT>(value); }
49 template<
typename JobIdT = Aws::String>
58 template<
typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
60 template<
typename NameT = Aws::String>
78 template<
typename LifecycleStatusMessageT = Aws::String>
79 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) { m_lifecycleStatusMessageHasBeenSet =
true; m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value); }
80 template<
typename LifecycleStatusMessageT = Aws::String>
89 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
98 template<
typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
100 template<
typename CreatedAtT = Aws::Utils::DateTime>
109 template<
typename CreatedByT = Aws::String>
110 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet =
true; m_createdBy = std::forward<CreatedByT>(value); }
111 template<
typename CreatedByT = Aws::String>
120 template<
typename UpdatedAtT = Aws::Utils::DateTime>
121 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
122 template<
typename UpdatedAtT = Aws::Utils::DateTime>
131 template<
typename UpdatedByT = Aws::String>
132 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet =
true; m_updatedBy = std::forward<UpdatedByT>(value); }
133 template<
typename UpdatedByT = Aws::String>
142 template<
typename StartedAtT = Aws::Utils::DateTime>
143 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet =
true; m_startedAt = std::forward<StartedAtT>(value); }
144 template<
typename StartedAtT = Aws::Utils::DateTime>
153 template<
typename EndedAtT = Aws::Utils::DateTime>
154 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet =
true; m_endedAt = std::forward<EndedAtT>(value); }
155 template<
typename EndedAtT = Aws::Utils::DateTime>
182 template<
typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus,
int>>
183 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) { m_taskRunStatusCountsHasBeenSet =
true; m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value); }
184 template<
typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus,
int>>
187 m_taskRunStatusCountsHasBeenSet =
true; m_taskRunStatusCounts.emplace(key, value);
return *
this;
205 template<
typename StorageProfileIdT = Aws::String>
206 void SetStorageProfileId(StorageProfileIdT&& value) { m_storageProfileIdHasBeenSet =
true; m_storageProfileId = std::forward<StorageProfileIdT>(value); }
207 template<
typename StorageProfileIdT = Aws::String>
226 inline void SetMaxRetriesPerTask(
int value) { m_maxRetriesPerTaskHasBeenSet =
true; m_maxRetriesPerTask = value; }
235 template<
typename ParametersT = Aws::Map<Aws::String, JobParameter>>
236 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
237 template<
typename ParametersT = Aws::Map<Aws::String, JobParameter>>
239 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = JobParameter>
241 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
250 template<
typename AttachmentsT = Attachments>
251 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet =
true; m_attachments = std::forward<AttachmentsT>(value); }
252 template<
typename AttachmentsT = Attachments>
263 template<
typename DescriptionT = Aws::String>
264 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
265 template<
typename DescriptionT = Aws::String>
278 inline void SetMaxWorkerCount(
int value) { m_maxWorkerCountHasBeenSet =
true; m_maxWorkerCount = value; }
287 template<
typename SourceJobIdT = Aws::String>
288 void SetSourceJobId(SourceJobIdT&& value) { m_sourceJobIdHasBeenSet =
true; m_sourceJobId = std::forward<SourceJobIdT>(value); }
289 template<
typename SourceJobIdT = Aws::String>
296 template<
typename RequestIdT = Aws::String>
297 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
298 template<
typename RequestIdT = Aws::String>
304 bool m_jobIdHasBeenSet =
false;
307 bool m_nameHasBeenSet =
false;
310 bool m_lifecycleStatusHasBeenSet =
false;
313 bool m_lifecycleStatusMessageHasBeenSet =
false;
316 bool m_priorityHasBeenSet =
false;
319 bool m_createdAtHasBeenSet =
false;
322 bool m_createdByHasBeenSet =
false;
325 bool m_updatedAtHasBeenSet =
false;
328 bool m_updatedByHasBeenSet =
false;
331 bool m_startedAtHasBeenSet =
false;
334 bool m_endedAtHasBeenSet =
false;
337 bool m_taskRunStatusHasBeenSet =
false;
340 bool m_targetTaskRunStatusHasBeenSet =
false;
343 bool m_taskRunStatusCountsHasBeenSet =
false;
345 int m_taskFailureRetryCount{0};
346 bool m_taskFailureRetryCountHasBeenSet =
false;
349 bool m_storageProfileIdHasBeenSet =
false;
351 int m_maxFailedTasksCount{0};
352 bool m_maxFailedTasksCountHasBeenSet =
false;
354 int m_maxRetriesPerTask{0};
355 bool m_maxRetriesPerTaskHasBeenSet =
false;
358 bool m_parametersHasBeenSet =
false;
360 Attachments m_attachments;
361 bool m_attachmentsHasBeenSet =
false;
364 bool m_descriptionHasBeenSet =
false;
366 int m_maxWorkerCount{0};
367 bool m_maxWorkerCountHasBeenSet =
false;
370 bool m_sourceJobIdHasBeenSet =
false;
373 bool m_requestIdHasBeenSet =
false;
GetJobResult & WithName(NameT &&value)
GetJobResult & WithUpdatedBy(UpdatedByT &&value)
const Aws::String & GetJobId() const
GetJobResult & WithSourceJobId(SourceJobIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetJobResult & WithPriority(int value)
GetJobResult & WithUpdatedAt(UpdatedAtT &&value)
void SetLifecycleStatus(JobLifecycleStatus value)
void SetSourceJobId(SourceJobIdT &&value)
const Aws::String & GetName() const
void SetCreatedAt(CreatedAtT &&value)
const Attachments & GetAttachments() const
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
void SetName(NameT &&value)
void SetRequestId(RequestIdT &&value)
TaskRunStatus GetTaskRunStatus() const
int GetMaxWorkerCount() const
GetJobResult & WithJobId(JobIdT &&value)
GetJobResult & WithMaxRetriesPerTask(int value)
void SetAttachments(AttachmentsT &&value)
GetJobResult & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
GetJobResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetUpdatedBy() const
void SetDescription(DescriptionT &&value)
GetJobResult & WithCreatedBy(CreatedByT &&value)
void SetMaxWorkerCount(int value)
const Aws::String & GetLifecycleStatusMessage() const
GetJobResult & WithTaskRunStatus(TaskRunStatus value)
void SetStorageProfileId(StorageProfileIdT &&value)
GetJobResult & WithMaxWorkerCount(int value)
GetJobResult & WithDescription(DescriptionT &&value)
JobLifecycleStatus GetLifecycleStatus() const
void SetPriority(int value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetJobResult & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
GetJobResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
GetJobResult & WithLifecycleStatus(JobLifecycleStatus value)
const Aws::String & GetRequestId() const
const Aws::String & GetDescription() const
int GetMaxFailedTasksCount() const
const Aws::String & GetCreatedBy() const
GetJobResult & WithParameters(ParametersT &&value)
void SetJobId(JobIdT &&value)
void SetEndedAt(EndedAtT &&value)
void SetParameters(ParametersT &&value)
GetJobResult & WithRequestId(RequestIdT &&value)
GetJobResult & WithStartedAt(StartedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetCreatedBy(CreatedByT &&value)
AWS_DEADLINE_API GetJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetJobResult & WithEndedAt(EndedAtT &&value)
GetJobResult & WithMaxFailedTasksCount(int value)
void SetTaskFailureRetryCount(int value)
GetJobResult & WithAttachments(AttachmentsT &&value)
GetJobResult & AddTaskRunStatusCounts(TaskRunStatus key, int value)
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
JobTargetTaskRunStatus GetTargetTaskRunStatus() const
const Aws::Utils::DateTime & GetEndedAt() const
AWS_DEADLINE_API GetJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
int GetMaxRetriesPerTask() const
void SetUpdatedBy(UpdatedByT &&value)
void SetMaxFailedTasksCount(int value)
const Aws::String & GetSourceJobId() const
void SetTargetTaskRunStatus(JobTargetTaskRunStatus value)
AWS_DEADLINE_API GetJobResult()=default
const Aws::String & GetStorageProfileId() const
GetJobResult & WithTaskFailureRetryCount(int value)
GetJobResult & WithTargetTaskRunStatus(JobTargetTaskRunStatus value)
int GetTaskFailureRetryCount() const
void SetMaxRetriesPerTask(int value)
const Aws::Map< Aws::String, JobParameter > & GetParameters() const
void SetStartedAt(StartedAtT &&value)
void SetTaskRunStatus(TaskRunStatus value)
GetJobResult & WithStorageProfileId(StorageProfileIdT &&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