AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename JobIdT = Aws::String>
53 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
54 template<typename JobIdT = Aws::String>
55 JobSearchSummary& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetQueueId() const { return m_queueId; }
63 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
64 template<typename QueueIdT = Aws::String>
65 void SetQueueId(QueueIdT&& value) { m_queueIdHasBeenSet = true; m_queueId = std::forward<QueueIdT>(value); }
66 template<typename QueueIdT = Aws::String>
67 JobSearchSummary& WithQueueId(QueueIdT&& value) { SetQueueId(std::forward<QueueIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 JobSearchSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
86 inline JobLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
87 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
88 inline void SetLifecycleStatus(JobLifecycleStatus value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = value; }
91
93
96 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
97 inline bool LifecycleStatusMessageHasBeenSet() const { return m_lifecycleStatusMessageHasBeenSet; }
98 template<typename LifecycleStatusMessageT = Aws::String>
99 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) { m_lifecycleStatusMessageHasBeenSet = true; m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value); }
100 template<typename LifecycleStatusMessageT = Aws::String>
101 JobSearchSummary& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) { SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value)); return *this;}
103
105
118 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
119 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
120 inline void SetTaskRunStatus(TaskRunStatus value) { m_taskRunStatusHasBeenSet = true; m_taskRunStatus = value; }
121 inline JobSearchSummary& WithTaskRunStatus(TaskRunStatus value) { SetTaskRunStatus(value); return *this;}
123
125
128 inline JobTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
129 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
130 inline void SetTargetTaskRunStatus(JobTargetTaskRunStatus value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = value; }
133
135
138 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
139 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
140 template<typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
141 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) { m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value); }
142 template<typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
143 JobSearchSummary& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) { SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value)); return *this;}
145 m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts.emplace(key, value); return *this;
146 }
148
150
153 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
154 inline bool TaskFailureRetryCountHasBeenSet() const { return m_taskFailureRetryCountHasBeenSet; }
155 inline void SetTaskFailureRetryCount(int value) { m_taskFailureRetryCountHasBeenSet = true; m_taskFailureRetryCount = value; }
156 inline JobSearchSummary& WithTaskFailureRetryCount(int value) { SetTaskFailureRetryCount(value); return *this;}
158
160
163 inline int GetPriority() const { return m_priority; }
164 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
165 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
166 inline JobSearchSummary& WithPriority(int value) { SetPriority(value); return *this;}
168
170
174 inline int GetMaxFailedTasksCount() const { return m_maxFailedTasksCount; }
175 inline bool MaxFailedTasksCountHasBeenSet() const { return m_maxFailedTasksCountHasBeenSet; }
176 inline void SetMaxFailedTasksCount(int value) { m_maxFailedTasksCountHasBeenSet = true; m_maxFailedTasksCount = value; }
177 inline JobSearchSummary& WithMaxFailedTasksCount(int value) { SetMaxFailedTasksCount(value); return *this;}
179
181
184 inline int GetMaxRetriesPerTask() const { return m_maxRetriesPerTask; }
185 inline bool MaxRetriesPerTaskHasBeenSet() const { return m_maxRetriesPerTaskHasBeenSet; }
186 inline void SetMaxRetriesPerTask(int value) { m_maxRetriesPerTaskHasBeenSet = true; m_maxRetriesPerTask = value; }
187 inline JobSearchSummary& WithMaxRetriesPerTask(int value) { SetMaxRetriesPerTask(value); return *this;}
189
191
194 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
195 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
196 template<typename CreatedByT = Aws::String>
197 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
198 template<typename CreatedByT = Aws::String>
199 JobSearchSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
201
203
206 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
207 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
208 template<typename CreatedAtT = Aws::Utils::DateTime>
209 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
210 template<typename CreatedAtT = Aws::Utils::DateTime>
211 JobSearchSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
213
215
218 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
219 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
220 template<typename EndedAtT = Aws::Utils::DateTime>
221 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
222 template<typename EndedAtT = Aws::Utils::DateTime>
223 JobSearchSummary& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
225
227
230 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
231 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
232 template<typename StartedAtT = Aws::Utils::DateTime>
233 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
234 template<typename StartedAtT = Aws::Utils::DateTime>
235 JobSearchSummary& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
237
239
242 inline const Aws::Map<Aws::String, JobParameter>& GetJobParameters() const { return m_jobParameters; }
243 inline bool JobParametersHasBeenSet() const { return m_jobParametersHasBeenSet; }
244 template<typename JobParametersT = Aws::Map<Aws::String, JobParameter>>
245 void SetJobParameters(JobParametersT&& value) { m_jobParametersHasBeenSet = true; m_jobParameters = std::forward<JobParametersT>(value); }
246 template<typename JobParametersT = Aws::Map<Aws::String, JobParameter>>
247 JobSearchSummary& WithJobParameters(JobParametersT&& value) { SetJobParameters(std::forward<JobParametersT>(value)); return *this;}
248 template<typename JobParametersKeyT = Aws::String, typename JobParametersValueT = JobParameter>
249 JobSearchSummary& AddJobParameters(JobParametersKeyT&& key, JobParametersValueT&& value) {
250 m_jobParametersHasBeenSet = true; m_jobParameters.emplace(std::forward<JobParametersKeyT>(key), std::forward<JobParametersValueT>(value)); return *this;
251 }
253
255
263 inline int GetMaxWorkerCount() const { return m_maxWorkerCount; }
264 inline bool MaxWorkerCountHasBeenSet() const { return m_maxWorkerCountHasBeenSet; }
265 inline void SetMaxWorkerCount(int value) { m_maxWorkerCountHasBeenSet = true; m_maxWorkerCount = value; }
266 inline JobSearchSummary& WithMaxWorkerCount(int value) { SetMaxWorkerCount(value); return *this;}
268
270
273 inline const Aws::String& GetSourceJobId() const { return m_sourceJobId; }
274 inline bool SourceJobIdHasBeenSet() const { return m_sourceJobIdHasBeenSet; }
275 template<typename SourceJobIdT = Aws::String>
276 void SetSourceJobId(SourceJobIdT&& value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId = std::forward<SourceJobIdT>(value); }
277 template<typename SourceJobIdT = Aws::String>
278 JobSearchSummary& WithSourceJobId(SourceJobIdT&& value) { SetSourceJobId(std::forward<SourceJobIdT>(value)); return *this;}
280 private:
281
282 Aws::String m_jobId;
283 bool m_jobIdHasBeenSet = false;
284
285 Aws::String m_queueId;
286 bool m_queueIdHasBeenSet = false;
287
288 Aws::String m_name;
289 bool m_nameHasBeenSet = false;
290
292 bool m_lifecycleStatusHasBeenSet = false;
293
294 Aws::String m_lifecycleStatusMessage;
295 bool m_lifecycleStatusMessageHasBeenSet = false;
296
297 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
298 bool m_taskRunStatusHasBeenSet = false;
299
301 bool m_targetTaskRunStatusHasBeenSet = false;
302
303 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
304 bool m_taskRunStatusCountsHasBeenSet = false;
305
306 int m_taskFailureRetryCount{0};
307 bool m_taskFailureRetryCountHasBeenSet = false;
308
309 int m_priority{0};
310 bool m_priorityHasBeenSet = false;
311
312 int m_maxFailedTasksCount{0};
313 bool m_maxFailedTasksCountHasBeenSet = false;
314
315 int m_maxRetriesPerTask{0};
316 bool m_maxRetriesPerTaskHasBeenSet = false;
317
318 Aws::String m_createdBy;
319 bool m_createdByHasBeenSet = false;
320
321 Aws::Utils::DateTime m_createdAt{};
322 bool m_createdAtHasBeenSet = false;
323
324 Aws::Utils::DateTime m_endedAt{};
325 bool m_endedAtHasBeenSet = false;
326
327 Aws::Utils::DateTime m_startedAt{};
328 bool m_startedAtHasBeenSet = false;
329
331 bool m_jobParametersHasBeenSet = false;
332
333 int m_maxWorkerCount{0};
334 bool m_maxWorkerCountHasBeenSet = false;
335
336 Aws::String m_sourceJobId;
337 bool m_sourceJobIdHasBeenSet = false;
338 };
339
340} // namespace Model
341} // namespace deadline
342} // namespace Aws
void SetSourceJobId(SourceJobIdT &&value)
JobSearchSummary & WithPriority(int value)
JobSearchSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
JobSearchSummary & WithJobId(JobIdT &&value)
AWS_DEADLINE_API JobSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetJobId() const
JobSearchSummary & WithCreatedBy(CreatedByT &&value)
JobSearchSummary & WithMaxRetriesPerTask(int value)
JobSearchSummary & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
AWS_DEADLINE_API JobSearchSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQueueId() const
void SetTaskRunStatus(TaskRunStatus value)
JobSearchSummary & WithMaxFailedTasksCount(int value)
JobSearchSummary & WithTaskFailureRetryCount(int value)
JobSearchSummary & WithStartedAt(StartedAtT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
JobSearchSummary & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
void SetTargetTaskRunStatus(JobTargetTaskRunStatus value)
JobSearchSummary & AddJobParameters(JobParametersKeyT &&key, JobParametersValueT &&value)
void SetJobParameters(JobParametersT &&value)
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
JobSearchSummary & AddTaskRunStatusCounts(TaskRunStatus key, int value)
JobSearchSummary & WithQueueId(QueueIdT &&value)
JobSearchSummary & WithName(NameT &&value)
JobSearchSummary & WithMaxWorkerCount(int value)
const Aws::String & GetSourceJobId() const
JobSearchSummary & WithEndedAt(EndedAtT &&value)
JobSearchSummary & WithTargetTaskRunStatus(JobTargetTaskRunStatus value)
JobSearchSummary & WithLifecycleStatus(JobLifecycleStatus value)
JobSearchSummary & WithJobParameters(JobParametersT &&value)
JobSearchSummary & WithTaskRunStatus(TaskRunStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
JobSearchSummary & WithSourceJobId(SourceJobIdT &&value)
const Aws::String & GetLifecycleStatusMessage() const
const Aws::Utils::DateTime & GetStartedAt() const
AWS_DEADLINE_API JobSearchSummary()=default
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
const Aws::String & GetName() const
JobLifecycleStatus GetLifecycleStatus() const
void SetLifecycleStatus(JobLifecycleStatus value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
const Aws::Map< Aws::String, JobParameter > & GetJobParameters() const
JobTargetTaskRunStatus GetTargetTaskRunStatus() const
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