AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StepSummary.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/core/utils/memory/stl/AWSMap.h>
12#include <aws/deadline/model/StepTargetTaskRunStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/deadline/model/DependencyCounts.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 StepSummary() = default;
41 AWS_DEADLINE_API StepSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DEADLINE_API StepSummary& operator=(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 StepSummary& WithStepId(StepIdT&& value) { SetStepId(std::forward<StepIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 StepSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline StepLifecycleStatus GetLifecycleStatus() const { return m_lifecycleStatus; }
75 inline bool LifecycleStatusHasBeenSet() const { return m_lifecycleStatusHasBeenSet; }
76 inline void SetLifecycleStatus(StepLifecycleStatus value) { m_lifecycleStatusHasBeenSet = true; m_lifecycleStatus = value; }
79
81
84 inline const Aws::String& GetLifecycleStatusMessage() const { return m_lifecycleStatusMessage; }
85 inline bool LifecycleStatusMessageHasBeenSet() const { return m_lifecycleStatusMessageHasBeenSet; }
86 template<typename LifecycleStatusMessageT = Aws::String>
87 void SetLifecycleStatusMessage(LifecycleStatusMessageT&& value) { m_lifecycleStatusMessageHasBeenSet = true; m_lifecycleStatusMessage = std::forward<LifecycleStatusMessageT>(value); }
88 template<typename LifecycleStatusMessageT = Aws::String>
89 StepSummary& WithLifecycleStatusMessage(LifecycleStatusMessageT&& value) { SetLifecycleStatusMessage(std::forward<LifecycleStatusMessageT>(value)); return *this;}
91
93
106 inline TaskRunStatus GetTaskRunStatus() const { return m_taskRunStatus; }
107 inline bool TaskRunStatusHasBeenSet() const { return m_taskRunStatusHasBeenSet; }
108 inline void SetTaskRunStatus(TaskRunStatus value) { m_taskRunStatusHasBeenSet = true; m_taskRunStatus = value; }
109 inline StepSummary& WithTaskRunStatus(TaskRunStatus value) { SetTaskRunStatus(value); return *this;}
111
113
116 inline const Aws::Map<TaskRunStatus, int>& GetTaskRunStatusCounts() const { return m_taskRunStatusCounts; }
117 inline bool TaskRunStatusCountsHasBeenSet() const { return m_taskRunStatusCountsHasBeenSet; }
118 template<typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
119 void SetTaskRunStatusCounts(TaskRunStatusCountsT&& value) { m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts = std::forward<TaskRunStatusCountsT>(value); }
120 template<typename TaskRunStatusCountsT = Aws::Map<TaskRunStatus, int>>
121 StepSummary& WithTaskRunStatusCounts(TaskRunStatusCountsT&& value) { SetTaskRunStatusCounts(std::forward<TaskRunStatusCountsT>(value)); return *this;}
123 m_taskRunStatusCountsHasBeenSet = true; m_taskRunStatusCounts.emplace(key, value); return *this;
124 }
126
128
131 inline int GetTaskFailureRetryCount() const { return m_taskFailureRetryCount; }
132 inline bool TaskFailureRetryCountHasBeenSet() const { return m_taskFailureRetryCountHasBeenSet; }
133 inline void SetTaskFailureRetryCount(int value) { m_taskFailureRetryCountHasBeenSet = true; m_taskFailureRetryCount = value; }
134 inline StepSummary& WithTaskFailureRetryCount(int value) { SetTaskFailureRetryCount(value); return *this;}
136
138
141 inline StepTargetTaskRunStatus GetTargetTaskRunStatus() const { return m_targetTaskRunStatus; }
142 inline bool TargetTaskRunStatusHasBeenSet() const { return m_targetTaskRunStatusHasBeenSet; }
143 inline void SetTargetTaskRunStatus(StepTargetTaskRunStatus value) { m_targetTaskRunStatusHasBeenSet = true; m_targetTaskRunStatus = value; }
146
148
151 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
152 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
153 template<typename CreatedAtT = Aws::Utils::DateTime>
154 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
155 template<typename CreatedAtT = Aws::Utils::DateTime>
156 StepSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
158
160
163 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
164 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
165 template<typename CreatedByT = Aws::String>
166 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
167 template<typename CreatedByT = Aws::String>
168 StepSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
170
172
175 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
176 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
177 template<typename UpdatedAtT = Aws::Utils::DateTime>
178 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
179 template<typename UpdatedAtT = Aws::Utils::DateTime>
180 StepSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
182
184
187 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
188 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
189 template<typename UpdatedByT = Aws::String>
190 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
191 template<typename UpdatedByT = Aws::String>
192 StepSummary& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(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 StepSummary& 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 StepSummary& WithEndedAt(EndedAtT&& value) { SetEndedAt(std::forward<EndedAtT>(value)); return *this;}
218
220
223 inline const DependencyCounts& GetDependencyCounts() const { return m_dependencyCounts; }
224 inline bool DependencyCountsHasBeenSet() const { return m_dependencyCountsHasBeenSet; }
225 template<typename DependencyCountsT = DependencyCounts>
226 void SetDependencyCounts(DependencyCountsT&& value) { m_dependencyCountsHasBeenSet = true; m_dependencyCounts = std::forward<DependencyCountsT>(value); }
227 template<typename DependencyCountsT = DependencyCounts>
228 StepSummary& WithDependencyCounts(DependencyCountsT&& value) { SetDependencyCounts(std::forward<DependencyCountsT>(value)); return *this;}
230 private:
231
232 Aws::String m_stepId;
233 bool m_stepIdHasBeenSet = false;
234
235 Aws::String m_name;
236 bool m_nameHasBeenSet = false;
237
239 bool m_lifecycleStatusHasBeenSet = false;
240
241 Aws::String m_lifecycleStatusMessage;
242 bool m_lifecycleStatusMessageHasBeenSet = false;
243
244 TaskRunStatus m_taskRunStatus{TaskRunStatus::NOT_SET};
245 bool m_taskRunStatusHasBeenSet = false;
246
247 Aws::Map<TaskRunStatus, int> m_taskRunStatusCounts;
248 bool m_taskRunStatusCountsHasBeenSet = false;
249
250 int m_taskFailureRetryCount{0};
251 bool m_taskFailureRetryCountHasBeenSet = false;
252
254 bool m_targetTaskRunStatusHasBeenSet = false;
255
256 Aws::Utils::DateTime m_createdAt{};
257 bool m_createdAtHasBeenSet = false;
258
259 Aws::String m_createdBy;
260 bool m_createdByHasBeenSet = false;
261
262 Aws::Utils::DateTime m_updatedAt{};
263 bool m_updatedAtHasBeenSet = false;
264
265 Aws::String m_updatedBy;
266 bool m_updatedByHasBeenSet = false;
267
268 Aws::Utils::DateTime m_startedAt{};
269 bool m_startedAtHasBeenSet = false;
270
271 Aws::Utils::DateTime m_endedAt{};
272 bool m_endedAtHasBeenSet = false;
273
274 DependencyCounts m_dependencyCounts;
275 bool m_dependencyCountsHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace deadline
280} // namespace Aws
void SetTaskFailureRetryCount(int value)
void SetLifecycleStatusMessage(LifecycleStatusMessageT &&value)
Definition StepSummary.h:87
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:85
StepSummary & WithTaskFailureRetryCount(int value)
StepSummary & AddTaskRunStatusCounts(TaskRunStatus key, int value)
const Aws::String & GetStepId() const
Definition StepSummary.h:50
StepSummary & WithStepId(StepIdT &&value)
Definition StepSummary.h:55
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:77
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:76
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:84
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::String & GetCreatedBy() const
StepSummary & WithName(NameT &&value)
Definition StepSummary.h:67
StepSummary & WithTargetTaskRunStatus(StepTargetTaskRunStatus value)
StepSummary & WithUpdatedBy(UpdatedByT &&value)
StepLifecycleStatus GetLifecycleStatus() const
Definition StepSummary.h:74
void SetEndedAt(EndedAtT &&value)
TaskRunStatus GetTaskRunStatus() const
void SetStepId(StepIdT &&value)
Definition StepSummary.h:53
void SetTaskRunStatus(TaskRunStatus value)
const Aws::String & GetUpdatedBy() const
StepSummary & WithLifecycleStatusMessage(LifecycleStatusMessageT &&value)
Definition StepSummary.h:89
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