AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
124 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
125 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
126 inline void SetTaskRunStatus(TaskRunStatus value) {
127 m_taskRunStatusHasBeenSet = true;
128 m_taskRunStatus = value;
129 }
131 SetTaskRunStatus(value);
132 return *this;
133 }
135
137
140 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
141 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
142 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
143 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
144 m_taskRunStatusCountsHasBeenSet = true;
145 m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value);
146 }
147 template <typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
148 StepSummary& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) {
149 SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value));
150 return *this;
151 }
153 m_taskRunStatusCountsHasBeenSet = true;
154 m_taskRunStatusCounts.emplace(key, value);
155 return *this;
156 }
158
160
163 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
164 inline bool TaskFailureRetryCountHasBeenSet() const { return m_taskFailureRetryCountHasBeenSet; }
165 inline void SetTaskFailureRetryCount(int value) {
166 m_taskFailureRetryCountHasBeenSet = true;
167 m_taskFailureRetryCount = value;
168 }
171 return *this;
172 }
174
176
179 inline StepTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
180 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
182 m_targetTaskRunStatusHasBeenSet = true;
183 m_targetTaskRunStatus = value;
184 }
187 return *this;
188 }
190
192
195 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
196 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
197 template <typename CreatedAtT = Aws::Utils::DateTime>
198 void SetCreatedAt(CreatedAtT&& value) {
199 m_createdAtHasBeenSet = true;
200 m_createdAt = std::forward<CreatedAtT>(value);
201 }
202 template <typename CreatedAtT = Aws::Utils::DateTime>
203 StepSummary& WithCreatedAt(CreatedAtT&& value) {
204 SetCreatedAt(std::forward<CreatedAtT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
214 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
215 template <typename CreatedByT = Aws::String>
216 void SetCreatedBy(CreatedByT&& value) {
217 m_createdByHasBeenSet = true;
218 m_createdBy = std::forward<CreatedByT>(value);
219 }
220 template <typename CreatedByT = Aws::String>
221 StepSummary& WithCreatedBy(CreatedByT&& value) {
222 SetCreatedBy(std::forward<CreatedByT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
232 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
233 template <typename UpdatedAtT = Aws::Utils::DateTime>
234 void SetUpdatedAt(UpdatedAtT&& value) {
235 m_updatedAtHasBeenSet = true;
236 m_updatedAt = std::forward<UpdatedAtT>(value);
237 }
238 template <typename UpdatedAtT = Aws::Utils::DateTime>
239 StepSummary& WithUpdatedAt(UpdatedAtT&& value) {
240 SetUpdatedAt(std::forward<UpdatedAtT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
250 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
251 template <typename UpdatedByT = Aws::String>
252 void SetUpdatedBy(UpdatedByT&& value) {
253 m_updatedByHasBeenSet = true;
254 m_updatedBy = std::forward<UpdatedByT>(value);
255 }
256 template <typename UpdatedByT = Aws::String>
257 StepSummary& WithUpdatedBy(UpdatedByT&& value) {
258 SetUpdatedBy(std::forward<UpdatedByT>(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 StepSummary& 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 StepSummary& WithEndedAt(EndedAtT&& value) {
294 SetEndedAt(std::forward<EndedAtT>(value));
295 return *this;
296 }
298
300
303 inline const DependencyCounts& GetDependencyCounts() const { return m_dependencyCounts; }
304 inline bool DependencyCountsHasBeenSet() const { return m_dependencyCountsHasBeenSet; }
305 template <typename DependencyCountsT = DependencyCounts>
306 void SetDependencyCounts(DependencyCountsT&& value) {
307 m_dependencyCountsHasBeenSet = true;
308 m_dependencyCounts = std::forward<DependencyCountsT>(value);
309 }
310 template <typename DependencyCountsT = DependencyCounts>
311 StepSummary& WithDependencyCounts(DependencyCountsT&& value) {
312 SetDependencyCounts(std::forward<DependencyCountsT>(value));
313 return *this;
314 }
316 private:
317 Aws::String m_stepId;
318
319 Aws::String m_name;
320
322
323 Aws::String m_lifecycleStatusMessage;
324
325 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
326
327 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
328
329 int m_taskFailureRetryCount{0};
330
332
333 Aws::Utils::DateTime m_createdAt{};
334
335 Aws::String m_createdBy;
336
337 Aws::Utils::DateTime m_updatedAt{};
338
339 Aws::String m_updatedBy;
340
341 Aws::Utils::DateTime m_startedAt{};
342
343 Aws::Utils::DateTime m_endedAt{};
344
345 DependencyCounts m_dependencyCounts;
346 bool m_stepIdHasBeenSet = false;
347 bool m_nameHasBeenSet = false;
348 bool m_lifecycleStatusHasBeenSet = false;
349 bool m_lifecycleStatusMessageHasBeenSet = false;
350 bool m_taskRunStatusHasBeenSet = false;
351 bool m_taskRunStatusCountsHasBeenSet = false;
352 bool m_taskFailureRetryCountHasBeenSet = false;
353 bool m_targetTaskRunStatusHasBeenSet = false;
354 bool m_createdAtHasBeenSet = false;
355 bool m_createdByHasBeenSet = false;
356 bool m_updatedAtHasBeenSet = false;
357 bool m_updatedByHasBeenSet = false;
358 bool m_startedAtHasBeenSet = false;
359 bool m_endedAtHasBeenSet = false;
360 bool m_dependencyCountsHasBeenSet = false;
361};
362
363} // namespace Model
364} // namespace deadline
365} // 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