AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkflowExecutionMetadata.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/WorkflowType.h>
10#include <aws/imagebuilder/model/WorkflowExecutionStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace imagebuilder
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IMAGEBUILDER_API WorkflowExecutionMetadata();
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetWorkflowBuildVersionArn() const{ return m_workflowBuildVersionArn; }
49 inline bool WorkflowBuildVersionArnHasBeenSet() const { return m_workflowBuildVersionArnHasBeenSet; }
50 inline void SetWorkflowBuildVersionArn(const Aws::String& value) { m_workflowBuildVersionArnHasBeenSet = true; m_workflowBuildVersionArn = value; }
51 inline void SetWorkflowBuildVersionArn(Aws::String&& value) { m_workflowBuildVersionArnHasBeenSet = true; m_workflowBuildVersionArn = std::move(value); }
52 inline void SetWorkflowBuildVersionArn(const char* value) { m_workflowBuildVersionArnHasBeenSet = true; m_workflowBuildVersionArn.assign(value); }
55 inline WorkflowExecutionMetadata& WithWorkflowBuildVersionArn(const char* value) { SetWorkflowBuildVersionArn(value); return *this;}
57
59
63 inline const Aws::String& GetWorkflowExecutionId() const{ return m_workflowExecutionId; }
64 inline bool WorkflowExecutionIdHasBeenSet() const { return m_workflowExecutionIdHasBeenSet; }
65 inline void SetWorkflowExecutionId(const Aws::String& value) { m_workflowExecutionIdHasBeenSet = true; m_workflowExecutionId = value; }
66 inline void SetWorkflowExecutionId(Aws::String&& value) { m_workflowExecutionIdHasBeenSet = true; m_workflowExecutionId = std::move(value); }
67 inline void SetWorkflowExecutionId(const char* value) { m_workflowExecutionIdHasBeenSet = true; m_workflowExecutionId.assign(value); }
69 inline WorkflowExecutionMetadata& WithWorkflowExecutionId(Aws::String&& value) { SetWorkflowExecutionId(std::move(value)); return *this;}
70 inline WorkflowExecutionMetadata& WithWorkflowExecutionId(const char* value) { SetWorkflowExecutionId(value); return *this;}
72
74
78 inline const WorkflowType& GetType() const{ return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(const WorkflowType& value) { m_typeHasBeenSet = true; m_type = value; }
81 inline void SetType(WorkflowType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
82 inline WorkflowExecutionMetadata& WithType(const WorkflowType& value) { SetType(value); return *this;}
83 inline WorkflowExecutionMetadata& WithType(WorkflowType&& value) { SetType(std::move(value)); return *this;}
85
87
90 inline const WorkflowExecutionStatus& GetStatus() const{ return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(const WorkflowExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
93 inline void SetStatus(WorkflowExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
94 inline WorkflowExecutionMetadata& WithStatus(const WorkflowExecutionStatus& value) { SetStatus(value); return *this;}
95 inline WorkflowExecutionMetadata& WithStatus(WorkflowExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetMessage() const{ return m_message; }
103 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
104 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
105 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
106 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
107 inline WorkflowExecutionMetadata& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
108 inline WorkflowExecutionMetadata& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
109 inline WorkflowExecutionMetadata& WithMessage(const char* value) { SetMessage(value); return *this;}
111
113
117 inline int GetTotalStepCount() const{ return m_totalStepCount; }
118 inline bool TotalStepCountHasBeenSet() const { return m_totalStepCountHasBeenSet; }
119 inline void SetTotalStepCount(int value) { m_totalStepCountHasBeenSet = true; m_totalStepCount = value; }
120 inline WorkflowExecutionMetadata& WithTotalStepCount(int value) { SetTotalStepCount(value); return *this;}
122
124
128 inline int GetTotalStepsSucceeded() const{ return m_totalStepsSucceeded; }
129 inline bool TotalStepsSucceededHasBeenSet() const { return m_totalStepsSucceededHasBeenSet; }
130 inline void SetTotalStepsSucceeded(int value) { m_totalStepsSucceededHasBeenSet = true; m_totalStepsSucceeded = value; }
133
135
138 inline int GetTotalStepsFailed() const{ return m_totalStepsFailed; }
139 inline bool TotalStepsFailedHasBeenSet() const { return m_totalStepsFailedHasBeenSet; }
140 inline void SetTotalStepsFailed(int value) { m_totalStepsFailedHasBeenSet = true; m_totalStepsFailed = value; }
141 inline WorkflowExecutionMetadata& WithTotalStepsFailed(int value) { SetTotalStepsFailed(value); return *this;}
143
145
149 inline int GetTotalStepsSkipped() const{ return m_totalStepsSkipped; }
150 inline bool TotalStepsSkippedHasBeenSet() const { return m_totalStepsSkippedHasBeenSet; }
151 inline void SetTotalStepsSkipped(int value) { m_totalStepsSkippedHasBeenSet = true; m_totalStepsSkipped = value; }
152 inline WorkflowExecutionMetadata& WithTotalStepsSkipped(int value) { SetTotalStepsSkipped(value); return *this;}
154
156
159 inline const Aws::String& GetStartTime() const{ return m_startTime; }
160 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
161 inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
162 inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
163 inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); }
164 inline WorkflowExecutionMetadata& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;}
165 inline WorkflowExecutionMetadata& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;}
166 inline WorkflowExecutionMetadata& WithStartTime(const char* value) { SetStartTime(value); return *this;}
168
170
173 inline const Aws::String& GetEndTime() const{ return m_endTime; }
174 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
175 inline void SetEndTime(const Aws::String& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
176 inline void SetEndTime(Aws::String&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
177 inline void SetEndTime(const char* value) { m_endTimeHasBeenSet = true; m_endTime.assign(value); }
178 inline WorkflowExecutionMetadata& WithEndTime(const Aws::String& value) { SetEndTime(value); return *this;}
179 inline WorkflowExecutionMetadata& WithEndTime(Aws::String&& value) { SetEndTime(std::move(value)); return *this;}
180 inline WorkflowExecutionMetadata& WithEndTime(const char* value) { SetEndTime(value); return *this;}
182
184
188 inline const Aws::String& GetParallelGroup() const{ return m_parallelGroup; }
189 inline bool ParallelGroupHasBeenSet() const { return m_parallelGroupHasBeenSet; }
190 inline void SetParallelGroup(const Aws::String& value) { m_parallelGroupHasBeenSet = true; m_parallelGroup = value; }
191 inline void SetParallelGroup(Aws::String&& value) { m_parallelGroupHasBeenSet = true; m_parallelGroup = std::move(value); }
192 inline void SetParallelGroup(const char* value) { m_parallelGroupHasBeenSet = true; m_parallelGroup.assign(value); }
193 inline WorkflowExecutionMetadata& WithParallelGroup(const Aws::String& value) { SetParallelGroup(value); return *this;}
194 inline WorkflowExecutionMetadata& WithParallelGroup(Aws::String&& value) { SetParallelGroup(std::move(value)); return *this;}
195 inline WorkflowExecutionMetadata& WithParallelGroup(const char* value) { SetParallelGroup(value); return *this;}
197 private:
198
199 Aws::String m_workflowBuildVersionArn;
200 bool m_workflowBuildVersionArnHasBeenSet = false;
201
202 Aws::String m_workflowExecutionId;
203 bool m_workflowExecutionIdHasBeenSet = false;
204
205 WorkflowType m_type;
206 bool m_typeHasBeenSet = false;
207
209 bool m_statusHasBeenSet = false;
210
211 Aws::String m_message;
212 bool m_messageHasBeenSet = false;
213
214 int m_totalStepCount;
215 bool m_totalStepCountHasBeenSet = false;
216
217 int m_totalStepsSucceeded;
218 bool m_totalStepsSucceededHasBeenSet = false;
219
220 int m_totalStepsFailed;
221 bool m_totalStepsFailedHasBeenSet = false;
222
223 int m_totalStepsSkipped;
224 bool m_totalStepsSkippedHasBeenSet = false;
225
226 Aws::String m_startTime;
227 bool m_startTimeHasBeenSet = false;
228
229 Aws::String m_endTime;
230 bool m_endTimeHasBeenSet = false;
231
232 Aws::String m_parallelGroup;
233 bool m_parallelGroupHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace imagebuilder
238} // namespace Aws
WorkflowExecutionMetadata & WithParallelGroup(const char *value)
WorkflowExecutionMetadata & WithStatus(const WorkflowExecutionStatus &value)
WorkflowExecutionMetadata & WithWorkflowBuildVersionArn(const char *value)
WorkflowExecutionMetadata & WithTotalStepsSucceeded(int value)
WorkflowExecutionMetadata & WithWorkflowExecutionId(const Aws::String &value)
WorkflowExecutionMetadata & WithStatus(WorkflowExecutionStatus &&value)
WorkflowExecutionMetadata & WithMessage(Aws::String &&value)
WorkflowExecutionMetadata & WithMessage(const char *value)
WorkflowExecutionMetadata & WithWorkflowExecutionId(const char *value)
WorkflowExecutionMetadata & WithWorkflowExecutionId(Aws::String &&value)
WorkflowExecutionMetadata & WithEndTime(const char *value)
AWS_IMAGEBUILDER_API WorkflowExecutionMetadata(Aws::Utils::Json::JsonView jsonValue)
WorkflowExecutionMetadata & WithTotalStepsFailed(int value)
WorkflowExecutionMetadata & WithStartTime(const Aws::String &value)
WorkflowExecutionMetadata & WithType(WorkflowType &&value)
WorkflowExecutionMetadata & WithEndTime(const Aws::String &value)
WorkflowExecutionMetadata & WithParallelGroup(const Aws::String &value)
WorkflowExecutionMetadata & WithWorkflowBuildVersionArn(Aws::String &&value)
WorkflowExecutionMetadata & WithEndTime(Aws::String &&value)
WorkflowExecutionMetadata & WithParallelGroup(Aws::String &&value)
WorkflowExecutionMetadata & WithTotalStepsSkipped(int value)
WorkflowExecutionMetadata & WithWorkflowBuildVersionArn(const Aws::String &value)
WorkflowExecutionMetadata & WithMessage(const Aws::String &value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const WorkflowExecutionStatus &value)
WorkflowExecutionMetadata & WithTotalStepCount(int value)
WorkflowExecutionMetadata & WithStartTime(const char *value)
WorkflowExecutionMetadata & WithStartTime(Aws::String &&value)
WorkflowExecutionMetadata & WithType(const WorkflowType &value)
AWS_IMAGEBUILDER_API WorkflowExecutionMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue