AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
WorkflowExecutionMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9#include <aws/imagebuilder/model/WorkflowExecutionStatus.h>
10#include <aws/imagebuilder/model/WorkflowType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace imagebuilder {
22namespace Model {
23
31 public:
32 AWS_IMAGEBUILDER_API WorkflowExecutionMetadata() = default;
35 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetWorkflowBuildVersionArn() const { return m_workflowBuildVersionArn; }
43 inline bool WorkflowBuildVersionArnHasBeenSet() const { return m_workflowBuildVersionArnHasBeenSet; }
44 template <typename WorkflowBuildVersionArnT = Aws::String>
45 void SetWorkflowBuildVersionArn(WorkflowBuildVersionArnT&& value) {
46 m_workflowBuildVersionArnHasBeenSet = true;
47 m_workflowBuildVersionArn = std::forward<WorkflowBuildVersionArnT>(value);
48 }
49 template <typename WorkflowBuildVersionArnT = Aws::String>
50 WorkflowExecutionMetadata& WithWorkflowBuildVersionArn(WorkflowBuildVersionArnT&& value) {
51 SetWorkflowBuildVersionArn(std::forward<WorkflowBuildVersionArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetWorkflowExecutionId() const { return m_workflowExecutionId; }
62 inline bool WorkflowExecutionIdHasBeenSet() const { return m_workflowExecutionIdHasBeenSet; }
63 template <typename WorkflowExecutionIdT = Aws::String>
64 void SetWorkflowExecutionId(WorkflowExecutionIdT&& value) {
65 m_workflowExecutionIdHasBeenSet = true;
66 m_workflowExecutionId = std::forward<WorkflowExecutionIdT>(value);
67 }
68 template <typename WorkflowExecutionIdT = Aws::String>
69 WorkflowExecutionMetadata& WithWorkflowExecutionId(WorkflowExecutionIdT&& value) {
70 SetWorkflowExecutionId(std::forward<WorkflowExecutionIdT>(value));
71 return *this;
72 }
74
76
80 inline WorkflowType GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(WorkflowType value) {
83 m_typeHasBeenSet = true;
84 m_type = value;
85 }
87 SetType(value);
88 return *this;
89 }
91
93
96 inline WorkflowExecutionStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetMessage() const { return m_message; }
113 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
114 template <typename MessageT = Aws::String>
115 void SetMessage(MessageT&& value) {
116 m_messageHasBeenSet = true;
117 m_message = std::forward<MessageT>(value);
118 }
119 template <typename MessageT = Aws::String>
121 SetMessage(std::forward<MessageT>(value));
122 return *this;
123 }
125
127
131 inline int GetTotalStepCount() const { return m_totalStepCount; }
132 inline bool TotalStepCountHasBeenSet() const { return m_totalStepCountHasBeenSet; }
133 inline void SetTotalStepCount(int value) {
134 m_totalStepCountHasBeenSet = true;
135 m_totalStepCount = value;
136 }
138 SetTotalStepCount(value);
139 return *this;
140 }
142
144
148 inline int GetTotalStepsSucceeded() const { return m_totalStepsSucceeded; }
149 inline bool TotalStepsSucceededHasBeenSet() const { return m_totalStepsSucceededHasBeenSet; }
150 inline void SetTotalStepsSucceeded(int value) {
151 m_totalStepsSucceededHasBeenSet = true;
152 m_totalStepsSucceeded = value;
153 }
156 return *this;
157 }
159
161
164 inline int GetTotalStepsFailed() const { return m_totalStepsFailed; }
165 inline bool TotalStepsFailedHasBeenSet() const { return m_totalStepsFailedHasBeenSet; }
166 inline void SetTotalStepsFailed(int value) {
167 m_totalStepsFailedHasBeenSet = true;
168 m_totalStepsFailed = value;
169 }
171 SetTotalStepsFailed(value);
172 return *this;
173 }
175
177
181 inline int GetTotalStepsSkipped() const { return m_totalStepsSkipped; }
182 inline bool TotalStepsSkippedHasBeenSet() const { return m_totalStepsSkippedHasBeenSet; }
183 inline void SetTotalStepsSkipped(int value) {
184 m_totalStepsSkippedHasBeenSet = true;
185 m_totalStepsSkipped = value;
186 }
189 return *this;
190 }
192
194
197 inline const Aws::String& GetStartTime() const { return m_startTime; }
198 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
199 template <typename StartTimeT = Aws::String>
200 void SetStartTime(StartTimeT&& value) {
201 m_startTimeHasBeenSet = true;
202 m_startTime = std::forward<StartTimeT>(value);
203 }
204 template <typename StartTimeT = Aws::String>
206 SetStartTime(std::forward<StartTimeT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::String& GetEndTime() const { return m_endTime; }
216 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
217 template <typename EndTimeT = Aws::String>
218 void SetEndTime(EndTimeT&& value) {
219 m_endTimeHasBeenSet = true;
220 m_endTime = std::forward<EndTimeT>(value);
221 }
222 template <typename EndTimeT = Aws::String>
224 SetEndTime(std::forward<EndTimeT>(value));
225 return *this;
226 }
228
230
234 inline const Aws::String& GetParallelGroup() const { return m_parallelGroup; }
235 inline bool ParallelGroupHasBeenSet() const { return m_parallelGroupHasBeenSet; }
236 template <typename ParallelGroupT = Aws::String>
237 void SetParallelGroup(ParallelGroupT&& value) {
238 m_parallelGroupHasBeenSet = true;
239 m_parallelGroup = std::forward<ParallelGroupT>(value);
240 }
241 template <typename ParallelGroupT = Aws::String>
243 SetParallelGroup(std::forward<ParallelGroupT>(value));
244 return *this;
245 }
247
249
252 inline bool GetRetried() const { return m_retried; }
253 inline bool RetriedHasBeenSet() const { return m_retriedHasBeenSet; }
254 inline void SetRetried(bool value) {
255 m_retriedHasBeenSet = true;
256 m_retried = value;
257 }
259 SetRetried(value);
260 return *this;
261 }
263 private:
264 Aws::String m_workflowBuildVersionArn;
265
266 Aws::String m_workflowExecutionId;
267
269
271
272 Aws::String m_message;
273
274 int m_totalStepCount{0};
275
276 int m_totalStepsSucceeded{0};
277
278 int m_totalStepsFailed{0};
279
280 int m_totalStepsSkipped{0};
281
282 Aws::String m_startTime;
283
284 Aws::String m_endTime;
285
286 Aws::String m_parallelGroup;
287
288 bool m_retried{false};
289 bool m_workflowBuildVersionArnHasBeenSet = false;
290 bool m_workflowExecutionIdHasBeenSet = false;
291 bool m_typeHasBeenSet = false;
292 bool m_statusHasBeenSet = false;
293 bool m_messageHasBeenSet = false;
294 bool m_totalStepCountHasBeenSet = false;
295 bool m_totalStepsSucceededHasBeenSet = false;
296 bool m_totalStepsFailedHasBeenSet = false;
297 bool m_totalStepsSkippedHasBeenSet = false;
298 bool m_startTimeHasBeenSet = false;
299 bool m_endTimeHasBeenSet = false;
300 bool m_parallelGroupHasBeenSet = false;
301 bool m_retriedHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace imagebuilder
306} // namespace Aws
WorkflowExecutionMetadata & WithParallelGroup(ParallelGroupT &&value)
WorkflowExecutionMetadata & WithTotalStepsSucceeded(int value)
WorkflowExecutionMetadata & WithType(WorkflowType value)
AWS_IMAGEBUILDER_API WorkflowExecutionMetadata(Aws::Utils::Json::JsonView jsonValue)
WorkflowExecutionMetadata & WithTotalStepsFailed(int value)
WorkflowExecutionMetadata & WithWorkflowBuildVersionArn(WorkflowBuildVersionArnT &&value)
void SetWorkflowBuildVersionArn(WorkflowBuildVersionArnT &&value)
WorkflowExecutionMetadata & WithEndTime(EndTimeT &&value)
WorkflowExecutionMetadata & WithStatus(WorkflowExecutionStatus value)
WorkflowExecutionMetadata & WithTotalStepsSkipped(int value)
WorkflowExecutionMetadata & WithStartTime(StartTimeT &&value)
WorkflowExecutionMetadata & WithWorkflowExecutionId(WorkflowExecutionIdT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowExecutionMetadata & WithMessage(MessageT &&value)
WorkflowExecutionMetadata & WithTotalStepCount(int value)
AWS_IMAGEBUILDER_API WorkflowExecutionMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API WorkflowExecutionMetadata()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue