AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
46 inline const Aws::String& GetJobId() const{ return m_jobId; }
47 inline void SetJobId(const Aws::String& value) { m_jobId = value; }
48 inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
49 inline void SetJobId(const char* value) { m_jobId.assign(value); }
50 inline GetJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
51 inline GetJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
52 inline GetJobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline void SetName(const Aws::String& value) { m_name = value; }
61 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
62 inline void SetName(const char* value) { m_name.assign(value); }
63 inline GetJobResult& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline GetJobResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline GetJobResult& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const JobLifecycleStatus& GetLifecycleStatus() const{ return m_lifecycleStatus; }
73 inline void SetLifecycleStatus(const JobLifecycleStatus& value) { m_lifecycleStatus = value; }
74 inline void SetLifecycleStatus(JobLifecycleStatus&& value) { m_lifecycleStatus = std::move(value); }
75 inline GetJobResult& WithLifecycleStatus(const JobLifecycleStatus& value) { SetLifecycleStatus(value); return *this;}
76 inline GetJobResult& WithLifecycleStatus(JobLifecycleStatus&& value) { SetLifecycleStatus(std::move(value)); return *this;}
78
80
83 inline const Aws::String& GetLifecycleStatusMessage() const{ return m_lifecycleStatusMessage; }
84 inline void SetLifecycleStatusMessage(const Aws::String& value) { m_lifecycleStatusMessage = value; }
85 inline void SetLifecycleStatusMessage(Aws::String&& value) { m_lifecycleStatusMessage = std::move(value); }
86 inline void SetLifecycleStatusMessage(const char* value) { m_lifecycleStatusMessage.assign(value); }
88 inline GetJobResult& WithLifecycleStatusMessage(Aws::String&& value) { SetLifecycleStatusMessage(std::move(value)); return *this;}
89 inline GetJobResult& WithLifecycleStatusMessage(const char* value) { SetLifecycleStatusMessage(value); return *this;}
91
93
96 inline int GetPriority() const{ return m_priority; }
97 inline void SetPriority(int value) { m_priority = value; }
98 inline GetJobResult& WithPriority(int value) { SetPriority(value); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
106 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
107 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
108 inline GetJobResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
109 inline GetJobResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
117 inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; }
118 inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); }
119 inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); }
120 inline GetJobResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
121 inline GetJobResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
122 inline GetJobResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
130 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
131 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
132 inline GetJobResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
133 inline GetJobResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
135
137
140 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
141 inline void SetUpdatedBy(const Aws::String& value) { m_updatedBy = value; }
142 inline void SetUpdatedBy(Aws::String&& value) { m_updatedBy = std::move(value); }
143 inline void SetUpdatedBy(const char* value) { m_updatedBy.assign(value); }
144 inline GetJobResult& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
145 inline GetJobResult& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
146 inline GetJobResult& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
154 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; }
155 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = std::move(value); }
156 inline GetJobResult& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
157 inline GetJobResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
159
161
164 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
165 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAt = value; }
166 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAt = std::move(value); }
167 inline GetJobResult& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
168 inline GetJobResult& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
170
172
175 inline const TaskRunStatus& GetTaskRunStatus() const{ return m_taskRunStatus; }
176 inline void SetTaskRunStatus(const TaskRunStatus& value) { m_taskRunStatus = value; }
177 inline void SetTaskRunStatus(TaskRunStatus&& value) { m_taskRunStatus = std::move(value); }
178 inline GetJobResult& WithTaskRunStatus(const TaskRunStatus& value) { SetTaskRunStatus(value); return *this;}
179 inline GetJobResult& WithTaskRunStatus(TaskRunStatus&& value) { SetTaskRunStatus(std::move(value)); return *this;}
181
183
186 inline const JobTargetTaskRunStatus& GetTargetTaskRunStatus() const{ return m_targetTaskRunStatus; }
187 inline void SetTargetTaskRunStatus(const JobTargetTaskRunStatus& value) { m_targetTaskRunStatus = value; }
188 inline void SetTargetTaskRunStatus(JobTargetTaskRunStatus&& value) { m_targetTaskRunStatus = std::move(value); }
190 inline GetJobResult& WithTargetTaskRunStatus(JobTargetTaskRunStatus&& value) { SetTargetTaskRunStatus(std::move(value)); return *this;}
192
194
197 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const{ return m_taskRunStatusCounts; }
198 inline void SetTaskRunStatusCounts(const Aws::Map<TaskRunStatus, int>& value) { m_taskRunStatusCounts = value; }
199 inline void SetTaskRunStatusCounts(Aws::Map<TaskRunStatus, int>&& value) { m_taskRunStatusCounts = std::move(value); }
202 inline GetJobResult& AddTaskRunStatusCounts(const TaskRunStatus& key, int value) { m_taskRunStatusCounts.emplace(key, value); return *this; }
203 inline GetJobResult& AddTaskRunStatusCounts(TaskRunStatus&& key, int value) { m_taskRunStatusCounts.emplace(std::move(key), value); return *this; }
205
207
210 inline const Aws::String& GetStorageProfileId() const{ return m_storageProfileId; }
211 inline void SetStorageProfileId(const Aws::String& value) { m_storageProfileId = value; }
212 inline void SetStorageProfileId(Aws::String&& value) { m_storageProfileId = std::move(value); }
213 inline void SetStorageProfileId(const char* value) { m_storageProfileId.assign(value); }
214 inline GetJobResult& WithStorageProfileId(const Aws::String& value) { SetStorageProfileId(value); return *this;}
215 inline GetJobResult& WithStorageProfileId(Aws::String&& value) { SetStorageProfileId(std::move(value)); return *this;}
216 inline GetJobResult& WithStorageProfileId(const char* value) { SetStorageProfileId(value); return *this;}
218
220
224 inline int GetMaxFailedTasksCount() const{ return m_maxFailedTasksCount; }
225 inline void SetMaxFailedTasksCount(int value) { m_maxFailedTasksCount = value; }
226 inline GetJobResult& WithMaxFailedTasksCount(int value) { SetMaxFailedTasksCount(value); return *this;}
228
230
233 inline int GetMaxRetriesPerTask() const{ return m_maxRetriesPerTask; }
234 inline void SetMaxRetriesPerTask(int value) { m_maxRetriesPerTask = value; }
235 inline GetJobResult& WithMaxRetriesPerTask(int value) { SetMaxRetriesPerTask(value); return *this;}
237
239
242 inline const Aws::Map<Aws::String, JobParameter>& GetParameters() const{ return m_parameters; }
243 inline void SetParameters(const Aws::Map<Aws::String, JobParameter>& value) { m_parameters = value; }
244 inline void SetParameters(Aws::Map<Aws::String, JobParameter>&& value) { m_parameters = std::move(value); }
246 inline GetJobResult& WithParameters(Aws::Map<Aws::String, JobParameter>&& value) { SetParameters(std::move(value)); return *this;}
247 inline GetJobResult& AddParameters(const Aws::String& key, const JobParameter& value) { m_parameters.emplace(key, value); return *this; }
248 inline GetJobResult& AddParameters(Aws::String&& key, const JobParameter& value) { m_parameters.emplace(std::move(key), value); return *this; }
249 inline GetJobResult& AddParameters(const Aws::String& key, JobParameter&& value) { m_parameters.emplace(key, std::move(value)); return *this; }
250 inline GetJobResult& AddParameters(Aws::String&& key, JobParameter&& value) { m_parameters.emplace(std::move(key), std::move(value)); return *this; }
251 inline GetJobResult& AddParameters(const char* key, JobParameter&& value) { m_parameters.emplace(key, std::move(value)); return *this; }
252 inline GetJobResult& AddParameters(const char* key, const JobParameter& value) { m_parameters.emplace(key, value); return *this; }
254
256
259 inline const Attachments& GetAttachments() const{ return m_attachments; }
260 inline void SetAttachments(const Attachments& value) { m_attachments = value; }
261 inline void SetAttachments(Attachments&& value) { m_attachments = std::move(value); }
262 inline GetJobResult& WithAttachments(const Attachments& value) { SetAttachments(value); return *this;}
263 inline GetJobResult& WithAttachments(Attachments&& value) { SetAttachments(std::move(value)); return *this;}
265
267
272 inline const Aws::String& GetDescription() const{ return m_description; }
273 inline void SetDescription(const Aws::String& value) { m_description = value; }
274 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
275 inline void SetDescription(const char* value) { m_description.assign(value); }
276 inline GetJobResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
277 inline GetJobResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
278 inline GetJobResult& WithDescription(const char* value) { SetDescription(value); return *this;}
280
282
285 inline const Aws::String& GetSourceJobId() const{ return m_sourceJobId; }
286 inline void SetSourceJobId(const Aws::String& value) { m_sourceJobId = value; }
287 inline void SetSourceJobId(Aws::String&& value) { m_sourceJobId = std::move(value); }
288 inline void SetSourceJobId(const char* value) { m_sourceJobId.assign(value); }
289 inline GetJobResult& WithSourceJobId(const Aws::String& value) { SetSourceJobId(value); return *this;}
290 inline GetJobResult& WithSourceJobId(Aws::String&& value) { SetSourceJobId(std::move(value)); return *this;}
291 inline GetJobResult& WithSourceJobId(const char* value) { SetSourceJobId(value); return *this;}
293
295
296 inline const Aws::String& GetRequestId() const{ return m_requestId; }
297 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
298 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
299 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
300 inline GetJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
301 inline GetJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
302 inline GetJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
304 private:
305
306 Aws::String m_jobId;
307
308 Aws::String m_name;
309
310 JobLifecycleStatus m_lifecycleStatus;
311
312 Aws::String m_lifecycleStatusMessage;
313
314 int m_priority;
315
316 Aws::Utils::DateTime m_createdAt;
317
318 Aws::String m_createdBy;
319
320 Aws::Utils::DateTime m_updatedAt;
321
322 Aws::String m_updatedBy;
323
324 Aws::Utils::DateTime m_startedAt;
325
326 Aws::Utils::DateTime m_endedAt;
327
328 TaskRunStatus m_taskRunStatus;
329
330 JobTargetTaskRunStatus m_targetTaskRunStatus;
331
332 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
333
334 Aws::String m_storageProfileId;
335
336 int m_maxFailedTasksCount;
337
338 int m_maxRetriesPerTask;
339
341
342 Attachments m_attachments;
343
344 Aws::String m_description;
345
346 Aws::String m_sourceJobId;
347
348 Aws::String m_requestId;
349 };
350
351} // namespace Model
352} // namespace deadline
353} // namespace Aws
GetJobResult & AddParameters(Aws::String &&key, const JobParameter &value)
const Aws::String & GetJobId() const
void SetCreatedBy(const char *value)
GetJobResult & WithLifecycleStatus(JobLifecycleStatus &&value)
GetJobResult & WithName(const Aws::String &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetTaskRunStatus(const TaskRunStatus &value)
GetJobResult & WithPriority(int value)
void SetJobId(const Aws::String &value)
GetJobResult & WithAttachments(Attachments &&value)
GetJobResult & WithCreatedAt(Aws::Utils::DateTime &&value)
GetJobResult & WithStorageProfileId(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetRequestId(const Aws::String &value)
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetStorageProfileId(Aws::String &&value)
GetJobResult & WithEndedAt(const Aws::Utils::DateTime &value)
GetJobResult & WithJobId(Aws::String &&value)
const Aws::String & GetName() const
void SetLifecycleStatusMessage(const Aws::String &value)
void SetSourceJobId(const char *value)
void SetRequestId(const char *value)
void SetLifecycleStatusMessage(const char *value)
const Attachments & GetAttachments() const
GetJobResult & WithParameters(Aws::Map< Aws::String, JobParameter > &&value)
void SetLifecycleStatus(JobLifecycleStatus &&value)
void SetLifecycleStatusMessage(Aws::String &&value)
void SetSourceJobId(Aws::String &&value)
void SetTaskRunStatusCounts(Aws::Map< TaskRunStatus, int > &&value)
GetJobResult & WithTargetTaskRunStatus(JobTargetTaskRunStatus &&value)
GetJobResult & WithCreatedBy(const Aws::String &value)
void SetUpdatedBy(const Aws::String &value)
GetJobResult & AddParameters(Aws::String &&key, JobParameter &&value)
GetJobResult & WithTaskRunStatus(const TaskRunStatus &value)
void SetTargetTaskRunStatus(const JobTargetTaskRunStatus &value)
GetJobResult & WithMaxRetriesPerTask(int value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetUpdatedBy() const
GetJobResult & WithSourceJobId(const Aws::String &value)
void SetName(Aws::String &&value)
GetJobResult & WithStartedAt(Aws::Utils::DateTime &&value)
GetJobResult & WithJobId(const char *value)
GetJobResult & WithSourceJobId(Aws::String &&value)
GetJobResult & WithDescription(const Aws::String &value)
void SetAttachments(const Attachments &value)
const Aws::String & GetLifecycleStatusMessage() const
void SetSourceJobId(const Aws::String &value)
void SetJobId(const char *value)
GetJobResult & WithJobId(const Aws::String &value)
GetJobResult & WithLifecycleStatusMessage(Aws::String &&value)
GetJobResult & WithLifecycleStatusMessage(const Aws::String &value)
GetJobResult & WithCreatedBy(const char *value)
GetJobResult & AddTaskRunStatusCounts(TaskRunStatus &&key, int value)
GetJobResult & WithTaskRunStatus(TaskRunStatus &&value)
GetJobResult & AddTaskRunStatusCounts(const TaskRunStatus &key, int value)
const JobLifecycleStatus & GetLifecycleStatus() const
void SetCreatedBy(const Aws::String &value)
GetJobResult & WithParameters(const Aws::Map< Aws::String, JobParameter > &value)
GetJobResult & WithUpdatedBy(const char *value)
GetJobResult & WithStorageProfileId(Aws::String &&value)
GetJobResult & WithTaskRunStatusCounts(const Aws::Map< TaskRunStatus, int > &value)
void SetTargetTaskRunStatus(JobTargetTaskRunStatus &&value)
void SetTaskRunStatus(TaskRunStatus &&value)
void SetEndedAt(Aws::Utils::DateTime &&value)
GetJobResult & AddParameters(const Aws::String &key, const JobParameter &value)
GetJobResult & WithUpdatedBy(Aws::String &&value)
GetJobResult & AddParameters(const char *key, JobParameter &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetName(const char *value)
GetJobResult & WithTargetTaskRunStatus(const JobTargetTaskRunStatus &value)
void SetLifecycleStatus(const JobLifecycleStatus &value)
GetJobResult & WithRequestId(const char *value)
GetJobResult & WithTaskRunStatusCounts(Aws::Map< TaskRunStatus, int > &&value)
const Aws::String & GetRequestId() const
void SetUpdatedBy(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetDescription() const
GetJobResult & WithCreatedBy(Aws::String &&value)
GetJobResult & WithLifecycleStatusMessage(const char *value)
GetJobResult & WithStartedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetCreatedBy() const
GetJobResult & AddParameters(const char *key, const JobParameter &value)
GetJobResult & WithDescription(const char *value)
GetJobResult & WithCreatedAt(const Aws::Utils::DateTime &value)
GetJobResult & WithUpdatedBy(const Aws::String &value)
void SetAttachments(Attachments &&value)
GetJobResult & WithRequestId(const Aws::String &value)
void SetStorageProfileId(const Aws::String &value)
void SetJobId(Aws::String &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetDescription(const Aws::String &value)
GetJobResult & WithName(Aws::String &&value)
void SetTaskRunStatusCounts(const Aws::Map< TaskRunStatus, int > &value)
void SetDescription(const char *value)
void SetStartedAt(Aws::Utils::DateTime &&value)
AWS_DEADLINE_API GetJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const TaskRunStatus & GetTaskRunStatus() const
const JobTargetTaskRunStatus & GetTargetTaskRunStatus() const
GetJobResult & AddParameters(const Aws::String &key, JobParameter &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetCreatedBy(Aws::String &&value)
GetJobResult & WithMaxFailedTasksCount(int value)
GetJobResult & WithAttachments(const Attachments &value)
void SetRequestId(Aws::String &&value)
GetJobResult & WithRequestId(Aws::String &&value)
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
GetJobResult & WithEndedAt(Aws::Utils::DateTime &&value)
GetJobResult & WithName(const char *value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetParameters(Aws::Map< Aws::String, JobParameter > &&value)
GetJobResult & WithDescription(Aws::String &&value)
const Aws::Utils::DateTime & GetEndedAt() const
AWS_DEADLINE_API GetJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetJobResult & WithLifecycleStatus(const JobLifecycleStatus &value)
const Aws::String & GetSourceJobId() const
GetJobResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetStorageProfileId(const char *value)
const Aws::String & GetStorageProfileId() const
GetJobResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
GetJobResult & WithSourceJobId(const char *value)
void SetParameters(const Aws::Map< Aws::String, JobParameter > &value)
void SetEndedAt(const Aws::Utils::DateTime &value)
const Aws::Map< Aws::String, JobParameter > & GetParameters() const
GetJobResult & WithStorageProfileId(const char *value)
void SetName(const Aws::String &value)
void SetUpdatedBy(const char *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