AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
StepSummary.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/DependencyCounts.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 StepSummary() = default;
36 AWS_DEADLINE_API StepSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEADLINE_API StepSummary& operator=(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 StepSummary& WithStepId(StepIdT&& value) {
53 SetStepId(std::forward<StepIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 StepSummary& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline StepLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
81 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
83 m_lifecycleStatusHasBeenSet = true;
84 m_lifecycleStatus = value;
85 }
87 SetLifecycleStatus(value);
88 return *this;
89 }
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) {
100 m_lifecycleStatusMessageHasBeenSet = true;
101 m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value);
102 }
103 template <typename LifecycleStatusMessageT = Aws::String>
104 StepSummary& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) {
105 SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value));
106 return *this;
107 }
109
111
123 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
124 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
125 inline void SetTaskRunStatus(TaskRunStatus value) {
126 m_taskRunStatusHasBeenSet = true;
127 m_taskRunStatus = value;
128 }
130 SetTaskRunStatus(value);
131 return *this;
132 }
134
136
139 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
140 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
141 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
142 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
143 m_taskRunStatusCountsHasBeenSet = true;
144 m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value);
145 }
146 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
147 StepSummary& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
148 SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value));
149 return *this;
150 }
152 m_taskRunStatusCountsHasBeenSet = true;
153 m_taskRunStatusCounts.emplace(key, value);
154 return *this;
155 }
157
159
162 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
163 inline bool TaskFailureRetryCountHasBeenSet() const { return m_taskFailureRetryCountHasBeenSet; }
164 inline void SetTaskFailureRetryCount(int value) {
165 m_taskFailureRetryCountHasBeenSet = true;
166 m_taskFailureRetryCount = value;
167 }
170 return *this;
171 }
173
175
178 inline StepTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
179 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
181 m_targetTaskRunStatusHasBeenSet = true;
182 m_targetTaskRunStatus = value;
183 }
186 return *this;
187 }
189
191
194 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
195 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
196 template <typename CreatedAtT = Aws::Utils::DateTime>
197 void SetCreatedAt(CreatedAtT&& value) {
198 m_createdAtHasBeenSet = true;
199 m_createdAt = std::forward<CreatedAtT>(value);
200 }
201 template <typename CreatedAtT = Aws::Utils::DateTime>
202 StepSummary& WithCreatedAt(CreatedAtT&& value) {
203 SetCreatedAt(std::forward<CreatedAtT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
213 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
214 template <typename CreatedByT = Aws::String>
215 void SetCreatedBy(CreatedByT&& value) {
216 m_createdByHasBeenSet = true;
217 m_createdBy = std::forward<CreatedByT>(value);
218 }
219 template <typename CreatedByT = Aws::String>
220 StepSummary& WithCreatedBy(CreatedByT&& value) {
221 SetCreatedBy(std::forward<CreatedByT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
231 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
232 template <typename UpdatedAtT = Aws::Utils::DateTime>
233 void SetUpdatedAt(UpdatedAtT&& value) {
234 m_updatedAtHasBeenSet = true;
235 m_updatedAt = std::forward<UpdatedAtT>(value);
236 }
237 template <typename UpdatedAtT = Aws::Utils::DateTime>
238 StepSummary& WithUpdatedAt(UpdatedAtT&& value) {
239 SetUpdatedAt(std::forward<UpdatedAtT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
249 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
250 template <typename UpdatedByT = Aws::String>
251 void SetUpdatedBy(UpdatedByT&& value) {
252 m_updatedByHasBeenSet = true;
253 m_updatedBy = std::forward<UpdatedByT>(value);
254 }
255 template <typename UpdatedByT = Aws::String>
256 StepSummary& WithUpdatedBy(UpdatedByT&& value) {
257 SetUpdatedBy(std::forward<UpdatedByT>(value));
258 return *this;
259 }
261
263
266 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
267 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
268 template <typename StartedAtT = Aws::Utils::DateTime>
269 void SetStartedAt(StartedAtT&& value) {
270 m_startedAtHasBeenSet = true;
271 m_startedAt = std::forward<StartedAtT>(value);
272 }
273 template <typename StartedAtT = Aws::Utils::DateTime>
274 StepSummary& WithStartedAt(StartedAtT&& value) {
275 SetStartedAt(std::forward<StartedAtT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
285 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
286 template <typename EndedAtT = Aws::Utils::DateTime>
287 void SetEndedAt(EndedAtT&& value) {
288 m_endedAtHasBeenSet = true;
289 m_endedAt = std::forward<EndedAtT>(value);
290 }
291 template <typename EndedAtT = Aws::Utils::DateTime>
292 StepSummary& WithEndedAt(EndedAtT&& value) {
293 SetEndedAt(std::forward<EndedAtT>(value));
294 return *this;
295 }
297
299
302 inline const DependencyCounts& GetDependencyCounts() const { return m_dependencyCounts; }
303 inline bool DependencyCountsHasBeenSet() const { return m_dependencyCountsHasBeenSet; }
304 template <typename DependencyCountsT = DependencyCounts>
305 void SetDependencyCounts(DependencyCountsT&& value) {
306 m_dependencyCountsHasBeenSet = true;
307 m_dependencyCounts = std::forward<DependencyCountsT>(value);
308 }
309 template <typename DependencyCountsT = DependencyCounts>
310 StepSummary& WithDependencyCounts(DependencyCountsT&& value) {
311 SetDependencyCounts(std::forward<DependencyCountsT>(value));
312 return *this;
313 }
315 private:
316 Aws::String m_stepId;
317
318 Aws::String m_name;
319
321
322 Aws::String m_lifecycleStatusMessage;
323
324 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
325
326 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
327
328 int m_taskFailureRetryCount{0};
329
331
332 Aws::Utils::DateTime m_createdAt{};
333
334 Aws::String m_createdBy;
335
336 Aws::Utils::DateTime m_updatedAt{};
337
338 Aws::String m_updatedBy;
339
340 Aws::Utils::DateTime m_startedAt{};
341
342 Aws::Utils::DateTime m_endedAt{};
343
344 DependencyCounts m_dependencyCounts;
345 bool m_stepIdHasBeenSet = false;
346 bool m_nameHasBeenSet = false;
347 bool m_lifecycleStatusHasBeenSet = false;
348 bool m_lifecycleStatusMessageHasBeenSet = false;
349 bool m_taskRunStatusHasBeenSet = false;
350 bool m_taskRunStatusCountsHasBeenSet = false;
351 bool m_taskFailureRetryCountHasBeenSet = false;
352 bool m_targetTaskRunStatusHasBeenSet = false;
353 bool m_createdAtHasBeenSet = false;
354 bool m_createdByHasBeenSet = false;
355 bool m_updatedAtHasBeenSet = false;
356 bool m_updatedByHasBeenSet = false;
357 bool m_startedAtHasBeenSet = false;
358 bool m_endedAtHasBeenSet = false;
359 bool m_dependencyCountsHasBeenSet = false;
360};
361
362} // namespace Model
363} // namespace deadline
364} // namespace Aws
void SetTaskFailureRetryCount(int value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
Definition StepSummary.h:99
void SetUpdatedAt(UpdatedAtT &&value)
StepSummary & WithCreatedBy(CreatedByT &&value)
StepSummary & WithEndedAt(EndedAtT &&value)
StepSummary & WithTaskRunStatusCounts(TaskRunStatusCountsT &&value)
AWS_DEADLINE_API StepSummary()=default
bool LifecycleStatusMessageHasBeenSet() const
Definition StepSummary.h:97
StepSummary & WithTaskFailureRetryCount(int value)
StepSummary & AddTaskRunStatusCounts(TaskRunStatus key, int value)
const Aws::String & GetStepId() const
Definition StepSummary.h:44
StepSummary & WithStepId(StepIdT &&value)
Definition StepSummary.h:52
StepSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetStartedAt() const
void SetTargetTaskRunStatus(StepTargetTaskRunStatus value)
void SetCreatedBy(CreatedByT &&value)
const DependencyCounts & GetDependencyCounts() const
void SetCreatedAt(CreatedAtT &&value)
AWS_DEADLINE_API StepSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDependencyCounts(DependencyCountsT &&value)
StepTargetTaskRunStatus GetTargetTaskRunStatus() const
void SetTaskRunStatusCounts(TaskRunStatusCountsT &&value)
StepSummary & WithStartedAt(StartedAtT &&value)
StepSummary & WithCreatedAt(CreatedAtT &&value)
void SetUpdatedBy(UpdatedByT &&value)
StepSummary & WithLifecycleStatus(StepLifecycleStatus value)
Definition StepSummary.h:86
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_DEADLINE_API StepSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< TaskRunStatus, int > & GetTaskRunStatusCounts() const
const Aws::String & GetName() const
Definition StepSummary.h:62
void SetLifecycleStatus(StepLifecycleStatus value)
Definition StepSummary.h:82
void SetStartedAt(StartedAtT &&value)
StepSummary & WithDependencyCounts(DependencyCountsT &&value)
StepSummary & WithTaskRunStatus(TaskRunStatus value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetLifecycleStatusMessage() const
Definition StepSummary.h:96
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::String & GetCreatedBy() const
StepSummary & WithName(NameT &&value)
Definition StepSummary.h:70
StepSummary & WithTargetTaskRunStatus(StepTargetTaskRunStatus value)
StepSummary & WithUpdatedBy(UpdatedByT &&value)
StepLifecycleStatus GetLifecycleStatus() const
Definition StepSummary.h:80
void SetEndedAt(EndedAtT &&value)
TaskRunStatus GetTaskRunStatus() const
void SetStepId(StepIdT &&value)
Definition StepSummary.h:47
void SetTaskRunStatus(TaskRunStatus value)
const Aws::String & GetUpdatedBy() const
StepSummary & WithLifecycleStatusMessage(LifecycleStatusMessageT &&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