AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetWorkflowExecutionResult.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 {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace imagebuilder {
24namespace Model {
26 public:
27 AWS_IMAGEBUILDER_API GetWorkflowExecutionResult() = default;
30
32
35 inline const Aws::String& GetRequestId() const { return m_requestId; }
36 template <typename RequestIdT = Aws::String>
37 void SetRequestId(RequestIdT&& value) {
38 m_requestIdHasBeenSet = true;
39 m_requestId = std::forward<RequestIdT>(value);
40 }
41 template <typename RequestIdT = Aws::String>
43 SetRequestId(std::forward<RequestIdT>(value));
44 return *this;
45 }
47
49
54 inline const Aws::String& GetWorkflowBuildVersionArn() const { return m_workflowBuildVersionArn; }
55 template <typename WorkflowBuildVersionArnT = Aws::String>
56 void SetWorkflowBuildVersionArn(WorkflowBuildVersionArnT&& value) {
57 m_workflowBuildVersionArnHasBeenSet = true;
58 m_workflowBuildVersionArn = std::forward<WorkflowBuildVersionArnT>(value);
59 }
60 template <typename WorkflowBuildVersionArnT = Aws::String>
61 GetWorkflowExecutionResult& WithWorkflowBuildVersionArn(WorkflowBuildVersionArnT&& value) {
62 SetWorkflowBuildVersionArn(std::forward<WorkflowBuildVersionArnT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetWorkflowExecutionId() const { return m_workflowExecutionId; }
73 template <typename WorkflowExecutionIdT = Aws::String>
74 void SetWorkflowExecutionId(WorkflowExecutionIdT&& value) {
75 m_workflowExecutionIdHasBeenSet = true;
76 m_workflowExecutionId = std::forward<WorkflowExecutionIdT>(value);
77 }
78 template <typename WorkflowExecutionIdT = Aws::String>
79 GetWorkflowExecutionResult& WithWorkflowExecutionId(WorkflowExecutionIdT&& value) {
80 SetWorkflowExecutionId(std::forward<WorkflowExecutionIdT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetImageBuildVersionArn() const { return m_imageBuildVersionArn; }
91 template <typename ImageBuildVersionArnT = Aws::String>
92 void SetImageBuildVersionArn(ImageBuildVersionArnT&& value) {
93 m_imageBuildVersionArnHasBeenSet = true;
94 m_imageBuildVersionArn = std::forward<ImageBuildVersionArnT>(value);
95 }
96 template <typename ImageBuildVersionArnT = Aws::String>
97 GetWorkflowExecutionResult& WithImageBuildVersionArn(ImageBuildVersionArnT&& value) {
98 SetImageBuildVersionArn(std::forward<ImageBuildVersionArnT>(value));
99 return *this;
100 }
102
104
108 inline WorkflowType GetType() const { return m_type; }
109 inline void SetType(WorkflowType value) {
110 m_typeHasBeenSet = true;
111 m_type = value;
112 }
114 SetType(value);
115 return *this;
116 }
118
120
124 inline WorkflowExecutionStatus GetStatus() const { return m_status; }
126 m_statusHasBeenSet = true;
127 m_status = value;
128 }
130 SetStatus(value);
131 return *this;
132 }
134
136
140 inline const Aws::String& GetMessage() const { return m_message; }
141 template <typename MessageT = Aws::String>
142 void SetMessage(MessageT&& value) {
143 m_messageHasBeenSet = true;
144 m_message = std::forward<MessageT>(value);
145 }
146 template <typename MessageT = Aws::String>
148 SetMessage(std::forward<MessageT>(value));
149 return *this;
150 }
152
154
159 inline int GetTotalStepCount() const { return m_totalStepCount; }
160 inline void SetTotalStepCount(int value) {
161 m_totalStepCountHasBeenSet = true;
162 m_totalStepCount = value;
163 }
165 SetTotalStepCount(value);
166 return *this;
167 }
169
171
175 inline int GetTotalStepsSucceeded() const { return m_totalStepsSucceeded; }
176 inline void SetTotalStepsSucceeded(int value) {
177 m_totalStepsSucceededHasBeenSet = true;
178 m_totalStepsSucceeded = value;
179 }
182 return *this;
183 }
185
187
191 inline int GetTotalStepsFailed() const { return m_totalStepsFailed; }
192 inline void SetTotalStepsFailed(int value) {
193 m_totalStepsFailedHasBeenSet = true;
194 m_totalStepsFailed = value;
195 }
197 SetTotalStepsFailed(value);
198 return *this;
199 }
201
203
207 inline int GetTotalStepsSkipped() const { return m_totalStepsSkipped; }
208 inline void SetTotalStepsSkipped(int value) {
209 m_totalStepsSkippedHasBeenSet = true;
210 m_totalStepsSkipped = value;
211 }
214 return *this;
215 }
217
219
223 inline const Aws::String& GetStartTime() const { return m_startTime; }
224 template <typename StartTimeT = Aws::String>
225 void SetStartTime(StartTimeT&& value) {
226 m_startTimeHasBeenSet = true;
227 m_startTime = std::forward<StartTimeT>(value);
228 }
229 template <typename StartTimeT = Aws::String>
231 SetStartTime(std::forward<StartTimeT>(value));
232 return *this;
233 }
235
237
241 inline const Aws::String& GetEndTime() const { return m_endTime; }
242 template <typename EndTimeT = Aws::String>
243 void SetEndTime(EndTimeT&& value) {
244 m_endTimeHasBeenSet = true;
245 m_endTime = std::forward<EndTimeT>(value);
246 }
247 template <typename EndTimeT = Aws::String>
249 SetEndTime(std::forward<EndTimeT>(value));
250 return *this;
251 }
253
255
259 inline const Aws::String& GetParallelGroup() const { return m_parallelGroup; }
260 template <typename ParallelGroupT = Aws::String>
261 void SetParallelGroup(ParallelGroupT&& value) {
262 m_parallelGroupHasBeenSet = true;
263 m_parallelGroup = std::forward<ParallelGroupT>(value);
264 }
265 template <typename ParallelGroupT = Aws::String>
267 SetParallelGroup(std::forward<ParallelGroupT>(value));
268 return *this;
269 }
271 private:
272 Aws::String m_requestId;
273
274 Aws::String m_workflowBuildVersionArn;
275
276 Aws::String m_workflowExecutionId;
277
278 Aws::String m_imageBuildVersionArn;
279
281
283
284 Aws::String m_message;
285
286 int m_totalStepCount{0};
287
288 int m_totalStepsSucceeded{0};
289
290 int m_totalStepsFailed{0};
291
292 int m_totalStepsSkipped{0};
293
294 Aws::String m_startTime;
295
296 Aws::String m_endTime;
297
298 Aws::String m_parallelGroup;
299 bool m_requestIdHasBeenSet = false;
300 bool m_workflowBuildVersionArnHasBeenSet = false;
301 bool m_workflowExecutionIdHasBeenSet = false;
302 bool m_imageBuildVersionArnHasBeenSet = false;
303 bool m_typeHasBeenSet = false;
304 bool m_statusHasBeenSet = false;
305 bool m_messageHasBeenSet = false;
306 bool m_totalStepCountHasBeenSet = false;
307 bool m_totalStepsSucceededHasBeenSet = false;
308 bool m_totalStepsFailedHasBeenSet = false;
309 bool m_totalStepsSkippedHasBeenSet = false;
310 bool m_startTimeHasBeenSet = false;
311 bool m_endTimeHasBeenSet = false;
312 bool m_parallelGroupHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace imagebuilder
317} // namespace Aws
GetWorkflowExecutionResult & WithMessage(MessageT &&value)
GetWorkflowExecutionResult & WithStatus(WorkflowExecutionStatus value)
AWS_IMAGEBUILDER_API GetWorkflowExecutionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWorkflowExecutionResult & WithImageBuildVersionArn(ImageBuildVersionArnT &&value)
GetWorkflowExecutionResult & WithRequestId(RequestIdT &&value)
GetWorkflowExecutionResult & WithParallelGroup(ParallelGroupT &&value)
GetWorkflowExecutionResult & WithWorkflowExecutionId(WorkflowExecutionIdT &&value)
GetWorkflowExecutionResult & WithType(WorkflowType value)
GetWorkflowExecutionResult & WithWorkflowBuildVersionArn(WorkflowBuildVersionArnT &&value)
GetWorkflowExecutionResult & WithTotalStepsSkipped(int value)
GetWorkflowExecutionResult & WithTotalStepsFailed(int value)
AWS_IMAGEBUILDER_API GetWorkflowExecutionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWorkflowExecutionResult & WithEndTime(EndTimeT &&value)
GetWorkflowExecutionResult & WithStartTime(StartTimeT &&value)
void SetWorkflowBuildVersionArn(WorkflowBuildVersionArnT &&value)
GetWorkflowExecutionResult & WithTotalStepsSucceeded(int value)
AWS_IMAGEBUILDER_API GetWorkflowExecutionResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue