AWS SDK for C++

AWS SDK for C++ Version 1.11.785

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
125 inline WorkflowExecutionStatus GetStatus() const { return m_status; }
127 m_statusHasBeenSet = true;
128 m_status = value;
129 }
131 SetStatus(value);
132 return *this;
133 }
135
137
141 inline const Aws::String& GetMessage() const { return m_message; }
142 template <typename MessageT = Aws::String>
143 void SetMessage(MessageT&& value) {
144 m_messageHasBeenSet = true;
145 m_message = std::forward<MessageT>(value);
146 }
147 template <typename MessageT = Aws::String>
149 SetMessage(std::forward<MessageT>(value));
150 return *this;
151 }
153
155
160 inline int GetTotalStepCount() const { return m_totalStepCount; }
161 inline void SetTotalStepCount(int value) {
162 m_totalStepCountHasBeenSet = true;
163 m_totalStepCount = value;
164 }
166 SetTotalStepCount(value);
167 return *this;
168 }
170
172
176 inline int GetTotalStepsSucceeded() const { return m_totalStepsSucceeded; }
177 inline void SetTotalStepsSucceeded(int value) {
178 m_totalStepsSucceededHasBeenSet = true;
179 m_totalStepsSucceeded = value;
180 }
183 return *this;
184 }
186
188
192 inline int GetTotalStepsFailed() const { return m_totalStepsFailed; }
193 inline void SetTotalStepsFailed(int value) {
194 m_totalStepsFailedHasBeenSet = true;
195 m_totalStepsFailed = value;
196 }
198 SetTotalStepsFailed(value);
199 return *this;
200 }
202
204
208 inline int GetTotalStepsSkipped() const { return m_totalStepsSkipped; }
209 inline void SetTotalStepsSkipped(int value) {
210 m_totalStepsSkippedHasBeenSet = true;
211 m_totalStepsSkipped = value;
212 }
215 return *this;
216 }
218
220
224 inline const Aws::String& GetStartTime() const { return m_startTime; }
225 template <typename StartTimeT = Aws::String>
226 void SetStartTime(StartTimeT&& value) {
227 m_startTimeHasBeenSet = true;
228 m_startTime = std::forward<StartTimeT>(value);
229 }
230 template <typename StartTimeT = Aws::String>
232 SetStartTime(std::forward<StartTimeT>(value));
233 return *this;
234 }
236
238
242 inline const Aws::String& GetEndTime() const { return m_endTime; }
243 template <typename EndTimeT = Aws::String>
244 void SetEndTime(EndTimeT&& value) {
245 m_endTimeHasBeenSet = true;
246 m_endTime = std::forward<EndTimeT>(value);
247 }
248 template <typename EndTimeT = Aws::String>
250 SetEndTime(std::forward<EndTimeT>(value));
251 return *this;
252 }
254
256
260 inline const Aws::String& GetParallelGroup() const { return m_parallelGroup; }
261 template <typename ParallelGroupT = Aws::String>
262 void SetParallelGroup(ParallelGroupT&& value) {
263 m_parallelGroupHasBeenSet = true;
264 m_parallelGroup = std::forward<ParallelGroupT>(value);
265 }
266 template <typename ParallelGroupT = Aws::String>
268 SetParallelGroup(std::forward<ParallelGroupT>(value));
269 return *this;
270 }
272 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
273
274 private:
275 Aws::String m_requestId;
276
277 Aws::String m_workflowBuildVersionArn;
278
279 Aws::String m_workflowExecutionId;
280
281 Aws::String m_imageBuildVersionArn;
282
284
286
287 Aws::String m_message;
288
289 int m_totalStepCount{0};
290
291 int m_totalStepsSucceeded{0};
292
293 int m_totalStepsFailed{0};
294
295 int m_totalStepsSkipped{0};
296
297 Aws::String m_startTime;
298
299 Aws::String m_endTime;
300
301 Aws::String m_parallelGroup;
302 Aws::Http::HttpResponseCode m_HttpResponseCode;
303 bool m_requestIdHasBeenSet = false;
304 bool m_workflowBuildVersionArnHasBeenSet = false;
305 bool m_workflowExecutionIdHasBeenSet = false;
306 bool m_imageBuildVersionArnHasBeenSet = false;
307 bool m_typeHasBeenSet = false;
308 bool m_statusHasBeenSet = false;
309 bool m_messageHasBeenSet = false;
310 bool m_totalStepCountHasBeenSet = false;
311 bool m_totalStepsSucceededHasBeenSet = false;
312 bool m_totalStepsFailedHasBeenSet = false;
313 bool m_totalStepsSkippedHasBeenSet = false;
314 bool m_startTimeHasBeenSet = false;
315 bool m_endTimeHasBeenSet = false;
316 bool m_parallelGroupHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace imagebuilder
321} // 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