AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StepSearchSummary.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/StepLifecycleStatus.h>
10#include <aws/deadline/model/TaskRunStatus.h>
11#include <aws/deadline/model/StepTargetTaskRunStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/deadline/model/ParameterSpace.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 StepSearchSummary() = default;
41 AWS_DEADLINE_API StepSearchSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetStepId() const { return m_stepId; }
51 inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
52 template<typename StepIdT = Aws::String>
53 void SetStepId(StepIdT&& value) { m_stepIdHasBeenSet = true; m_stepId = std::forward<StepIdT>(value); }
54 template<typename StepIdT = Aws::String>
55 StepSearchSummary& WithStepId(StepIdT&& value) { SetStepId(std::forward<StepIdT>(value)); return *this;}
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) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
66 template<typename JobIdT = Aws::String>
67 StepSearchSummary& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetQueueId() const { return m_queueId; }
75 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
76 template<typename QueueIdT = Aws::String>
77 void SetQueueId(QueueIdT&& value) { m_queueIdHasBeenSet = true; m_queueId = std::forward<QueueIdT>(value); }
78 template<typename QueueIdT = Aws::String>
79 StepSearchSummary& WithQueueId(QueueIdT&& value) { SetQueueId(std::forward<QueueIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetName() const { return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 template<typename NameT = Aws::String>
89 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
90 template<typename NameT = Aws::String>
91 StepSearchSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
93
95
98 inline StepLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
99 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
100 inline void SetLifecycleStatus(StepLifecycleStatus value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = value; }
103
105
108 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
109 inline bool LifecycleStatusMessageHasBeenSet() const { return m_lifecycleStatusMessageHasBeenSet; }
110 template<typename LifecycleStatusMessageT = Aws::String>
111 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) { m_lifecycleStatusMessageHasBeenSet = true; m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value); }
112 template<typename LifecycleStatusMessageT = Aws::String>
113 StepSearchSummary& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) { SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value)); return *this;}
115
117
130 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
131 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
132 inline void SetTaskRunStatus(TaskRunStatus value) { m_taskRunStatusHasBeenSet = true; m_taskRunStatus = value; }
135
137
140 inline StepTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
141 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
142 inline void SetTargetTaskRunStatus(StepTargetTaskRunStatus value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = value; }
145
147
150 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
151 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
152 template<typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
153 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) { m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value); }
154 template<typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
155 StepSearchSummary& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) { SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value)); return *this;}
157 m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts.emplace(key, value); return *this;
158 }
160
162
165 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
166 inline bool TaskFailureRetryCountHasBeenSet() const { return m_taskFailureRetryCountHasBeenSet; }
167 inline void SetTaskFailureRetryCount(int value) { m_taskFailureRetryCountHasBeenSet = true; m_taskFailureRetryCount = value; }
168 inline StepSearchSummary& WithTaskFailureRetryCount(int value) { SetTaskFailureRetryCount(value); return *this;}
170
172
175 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
176 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
177 template<typename CreatedAtT = Aws::Utils::DateTime>
178 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
179 template<typename CreatedAtT = Aws::Utils::DateTime>
180 StepSearchSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
182
184
187 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
188 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
189 template<typename CreatedByT = Aws::String>
190 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
191 template<typename CreatedByT = Aws::String>
192 StepSearchSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
194
196
199 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
200 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
201 template<typename StartedAtT = Aws::Utils::DateTime>
202 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
203 template<typename StartedAtT = Aws::Utils::DateTime>
204 StepSearchSummary& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
206
208
211 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
212 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
213 template<typename EndedAtT = Aws::Utils::DateTime>
214 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::forward<EndedAtT>(value); }
215 template<typename EndedAtT = Aws::Utils::DateTime>
216 StepSearchSummary& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
218
220
223 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
224 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
225 template<typename UpdatedAtT = Aws::Utils::DateTime>
226 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
227 template<typename UpdatedAtT = Aws::Utils::DateTime>
228 StepSearchSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
230
232
235 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
236 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
237 template<typename UpdatedByT = Aws::String>
238 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
239 template<typename UpdatedByT = Aws::String>
240 StepSearchSummary& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
242
244
247 inline const ParameterSpace& GetParameterSpace() const { return m_parameterSpace; }
248 inline bool ParameterSpaceHasBeenSet() const { return m_parameterSpaceHasBeenSet; }
249 template<typename ParameterSpaceT = ParameterSpace>
250 void SetParameterSpace(ParameterSpaceT&& value) { m_parameterSpaceHasBeenSet = true; m_parameterSpace = std::forward<ParameterSpaceT>(value); }
251 template<typename ParameterSpaceT = ParameterSpace>
252 StepSearchSummary& WithParameterSpace(ParameterSpaceT&& value) { SetParameterSpace(std::forward<ParameterSpaceT>(value)); return *this;}
254 private:
255
256 Aws::String m_stepId;
257 bool m_stepIdHasBeenSet = false;
258
259 Aws::String m_jobId;
260 bool m_jobIdHasBeenSet = false;
261
262 Aws::String m_queueId;
263 bool m_queueIdHasBeenSet = false;
264
265 Aws::String m_name;
266 bool m_nameHasBeenSet = false;
267
269 bool m_lifecycleStatusHasBeenSet = false;
270
271 Aws::String m_lifecycleStatusMessage;
272 bool m_lifecycleStatusMessageHasBeenSet = false;
273
274 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
275 bool m_taskRunStatusHasBeenSet = false;
276
278 bool m_targetTaskRunStatusHasBeenSet = false;
279
280 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
281 bool m_taskRunStatusCountsHasBeenSet = false;
282
283 int m_taskFailureRetryCount{0};
284 bool m_taskFailureRetryCountHasBeenSet = false;
285
286 Aws::Utils::DateTime m_createdAt{};
287 bool m_createdAtHasBeenSet = false;
288
289 Aws::String m_createdBy;
290 bool m_createdByHasBeenSet = false;
291
292 Aws::Utils::DateTime m_startedAt{};
293 bool m_startedAtHasBeenSet = false;
294
295 Aws::Utils::DateTime m_endedAt{};
296 bool m_endedAtHasBeenSet = false;
297
298 Aws::Utils::DateTime m_updatedAt{};
299 bool m_updatedAtHasBeenSet = false;
300
301 Aws::String m_updatedBy;
302 bool m_updatedByHasBeenSet = false;
303
304 ParameterSpace m_parameterSpace;
305 bool m_parameterSpaceHasBeenSet = false;
306 };
307
308} // namespace Model
309} // namespace deadline
310} // 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