AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetJobResult.h
1
6#pragma once
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>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace deadline
31{
32namespace Model
33{
35 {
36 public:
37 AWS_DEADLINE_API GetJobResult() = default;
40
41
43
46 inline const Aws::String& GetJobId() const { return m_jobId; }
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>
50 GetJobResult& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const { return m_name; }
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>
61 GetJobResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
68 inline JobLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
69 inline void SetLifecycleStatus(JobLifecycleStatus value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = value; }
72
74
77 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
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>
81 GetJobResult& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) { SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value)); return *this;}
83
85
88 inline int GetPriority() const { return m_priority; }
89 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
90 inline GetJobResult& WithPriority(int value) { SetPriority(value); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
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>
101 GetJobResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
103
105
108 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
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>
112 GetJobResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
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>
123 GetJobResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
125
127
130 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
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>
134 GetJobResult& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
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>
145 GetJobResult& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
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>
156 GetJobResult& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
158
160
163 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
164 inline void SetTaskRunStatus(TaskRunStatus value) { m_taskRunStatusHasBeenSet = true; m_taskRunStatus = value; }
165 inline GetJobResult& WithTaskRunStatus(TaskRunStatus value) { SetTaskRunStatus(value); return *this;}
167
169
172 inline JobTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
173 inline void SetTargetTaskRunStatus(JobTargetTaskRunStatus value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = value; }
176
178
181 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
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>>
185 GetJobResult& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) { SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value)); return *this;}
187 m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts.emplace(key, value); return *this;
188 }
190
192
195 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
196 inline void SetTaskFailureRetryCount(int value) { m_taskFailureRetryCountHasBeenSet = true; m_taskFailureRetryCount = value; }
197 inline GetJobResult& WithTaskFailureRetryCount(int value) { SetTaskFailureRetryCount(value); return *this;}
199
201
204 inline const Aws::String& GetStorageProfileId() const { return m_storageProfileId; }
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>
208 GetJobResult& WithStorageProfileId(StorageProfileIdT&& value) { SetStorageProfileId(std::forward<StorageProfileIdT>(value)); return *this;}
210
212
216 inline int GetMaxFailedTasksCount() const { return m_maxFailedTasksCount; }
217 inline void SetMaxFailedTasksCount(int value) { m_maxFailedTasksCountHasBeenSet = true; m_maxFailedTasksCount = value; }
218 inline GetJobResult& WithMaxFailedTasksCount(int value) { SetMaxFailedTasksCount(value); return *this;}
220
222
225 inline int GetMaxRetriesPerTask() const { return m_maxRetriesPerTask; }
226 inline void SetMaxRetriesPerTask(int value) { m_maxRetriesPerTaskHasBeenSet = true; m_maxRetriesPerTask = value; }
227 inline GetJobResult& WithMaxRetriesPerTask(int value) { SetMaxRetriesPerTask(value); return *this;}
229
231
234 inline const Aws::Map<Aws::String, JobParameter>& GetParameters() const { return m_parameters; }
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>>
238 GetJobResult& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
239 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = JobParameter>
240 GetJobResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
241 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
242 }
244
246
249 inline const Attachments& GetAttachments() const { return m_attachments; }
250 template<typename AttachmentsT = Attachments>
251 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
252 template<typename AttachmentsT = Attachments>
253 GetJobResult& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
255
257
262 inline const Aws::String& GetDescription() const { return m_description; }
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>
266 GetJobResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
268
270
277 inline int GetMaxWorkerCount() const { return m_maxWorkerCount; }
278 inline void SetMaxWorkerCount(int value) { m_maxWorkerCountHasBeenSet = true; m_maxWorkerCount = value; }
279 inline GetJobResult& WithMaxWorkerCount(int value) { SetMaxWorkerCount(value); return *this;}
281
283
286 inline const Aws::String& GetSourceJobId() const { return m_sourceJobId; }
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>
290 GetJobResult& WithSourceJobId(SourceJobIdT&& value) { SetSourceJobId(std::forward<SourceJobIdT>(value)); return *this;}
292
294
295 inline const Aws::String& GetRequestId() const { return m_requestId; }
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>
299 GetJobResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
301 private:
302
303 Aws::String m_jobId;
304 bool m_jobIdHasBeenSet = false;
305
306 Aws::String m_name;
307 bool m_nameHasBeenSet = false;
308
310 bool m_lifecycleStatusHasBeenSet = false;
311
312 Aws::String m_lifecycleStatusMessage;
313 bool m_lifecycleStatusMessageHasBeenSet = false;
314
315 int m_priority{0};
316 bool m_priorityHasBeenSet = false;
317
318 Aws::Utils::DateTime m_createdAt{};
319 bool m_createdAtHasBeenSet = false;
320
321 Aws::String m_createdBy;
322 bool m_createdByHasBeenSet = false;
323
324 Aws::Utils::DateTime m_updatedAt{};
325 bool m_updatedAtHasBeenSet = false;
326
327 Aws::String m_updatedBy;
328 bool m_updatedByHasBeenSet = false;
329
330 Aws::Utils::DateTime m_startedAt{};
331 bool m_startedAtHasBeenSet = false;
332
333 Aws::Utils::DateTime m_endedAt{};
334 bool m_endedAtHasBeenSet = false;
335
336 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
337 bool m_taskRunStatusHasBeenSet = false;
338
340 bool m_targetTaskRunStatusHasBeenSet = false;
341
342 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
343 bool m_taskRunStatusCountsHasBeenSet = false;
344
345 int m_taskFailureRetryCount{0};
346 bool m_taskFailureRetryCountHasBeenSet = false;
347
348 Aws::String m_storageProfileId;
349 bool m_storageProfileIdHasBeenSet = false;
350
351 int m_maxFailedTasksCount{0};
352 bool m_maxFailedTasksCountHasBeenSet = false;
353
354 int m_maxRetriesPerTask{0};
355 bool m_maxRetriesPerTaskHasBeenSet = false;
356
358 bool m_parametersHasBeenSet = false;
359
360 Attachments m_attachments;
361 bool m_attachmentsHasBeenSet = false;
362
363 Aws::String m_description;
364 bool m_descriptionHasBeenSet = false;
365
366 int m_maxWorkerCount{0};
367 bool m_maxWorkerCountHasBeenSet = false;
368
369 Aws::String m_sourceJobId;
370 bool m_sourceJobIdHasBeenSet = false;
371
372 Aws::String m_requestId;
373 bool m_requestIdHasBeenSet = false;
374 };
375
376} // namespace Model
377} // namespace deadline
378} // namespace Aws
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 SetRequestId(RequestIdT &&value)
TaskRunStatus GetTaskRunStatus() 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)
const Aws::String & GetLifecycleStatusMessage() const
GetJobResult & WithTaskRunStatus(TaskRunStatus value)
void SetStorageProfileId(StorageProfileIdT &&value)
GetJobResult & WithMaxWorkerCount(int value)
GetJobResult & WithDescription(DescriptionT &&value)
JobLifecycleStatus GetLifecycleStatus() const
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
const Aws::String & GetCreatedBy() const
GetJobResult & WithParameters(ParametersT &&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)
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)
void SetUpdatedBy(UpdatedByT &&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)
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