AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
StepSearchSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/ParameterSpace.h>
12#include <aws/deadline/model/StepLifecycleStatus.h>
13#include <aws/deadline/model/StepTargetTaskRunStatus.h>
14#include <aws/deadline/model/TaskRunStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace deadline {
26namespace Model {
27
34 public:
35 AWS_DEADLINE_API StepSearchSummary() = default;
36 AWS_DEADLINE_API StepSearchSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetStepId() const { return m_stepId; }
45 inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
46 template <typename StepIdT = Aws::String>
47 void SetStepId(StepIdT&& value) {
48 m_stepIdHasBeenSet = true;
49 m_stepId = std::forward<StepIdT>(value);
50 }
51 template <typename StepIdT = Aws::String>
52 StepSearchSummary& WithStepId(StepIdT&& value) {
53 SetStepId(std::forward<StepIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetJobId() const { return m_jobId; }
63 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
64 template <typename JobIdT = Aws::String>
65 void SetJobId(JobIdT&& value) {
66 m_jobIdHasBeenSet = true;
67 m_jobId = std::forward<JobIdT>(value);
68 }
69 template <typename JobIdT = Aws::String>
70 StepSearchSummary& WithJobId(JobIdT&& value) {
71 SetJobId(std::forward<JobIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetQueueId() const { return m_queueId; }
81 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
82 template <typename QueueIdT = Aws::String>
83 void SetQueueId(QueueIdT&& value) {
84 m_queueIdHasBeenSet = true;
85 m_queueId = std::forward<QueueIdT>(value);
86 }
87 template <typename QueueIdT = Aws::String>
88 StepSearchSummary& WithQueueId(QueueIdT&& value) {
89 SetQueueId(std::forward<QueueIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template <typename NameT = Aws::String>
101 void SetName(NameT&& value) {
102 m_nameHasBeenSet = true;
103 m_name = std::forward<NameT>(value);
104 }
105 template <typename NameT = Aws::String>
106 StepSearchSummary& WithName(NameT&& value) {
107 SetName(std::forward<NameT>(value));
108 return *this;
109 }
111
113
116 inline StepLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
117 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
119 m_lifecycleStatusHasBeenSet = true;
120 m_lifecycleStatus = value;
121 }
123 SetLifecycleStatus(value);
124 return *this;
125 }
127
129
132 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
133 inline bool LifecycleStatusMessageHasBeenSet() const { return m_lifecycleStatusMessageHasBeenSet; }
134 template <typename LifecycleStatusMessageT = Aws::String>
135 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
136 m_lifecycleStatusMessageHasBeenSet = true;
137 m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value);
138 }
139 template <typename LifecycleStatusMessageT = Aws::String>
140 StepSearchSummary& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
141 SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value));
142 return *this;
143 }
145
147
160 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
161 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
162 inline void SetTaskRunStatus(TaskRunStatus value) {
163 m_taskRunStatusHasBeenSet = true;
164 m_taskRunStatus = value;
165 }
167 SetTaskRunStatus(value);
168 return *this;
169 }
171
173
176 inline StepTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
177 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
179 m_targetTaskRunStatusHasBeenSet = true;
180 m_targetTaskRunStatus = value;
181 }
184 return *this;
185 }
187
189
192 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
193 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
194 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
195 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
196 m_taskRunStatusCountsHasBeenSet = true;
197 m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value);
198 }
199 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
200 StepSearchSummary& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
201 SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value));
202 return *this;
203 }
205 m_taskRunStatusCountsHasBeenSet = true;
206 m_taskRunStatusCounts.emplace(key, value);
207 return *this;
208 }
210
212
215 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
216 inline bool TaskFailureRetryCountHasBeenSet() const { return m_taskFailureRetryCountHasBeenSet; }
217 inline void SetTaskFailureRetryCount(int value) {
218 m_taskFailureRetryCountHasBeenSet = true;
219 m_taskFailureRetryCount = value;
220 }
223 return *this;
224 }
226
228
231 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
232 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
233 template <typename CreatedAtT = Aws::Utils::DateTime>
234 void SetCreatedAt(CreatedAtT&& value) {
235 m_createdAtHasBeenSet = true;
236 m_createdAt = std::forward<CreatedAtT>(value);
237 }
238 template <typename CreatedAtT = Aws::Utils::DateTime>
239 StepSearchSummary& WithCreatedAt(CreatedAtT&& value) {
240 SetCreatedAt(std::forward<CreatedAtT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
250 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
251 template <typename CreatedByT = Aws::String>
252 void SetCreatedBy(CreatedByT&& value) {
253 m_createdByHasBeenSet = true;
254 m_createdBy = std::forward<CreatedByT>(value);
255 }
256 template <typename CreatedByT = Aws::String>
257 StepSearchSummary& WithCreatedBy(CreatedByT&& value) {
258 SetCreatedBy(std::forward<CreatedByT>(value));
259 return *this;
260 }
262
264
267 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
268 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
269 template <typename StartedAtT = Aws::Utils::DateTime>
270 void SetStartedAt(StartedAtT&& value) {
271 m_startedAtHasBeenSet = true;
272 m_startedAt = std::forward<StartedAtT>(value);
273 }
274 template <typename StartedAtT = Aws::Utils::DateTime>
275 StepSearchSummary& WithStartedAt(StartedAtT&& value) {
276 SetStartedAt(std::forward<StartedAtT>(value));
277 return *this;
278 }
280
282
285 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
286 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
287 template <typename EndedAtT = Aws::Utils::DateTime>
288 void SetEndedAt(EndedAtT&& value) {
289 m_endedAtHasBeenSet = true;
290 m_endedAt = std::forward<EndedAtT>(value);
291 }
292 template <typename EndedAtT = Aws::Utils::DateTime>
293 StepSearchSummary& WithEndedAt(EndedAtT&& value) {
294 SetEndedAt(std::forward<EndedAtT>(value));
295 return *this;
296 }
298
300
303 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
304 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
305 template <typename UpdatedAtT = Aws::Utils::DateTime>
306 void SetUpdatedAt(UpdatedAtT&& value) {
307 m_updatedAtHasBeenSet = true;
308 m_updatedAt = std::forward<UpdatedAtT>(value);
309 }
310 template <typename UpdatedAtT = Aws::Utils::DateTime>
311 StepSearchSummary& WithUpdatedAt(UpdatedAtT&& value) {
312 SetUpdatedAt(std::forward<UpdatedAtT>(value));
313 return *this;
314 }
316
318
321 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
322 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
323 template <typename UpdatedByT = Aws::String>
324 void SetUpdatedBy(UpdatedByT&& value) {
325 m_updatedByHasBeenSet = true;
326 m_updatedBy = std::forward<UpdatedByT>(value);
327 }
328 template <typename UpdatedByT = Aws::String>
329 StepSearchSummary& WithUpdatedBy(UpdatedByT&& value) {
330 SetUpdatedBy(std::forward<UpdatedByT>(value));
331 return *this;
332 }
334
336
339 inline const ParameterSpace& GetParameterSpace() const { return m_parameterSpace; }
340 inline bool ParameterSpaceHasBeenSet() const { return m_parameterSpaceHasBeenSet; }
341 template <typename ParameterSpaceT = ParameterSpace>
342 void SetParameterSpace(ParameterSpaceT&& value) {
343 m_parameterSpaceHasBeenSet = true;
344 m_parameterSpace = std::forward<ParameterSpaceT>(value);
345 }
346 template <typename ParameterSpaceT = ParameterSpace>
347 StepSearchSummary& WithParameterSpace(ParameterSpaceT&& value) {
348 SetParameterSpace(std::forward<ParameterSpaceT>(value));
349 return *this;
350 }
352 private:
353 Aws::String m_stepId;
354
355 Aws::String m_jobId;
356
357 Aws::String m_queueId;
358
359 Aws::String m_name;
360
362
363 Aws::String m_lifecycleStatusMessage;
364
365 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
366
368
369 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
370
371 int m_taskFailureRetryCount{0};
372
373 Aws::Utils::DateTime m_createdAt{};
374
375 Aws::String m_createdBy;
376
377 Aws::Utils::DateTime m_startedAt{};
378
379 Aws::Utils::DateTime m_endedAt{};
380
381 Aws::Utils::DateTime m_updatedAt{};
382
383 Aws::String m_updatedBy;
384
385 ParameterSpace m_parameterSpace;
386 bool m_stepIdHasBeenSet = false;
387 bool m_jobIdHasBeenSet = false;
388 bool m_queueIdHasBeenSet = false;
389 bool m_nameHasBeenSet = false;
390 bool m_lifecycleStatusHasBeenSet = false;
391 bool m_lifecycleStatusMessageHasBeenSet = false;
392 bool m_taskRunStatusHasBeenSet = false;
393 bool m_targetTaskRunStatusHasBeenSet = false;
394 bool m_taskRunStatusCountsHasBeenSet = false;
395 bool m_taskFailureRetryCountHasBeenSet = false;
396 bool m_createdAtHasBeenSet = false;
397 bool m_createdByHasBeenSet = false;
398 bool m_startedAtHasBeenSet = false;
399 bool m_endedAtHasBeenSet = false;
400 bool m_updatedAtHasBeenSet = false;
401 bool m_updatedByHasBeenSet = false;
402 bool m_parameterSpaceHasBeenSet = false;
403};
404
405} // namespace Model
406} // namespace deadline
407} // namespace Aws
StepSearchSummary & WithUpdatedBy(UpdatedByT &&value)
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
StepSearchSummary & WithCreatedAt(CreatedAtT &&value)
StepSearchSummary & WithTaskFailureRetryCount(int value)
const Aws::String & GetStepId() const
StepSearchSummary & WithStartedAt(StartedAtT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
StepSearchSummary & WithTaskRunStatus(TaskRunStatus value)
StepSearchSummary & WithParameterSpace(ParameterSpaceT &&value)
StepTargetTaskRunStatus GetTargetTaskRunStatus() const
const Aws::String & GetUpdatedBy() const
StepSearchSummary & WithStepId(StepIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetQueueId() const
StepSearchSummary & AddTaskRunStatusCounts(TaskRunStatus key, int value)
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
StepLifecycleStatus GetLifecycleStatus() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_DEADLINE_API StepSearchSummary(Aws::Utils::Json::JsonView jsonValue)
StepSearchSummary & WithEndedAt(EndedAtT &&value)
StepSearchSummary & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
StepSearchSummary & WithName(NameT &&value)
const Aws::String & GetCreatedBy() const
StepSearchSummary & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
StepSearchSummary & WithJobId(JobIdT &&value)
void SetTargetTaskRunStatus(StepTargetTaskRunStatus value)
StepSearchSummary & WithCreatedBy(CreatedByT &&value)
StepSearchSummary & WithQueueId(QueueIdT &&value)
const ParameterSpace & GetParameterSpace() const
StepSearchSummary & WithTargetTaskRunStatus(StepTargetTaskRunStatus value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
StepSearchSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_DEADLINE_API StepSearchSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLifecycleStatus(StepLifecycleStatus value)
StepSearchSummary & WithLifecycleStatus(StepLifecycleStatus value)
const Aws::String & GetLifecycleStatusMessage() const
void SetParameterSpace(ParameterSpaceT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::Utils::DateTime & GetStartedAt() const
AWS_DEADLINE_API StepSearchSummary()=default
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