AWS SDK for C++

AWS SDK for C++ Version 1.11.910

Loading...
Searching...
No Matches
GetWorkflowExecutionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
10#include <aws/imagebuilder/model/WorkflowExecutionStatus.h>
11#include <aws/imagebuilder/model/WorkflowType.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace imagebuilder {
25namespace Model {
27 public:
28 AWS_IMAGEBUILDER_API GetWorkflowExecutionResult() = default;
31
33
36 inline const Aws::String& GetRequestId() const { return m_requestId; }
37 template <typename RequestIdT = Aws::String>
38 void SetRequestId(RequestIdT&& value) {
39 m_requestIdHasBeenSet = true;
40 m_requestId = std::forward<RequestIdT>(value);
41 }
42 template <typename RequestIdT = Aws::String>
44 SetRequestId(std::forward<RequestIdT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::String& GetWorkflowBuildVersionArn() const { return m_workflowBuildVersionArn; }
56 template <typename WorkflowBuildVersionArnT = Aws::String>
57 void SetWorkflowBuildVersionArn(WorkflowBuildVersionArnT&& value) {
58 m_workflowBuildVersionArnHasBeenSet = true;
59 m_workflowBuildVersionArn = std::forward<WorkflowBuildVersionArnT>(value);
60 }
61 template <typename WorkflowBuildVersionArnT = Aws::String>
62 GetWorkflowExecutionResult& WithWorkflowBuildVersionArn(WorkflowBuildVersionArnT&& value) {
63 SetWorkflowBuildVersionArn(std::forward<WorkflowBuildVersionArnT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::String& GetWorkflowExecutionId() const { return m_workflowExecutionId; }
74 template <typename WorkflowExecutionIdT = Aws::String>
75 void SetWorkflowExecutionId(WorkflowExecutionIdT&& value) {
76 m_workflowExecutionIdHasBeenSet = true;
77 m_workflowExecutionId = std::forward<WorkflowExecutionIdT>(value);
78 }
79 template <typename WorkflowExecutionIdT = Aws::String>
80 GetWorkflowExecutionResult& WithWorkflowExecutionId(WorkflowExecutionIdT&& value) {
81 SetWorkflowExecutionId(std::forward<WorkflowExecutionIdT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetImageBuildVersionArn() const { return m_imageBuildVersionArn; }
92 template <typename ImageBuildVersionArnT = Aws::String>
93 void SetImageBuildVersionArn(ImageBuildVersionArnT&& value) {
94 m_imageBuildVersionArnHasBeenSet = true;
95 m_imageBuildVersionArn = std::forward<ImageBuildVersionArnT>(value);
96 }
97 template <typename ImageBuildVersionArnT = Aws::String>
98 GetWorkflowExecutionResult& WithImageBuildVersionArn(ImageBuildVersionArnT&& value) {
99 SetImageBuildVersionArn(std::forward<ImageBuildVersionArnT>(value));
100 return *this;
101 }
103
105
109 inline WorkflowType GetType() const { return m_type; }
110 inline void SetType(WorkflowType value) {
111 m_typeHasBeenSet = true;
112 m_type = value;
113 }
115 SetType(value);
116 return *this;
117 }
119
121
127 inline WorkflowExecutionStatus GetStatus() const { return m_status; }
129 m_statusHasBeenSet = true;
130 m_status = value;
131 }
133 SetStatus(value);
134 return *this;
135 }
137
139
143 inline const Aws::String& GetMessage() const { return m_message; }
144 template <typename MessageT = Aws::String>
145 void SetMessage(MessageT&& value) {
146 m_messageHasBeenSet = true;
147 m_message = std::forward<MessageT>(value);
148 }
149 template <typename MessageT = Aws::String>
151 SetMessage(std::forward<MessageT>(value));
152 return *this;
153 }
155
157
163 inline int GetTotalStepCount() const { return m_totalStepCount; }
164 inline void SetTotalStepCount(int value) {
165 m_totalStepCountHasBeenSet = true;
166 m_totalStepCount = value;
167 }
169 SetTotalStepCount(value);
170 return *this;
171 }
173
175
179 inline int GetTotalStepsSucceeded() const { return m_totalStepsSucceeded; }
180 inline void SetTotalStepsSucceeded(int value) {
181 m_totalStepsSucceededHasBeenSet = true;
182 m_totalStepsSucceeded = value;
183 }
186 return *this;
187 }
189
191
195 inline int GetTotalStepsFailed() const { return m_totalStepsFailed; }
196 inline void SetTotalStepsFailed(int value) {
197 m_totalStepsFailedHasBeenSet = true;
198 m_totalStepsFailed = value;
199 }
201 SetTotalStepsFailed(value);
202 return *this;
203 }
205
207
211 inline int GetTotalStepsSkipped() const { return m_totalStepsSkipped; }
212 inline void SetTotalStepsSkipped(int value) {
213 m_totalStepsSkippedHasBeenSet = true;
214 m_totalStepsSkipped = value;
215 }
218 return *this;
219 }
221
223
227 inline const Aws::String& GetStartTime() const { return m_startTime; }
228 template <typename StartTimeT = Aws::String>
229 void SetStartTime(StartTimeT&& value) {
230 m_startTimeHasBeenSet = true;
231 m_startTime = std::forward<StartTimeT>(value);
232 }
233 template <typename StartTimeT = Aws::String>
235 SetStartTime(std::forward<StartTimeT>(value));
236 return *this;
237 }
239
241
245 inline const Aws::String& GetEndTime() const { return m_endTime; }
246 template <typename EndTimeT = Aws::String>
247 void SetEndTime(EndTimeT&& value) {
248 m_endTimeHasBeenSet = true;
249 m_endTime = std::forward<EndTimeT>(value);
250 }
251 template <typename EndTimeT = Aws::String>
253 SetEndTime(std::forward<EndTimeT>(value));
254 return *this;
255 }
257
259
263 inline const Aws::String& GetParallelGroup() const { return m_parallelGroup; }
264 template <typename ParallelGroupT = Aws::String>
265 void SetParallelGroup(ParallelGroupT&& value) {
266 m_parallelGroupHasBeenSet = true;
267 m_parallelGroup = std::forward<ParallelGroupT>(value);
268 }
269 template <typename ParallelGroupT = Aws::String>
271 SetParallelGroup(std::forward<ParallelGroupT>(value));
272 return *this;
273 }
275 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
276
277 private:
278 Aws::String m_requestId;
279
280 Aws::String m_workflowBuildVersionArn;
281
282 Aws::String m_workflowExecutionId;
283
284 Aws::String m_imageBuildVersionArn;
285
287
289
290 Aws::String m_message;
291
292 int m_totalStepCount{0};
293
294 int m_totalStepsSucceeded{0};
295
296 int m_totalStepsFailed{0};
297
298 int m_totalStepsSkipped{0};
299
300 Aws::String m_startTime;
301
302 Aws::String m_endTime;
303
304 Aws::String m_parallelGroup;
305 Aws::Http::HttpResponseCode m_HttpResponseCode;
306 bool m_requestIdHasBeenSet = false;
307 bool m_workflowBuildVersionArnHasBeenSet = false;
308 bool m_workflowExecutionIdHasBeenSet = false;
309 bool m_imageBuildVersionArnHasBeenSet = false;
310 bool m_typeHasBeenSet = false;
311 bool m_statusHasBeenSet = false;
312 bool m_messageHasBeenSet = false;
313 bool m_totalStepCountHasBeenSet = false;
314 bool m_totalStepsSucceededHasBeenSet = false;
315 bool m_totalStepsFailedHasBeenSet = false;
316 bool m_totalStepsSkippedHasBeenSet = false;
317 bool m_startTimeHasBeenSet = false;
318 bool m_endTimeHasBeenSet = false;
319 bool m_parallelGroupHasBeenSet = false;
320};
321
322} // namespace Model
323} // namespace imagebuilder
324} // 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