AWS SDK for C++

AWS SDK for C++ Version 1.11.903

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
133 inline int GetTotalStepCount() const { return m_totalStepCount; }
134 inline bool TotalStepCountHasBeenSet() const { return m_totalStepCountHasBeenSet; }
135 inline void SetTotalStepCount(int value) {
136 m_totalStepCountHasBeenSet = true;
137 m_totalStepCount = value;
138 }
140 SetTotalStepCount(value);
141 return *this;
142 }
144
146
150 inline int GetTotalStepsSucceeded() const { return m_totalStepsSucceeded; }
151 inline bool TotalStepsSucceededHasBeenSet() const { return m_totalStepsSucceededHasBeenSet; }
152 inline void SetTotalStepsSucceeded(int value) {
153 m_totalStepsSucceededHasBeenSet = true;
154 m_totalStepsSucceeded = value;
155 }
158 return *this;
159 }
161
163
166 inline int GetTotalStepsFailed() const { return m_totalStepsFailed; }
167 inline bool TotalStepsFailedHasBeenSet() const { return m_totalStepsFailedHasBeenSet; }
168 inline void SetTotalStepsFailed(int value) {
169 m_totalStepsFailedHasBeenSet = true;
170 m_totalStepsFailed = value;
171 }
173 SetTotalStepsFailed(value);
174 return *this;
175 }
177
179
183 inline int GetTotalStepsSkipped() const { return m_totalStepsSkipped; }
184 inline bool TotalStepsSkippedHasBeenSet() const { return m_totalStepsSkippedHasBeenSet; }
185 inline void SetTotalStepsSkipped(int value) {
186 m_totalStepsSkippedHasBeenSet = true;
187 m_totalStepsSkipped = value;
188 }
191 return *this;
192 }
194
196
199 inline const Aws::String& GetStartTime() const { return m_startTime; }
200 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
201 template <typename StartTimeT = Aws::String>
202 void SetStartTime(StartTimeT&& value) {
203 m_startTimeHasBeenSet = true;
204 m_startTime = std::forward<StartTimeT>(value);
205 }
206 template <typename StartTimeT = Aws::String>
208 SetStartTime(std::forward<StartTimeT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::String& GetEndTime() const { return m_endTime; }
218 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
219 template <typename EndTimeT = Aws::String>
220 void SetEndTime(EndTimeT&& value) {
221 m_endTimeHasBeenSet = true;
222 m_endTime = std::forward<EndTimeT>(value);
223 }
224 template <typename EndTimeT = Aws::String>
226 SetEndTime(std::forward<EndTimeT>(value));
227 return *this;
228 }
230
232
236 inline const Aws::String& GetParallelGroup() const { return m_parallelGroup; }
237 inline bool ParallelGroupHasBeenSet() const { return m_parallelGroupHasBeenSet; }
238 template <typename ParallelGroupT = Aws::String>
239 void SetParallelGroup(ParallelGroupT&& value) {
240 m_parallelGroupHasBeenSet = true;
241 m_parallelGroup = std::forward<ParallelGroupT>(value);
242 }
243 template <typename ParallelGroupT = Aws::String>
245 SetParallelGroup(std::forward<ParallelGroupT>(value));
246 return *this;
247 }
249
251
257 inline bool GetRetried() const { return m_retried; }
258 inline bool RetriedHasBeenSet() const { return m_retriedHasBeenSet; }
259 inline void SetRetried(bool value) {
260 m_retriedHasBeenSet = true;
261 m_retried = value;
262 }
264 SetRetried(value);
265 return *this;
266 }
268 private:
269 Aws::String m_workflowBuildVersionArn;
270
271 Aws::String m_workflowExecutionId;
272
274
276
277 Aws::String m_message;
278
279 int m_totalStepCount{0};
280
281 int m_totalStepsSucceeded{0};
282
283 int m_totalStepsFailed{0};
284
285 int m_totalStepsSkipped{0};
286
287 Aws::String m_startTime;
288
289 Aws::String m_endTime;
290
291 Aws::String m_parallelGroup;
292
293 bool m_retried{false};
294 bool m_workflowBuildVersionArnHasBeenSet = false;
295 bool m_workflowExecutionIdHasBeenSet = false;
296 bool m_typeHasBeenSet = false;
297 bool m_statusHasBeenSet = false;
298 bool m_messageHasBeenSet = false;
299 bool m_totalStepCountHasBeenSet = false;
300 bool m_totalStepsSucceededHasBeenSet = false;
301 bool m_totalStepsFailedHasBeenSet = false;
302 bool m_totalStepsSkippedHasBeenSet = false;
303 bool m_startTimeHasBeenSet = false;
304 bool m_endTimeHasBeenSet = false;
305 bool m_parallelGroupHasBeenSet = false;
306 bool m_retriedHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace imagebuilder
311} // 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