AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobSearchSummary.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/deadline/model/TaskRunStatus.h>
11#include <aws/deadline/model/JobTargetTaskRunStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/deadline/model/JobParameter.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace deadline
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_DEADLINE_API JobSearchSummary();
41 AWS_DEADLINE_API JobSearchSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetJobId() const{ return m_jobId; }
51 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
52 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
53 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
54 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
55 inline JobSearchSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
56 inline JobSearchSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
57 inline JobSearchSummary& WithJobId(const char* value) { SetJobId(value); return *this;}
59
61
64 inline const Aws::String& GetQueueId() const{ return m_queueId; }
65 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
66 inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; }
67 inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); }
68 inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); }
69 inline JobSearchSummary& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;}
70 inline JobSearchSummary& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;}
71 inline JobSearchSummary& WithQueueId(const char* value) { SetQueueId(value); return *this;}
73
75
78 inline const Aws::String& GetName() const{ return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
81 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
82 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
83 inline JobSearchSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
84 inline JobSearchSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 inline JobSearchSummary& WithName(const char* value) { SetName(value); return *this;}
87
89
92 inline const JobLifecycleStatus& GetLifecycleStatus() const{ return m_lifecycleStatus; }
93 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
94 inline void SetLifecycleStatus(const JobLifecycleStatus& value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = value; }
95 inline void SetLifecycleStatus(JobLifecycleStatus&& value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = std::move(value); }
96 inline JobSearchSummary& WithLifecycleStatus(const JobLifecycleStatus& value) { SetLifecycleStatus(value); return *this;}
97 inline JobSearchSummary& WithLifecycleStatus(JobLifecycleStatus&& value) { SetLifecycleStatus(std::move(value)); return *this;}
99
101
104 inline const Aws::String& GetLifecycleStatusMessage() const{ return m_lifecycleStatusMessage; }
105 inline bool LifecycleStatusMessageHasBeenSet() const { return m_lifecycleStatusMessageHasBeenSet; }
106 inline void SetLifecycleStatusMessage(const Aws::String& value) { m_lifecycleStatusMessageHasBeenSet = true; m_lifecycleStatusMessage = value; }
107 inline void SetLifecycleStatusMessage(Aws::String&& value) { m_lifecycleStatusMessageHasBeenSet = true; m_lifecycleStatusMessage = std::move(value); }
108 inline void SetLifecycleStatusMessage(const char* value) { m_lifecycleStatusMessageHasBeenSet = true; m_lifecycleStatusMessage.assign(value); }
110 inline JobSearchSummary& WithLifecycleStatusMessage(Aws::String&& value) { SetLifecycleStatusMessage(std::move(value)); return *this;}
111 inline JobSearchSummary& WithLifecycleStatusMessage(const char* value) { SetLifecycleStatusMessage(value); return *this;}
113
115
128 inline const TaskRunStatus& GetTaskRunStatus() const{ return m_taskRunStatus; }
129 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
130 inline void SetTaskRunStatus(const TaskRunStatus& value) { m_taskRunStatusHasBeenSet = true; m_taskRunStatus = value; }
131 inline void SetTaskRunStatus(TaskRunStatus&& value) { m_taskRunStatusHasBeenSet = true; m_taskRunStatus = std::move(value); }
132 inline JobSearchSummary& WithTaskRunStatus(const TaskRunStatus& value) { SetTaskRunStatus(value); return *this;}
133 inline JobSearchSummary& WithTaskRunStatus(TaskRunStatus&& value) { SetTaskRunStatus(std::move(value)); return *this;}
135
137
140 inline const JobTargetTaskRunStatus& GetTargetTaskRunStatus() const{ return m_targetTaskRunStatus; }
141 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
142 inline void SetTargetTaskRunStatus(const JobTargetTaskRunStatus& value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = value; }
143 inline void SetTargetTaskRunStatus(JobTargetTaskRunStatus&& value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = std::move(value); }
147
149
152 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const{ return m_taskRunStatusCounts; }
153 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
154 inline void SetTaskRunStatusCounts(const Aws::Map<TaskRunStatus, int>& value) { m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts = value; }
155 inline void SetTaskRunStatusCounts(Aws::Map<TaskRunStatus, int>&& value) { m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts = std::move(value); }
158 inline JobSearchSummary& AddTaskRunStatusCounts(const TaskRunStatus& key, int value) { m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts.emplace(key, value); return *this; }
159 inline JobSearchSummary& AddTaskRunStatusCounts(TaskRunStatus&& key, int value) { m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts.emplace(std::move(key), value); return *this; }
161
163
166 inline int GetPriority() const{ return m_priority; }
167 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
168 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
169 inline JobSearchSummary& WithPriority(int value) { SetPriority(value); return *this;}
171
173
177 inline int GetMaxFailedTasksCount() const{ return m_maxFailedTasksCount; }
178 inline bool MaxFailedTasksCountHasBeenSet() const { return m_maxFailedTasksCountHasBeenSet; }
179 inline void SetMaxFailedTasksCount(int value) { m_maxFailedTasksCountHasBeenSet = true; m_maxFailedTasksCount = value; }
180 inline JobSearchSummary& WithMaxFailedTasksCount(int value) { SetMaxFailedTasksCount(value); return *this;}
182
184
187 inline int GetMaxRetriesPerTask() const{ return m_maxRetriesPerTask; }
188 inline bool MaxRetriesPerTaskHasBeenSet() const { return m_maxRetriesPerTaskHasBeenSet; }
189 inline void SetMaxRetriesPerTask(int value) { m_maxRetriesPerTaskHasBeenSet = true; m_maxRetriesPerTask = value; }
190 inline JobSearchSummary& WithMaxRetriesPerTask(int value) { SetMaxRetriesPerTask(value); return *this;}
192
194
197 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
198 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
199 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
200 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
201 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
202 inline JobSearchSummary& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
203 inline JobSearchSummary& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
204 inline JobSearchSummary& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
206
208
211 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
212 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
213 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
214 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
215 inline JobSearchSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
216 inline JobSearchSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
218
220
223 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
224 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
225 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; }
226 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); }
227 inline JobSearchSummary& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
228 inline JobSearchSummary& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
230
232
235 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
236 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
237 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
238 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
239 inline JobSearchSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
240 inline JobSearchSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
242
244
247 inline const Aws::Map<Aws::String, JobParameter>& GetJobParameters() const{ return m_jobParameters; }
248 inline bool JobParametersHasBeenSet() const { return m_jobParametersHasBeenSet; }
249 inline void SetJobParameters(const Aws::Map<Aws::String, JobParameter>& value) { m_jobParametersHasBeenSet = true; m_jobParameters = value; }
250 inline void SetJobParameters(Aws::Map<Aws::String, JobParameter>&& value) { m_jobParametersHasBeenSet = true; m_jobParameters = std::move(value); }
253 inline JobSearchSummary& AddJobParameters(const Aws::String& key, const JobParameter& value) { m_jobParametersHasBeenSet = true; m_jobParameters.emplace(key, value); return *this; }
254 inline JobSearchSummary& AddJobParameters(Aws::String&& key, const JobParameter& value) { m_jobParametersHasBeenSet = true; m_jobParameters.emplace(std::move(key), value); return *this; }
255 inline JobSearchSummary& AddJobParameters(const Aws::String& key, JobParameter&& value) { m_jobParametersHasBeenSet = true; m_jobParameters.emplace(key, std::move(value)); return *this; }
256 inline JobSearchSummary& AddJobParameters(Aws::String&& key, JobParameter&& value) { m_jobParametersHasBeenSet = true; m_jobParameters.emplace(std::move(key), std::move(value)); return *this; }
257 inline JobSearchSummary& AddJobParameters(const char* key, JobParameter&& value) { m_jobParametersHasBeenSet = true; m_jobParameters.emplace(key, std::move(value)); return *this; }
258 inline JobSearchSummary& AddJobParameters(const char* key, const JobParameter& value) { m_jobParametersHasBeenSet = true; m_jobParameters.emplace(key, value); return *this; }
260
262
265 inline const Aws::String& GetSourceJobId() const{ return m_sourceJobId; }
266 inline bool SourceJobIdHasBeenSet() const { return m_sourceJobIdHasBeenSet; }
267 inline void SetSourceJobId(const Aws::String& value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId = value; }
268 inline void SetSourceJobId(Aws::String&& value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId = std::move(value); }
269 inline void SetSourceJobId(const char* value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId.assign(value); }
270 inline JobSearchSummary& WithSourceJobId(const Aws::String& value) { SetSourceJobId(value); return *this;}
271 inline JobSearchSummary& WithSourceJobId(Aws::String&& value) { SetSourceJobId(std::move(value)); return *this;}
272 inline JobSearchSummary& WithSourceJobId(const char* value) { SetSourceJobId(value); return *this;}
274 private:
275
276 Aws::String m_jobId;
277 bool m_jobIdHasBeenSet = false;
278
279 Aws::String m_queueId;
280 bool m_queueIdHasBeenSet = false;
281
282 Aws::String m_name;
283 bool m_nameHasBeenSet = false;
284
285 JobLifecycleStatus m_lifecycleStatus;
286 bool m_lifecycleStatusHasBeenSet = false;
287
288 Aws::String m_lifecycleStatusMessage;
289 bool m_lifecycleStatusMessageHasBeenSet = false;
290
291 TaskRunStatus m_taskRunStatus;
292 bool m_taskRunStatusHasBeenSet = false;
293
294 JobTargetTaskRunStatus m_targetTaskRunStatus;
295 bool m_targetTaskRunStatusHasBeenSet = false;
296
297 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
298 bool m_taskRunStatusCountsHasBeenSet = false;
299
300 int m_priority;
301 bool m_priorityHasBeenSet = false;
302
303 int m_maxFailedTasksCount;
304 bool m_maxFailedTasksCountHasBeenSet = false;
305
306 int m_maxRetriesPerTask;
307 bool m_maxRetriesPerTaskHasBeenSet = false;
308
309 Aws::String m_createdBy;
310 bool m_createdByHasBeenSet = false;
311
312 Aws::Utils::DateTime m_createdAt;
313 bool m_createdAtHasBeenSet = false;
314
315 Aws::Utils::DateTime m_endedAt;
316 bool m_endedAtHasBeenSet = false;
317
318 Aws::Utils::DateTime m_startedAt;
319 bool m_startedAtHasBeenSet = false;
320
322 bool m_jobParametersHasBeenSet = false;
323
324 Aws::String m_sourceJobId;
325 bool m_sourceJobIdHasBeenSet = false;
326 };
327
328} // namespace Model
329} // namespace deadline
330} // namespace Aws
JobSearchSummary & WithSourceJobId(const char *value)
JobSearchSummary & WithEndedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
JobSearchSummary & WithTaskRunStatusCounts(Aws::Map< TaskRunStatus, int > &&value)
JobSearchSummary & WithPriority(int value)
JobSearchSummary & WithLifecycleStatus(const JobLifecycleStatus &value)
JobSearchSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
JobSearchSummary & WithSourceJobId(const Aws::String &value)
const JobTargetTaskRunStatus & GetTargetTaskRunStatus() const
const Aws::Utils::DateTime & GetEndedAt() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetStartedAt(Aws::Utils::DateTime &&value)
AWS_DEADLINE_API JobSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
JobSearchSummary & WithTaskRunStatusCounts(const Aws::Map< TaskRunStatus, int > &value)
JobSearchSummary & WithLifecycleStatusMessage(Aws::String &&value)
JobSearchSummary & WithJobId(Aws::String &&value)
const Aws::String & GetJobId() const
void SetName(const Aws::String &value)
JobSearchSummary & WithLifecycleStatusMessage(const Aws::String &value)
JobSearchSummary & WithMaxRetriesPerTask(int value)
JobSearchSummary & AddJobParameters(const char *key, const JobParameter &value)
AWS_DEADLINE_API JobSearchSummary(Aws::Utils::Json::JsonView jsonValue)
JobSearchSummary & AddTaskRunStatusCounts(TaskRunStatus &&key, int value)
JobSearchSummary & WithSourceJobId(Aws::String &&value)
const Aws::String & GetQueueId() const
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetTargetTaskRunStatus(JobTargetTaskRunStatus &&value)
JobSearchSummary & WithMaxFailedTasksCount(int value)
JobSearchSummary & WithJobId(const Aws::String &value)
JobSearchSummary & WithName(Aws::String &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
JobSearchSummary & WithEndedAt(const Aws::Utils::DateTime &value)
JobSearchSummary & WithTargetTaskRunStatus(JobTargetTaskRunStatus &&value)
JobSearchSummary & AddJobParameters(const Aws::String &key, JobParameter &&value)
JobSearchSummary & WithTaskRunStatus(TaskRunStatus &&value)
void SetJobId(const Aws::String &value)
void SetSourceJobId(const Aws::String &value)
const JobLifecycleStatus & GetLifecycleStatus() const
void SetSourceJobId(Aws::String &&value)
void SetEndedAt(Aws::Utils::DateTime &&value)
void SetTaskRunStatusCounts(const Aws::Map< TaskRunStatus, int > &value)
JobSearchSummary & WithTargetTaskRunStatus(const JobTargetTaskRunStatus &value)
JobSearchSummary & WithCreatedBy(const char *value)
JobSearchSummary & AddJobParameters(Aws::String &&key, JobParameter &&value)
JobSearchSummary & WithStartedAt(Aws::Utils::DateTime &&value)
void SetLifecycleStatusMessage(Aws::String &&value)
JobSearchSummary & WithLifecycleStatus(JobLifecycleStatus &&value)
void SetTaskRunStatusCounts(Aws::Map< TaskRunStatus, int > &&value)
JobSearchSummary & AddTaskRunStatusCounts(const TaskRunStatus &key, int value)
JobSearchSummary & WithLifecycleStatusMessage(const char *value)
JobSearchSummary & WithCreatedBy(Aws::String &&value)
JobSearchSummary & WithCreatedBy(const Aws::String &value)
void SetLifecycleStatus(JobLifecycleStatus &&value)
const Aws::String & GetSourceJobId() const
const TaskRunStatus & GetTaskRunStatus() const
JobSearchSummary & WithStartedAt(const Aws::Utils::DateTime &value)
JobSearchSummary & WithJobParameters(const Aws::Map< Aws::String, JobParameter > &value)
JobSearchSummary & AddJobParameters(const Aws::String &key, const JobParameter &value)
JobSearchSummary & WithJobParameters(Aws::Map< Aws::String, JobParameter > &&value)
JobSearchSummary & WithName(const Aws::String &value)
void SetLifecycleStatusMessage(const Aws::String &value)
void SetCreatedBy(const Aws::String &value)
JobSearchSummary & WithQueueId(const Aws::String &value)
JobSearchSummary & WithQueueId(const char *value)
JobSearchSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetEndedAt(const Aws::Utils::DateTime &value)
void SetLifecycleStatusMessage(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
JobSearchSummary & WithTaskRunStatus(const TaskRunStatus &value)
const Aws::String & GetLifecycleStatusMessage() const
void SetJobParameters(const Aws::Map< Aws::String, JobParameter > &value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetLifecycleStatus(const JobLifecycleStatus &value)
JobSearchSummary & WithQueueId(Aws::String &&value)
void SetTaskRunStatus(const TaskRunStatus &value)
JobSearchSummary & WithName(const char *value)
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
const Aws::String & GetName() const
void SetJobParameters(Aws::Map< Aws::String, JobParameter > &&value)
JobSearchSummary & AddJobParameters(const char *key, JobParameter &&value)
const Aws::Map< Aws::String, JobParameter > & GetJobParameters() const
void SetTaskRunStatus(TaskRunStatus &&value)
JobSearchSummary & AddJobParameters(Aws::String &&key, const JobParameter &value)
void SetQueueId(const Aws::String &value)
JobSearchSummary & WithJobId(const char *value)
void SetTargetTaskRunStatus(const JobTargetTaskRunStatus &value)
const Aws::String & GetCreatedBy() 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