AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename WorkflowBuildVersionArnT = Aws::String>
51 void SetWorkflowBuildVersionArn(WorkflowBuildVersionArnT&& value) { m_workflowBuildVersionArnHasBeenSet = true; m_workflowBuildVersionArn = std::forward<WorkflowBuildVersionArnT>(value); }
52 template<typename WorkflowBuildVersionArnT = Aws::String>
53 WorkflowExecutionMetadata& WithWorkflowBuildVersionArn(WorkflowBuildVersionArnT&& value) { SetWorkflowBuildVersionArn(std::forward<WorkflowBuildVersionArnT>(value)); return *this;}
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) { m_workflowExecutionIdHasBeenSet = true; m_workflowExecutionId = std::forward<WorkflowExecutionIdT>(value); }
65 template<typename WorkflowExecutionIdT = Aws::String>
66 WorkflowExecutionMetadata& WithWorkflowExecutionId(WorkflowExecutionIdT&& value) { SetWorkflowExecutionId(std::forward<WorkflowExecutionIdT>(value)); return *this;}
68
70
74 inline WorkflowType GetType() const { return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(WorkflowType value) { m_typeHasBeenSet = true; m_type = value; }
77 inline WorkflowExecutionMetadata& WithType(WorkflowType value) { SetType(value); return *this;}
79
81
84 inline WorkflowExecutionStatus GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(WorkflowExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
89
91
94 inline const Aws::String& GetMessage() const { return m_message; }
95 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
96 template<typename MessageT = Aws::String>
97 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
98 template<typename MessageT = Aws::String>
99 WorkflowExecutionMetadata& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
101
103
107 inline int GetTotalStepCount() const { return m_totalStepCount; }
108 inline bool TotalStepCountHasBeenSet() const { return m_totalStepCountHasBeenSet; }
109 inline void SetTotalStepCount(int value) { m_totalStepCountHasBeenSet = true; m_totalStepCount = value; }
110 inline WorkflowExecutionMetadata& WithTotalStepCount(int value) { SetTotalStepCount(value); return *this;}
112
114
118 inline int GetTotalStepsSucceeded() const { return m_totalStepsSucceeded; }
119 inline bool TotalStepsSucceededHasBeenSet() const { return m_totalStepsSucceededHasBeenSet; }
120 inline void SetTotalStepsSucceeded(int value) { m_totalStepsSucceededHasBeenSet = true; m_totalStepsSucceeded = value; }
123
125
128 inline int GetTotalStepsFailed() const { return m_totalStepsFailed; }
129 inline bool TotalStepsFailedHasBeenSet() const { return m_totalStepsFailedHasBeenSet; }
130 inline void SetTotalStepsFailed(int value) { m_totalStepsFailedHasBeenSet = true; m_totalStepsFailed = value; }
131 inline WorkflowExecutionMetadata& WithTotalStepsFailed(int value) { SetTotalStepsFailed(value); return *this;}
133
135
139 inline int GetTotalStepsSkipped() const { return m_totalStepsSkipped; }
140 inline bool TotalStepsSkippedHasBeenSet() const { return m_totalStepsSkippedHasBeenSet; }
141 inline void SetTotalStepsSkipped(int value) { m_totalStepsSkippedHasBeenSet = true; m_totalStepsSkipped = value; }
142 inline WorkflowExecutionMetadata& WithTotalStepsSkipped(int value) { SetTotalStepsSkipped(value); return *this;}
144
146
149 inline const Aws::String& GetStartTime() const { return m_startTime; }
150 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
151 template<typename StartTimeT = Aws::String>
152 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
153 template<typename StartTimeT = Aws::String>
154 WorkflowExecutionMetadata& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
156
158
161 inline const Aws::String& GetEndTime() const { return m_endTime; }
162 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
163 template<typename EndTimeT = Aws::String>
164 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
165 template<typename EndTimeT = Aws::String>
166 WorkflowExecutionMetadata& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
168
170
174 inline const Aws::String& GetParallelGroup() const { return m_parallelGroup; }
175 inline bool ParallelGroupHasBeenSet() const { return m_parallelGroupHasBeenSet; }
176 template<typename ParallelGroupT = Aws::String>
177 void SetParallelGroup(ParallelGroupT&& value) { m_parallelGroupHasBeenSet = true; m_parallelGroup = std::forward<ParallelGroupT>(value); }
178 template<typename ParallelGroupT = Aws::String>
179 WorkflowExecutionMetadata& WithParallelGroup(ParallelGroupT&& value) { SetParallelGroup(std::forward<ParallelGroupT>(value)); return *this;}
181 private:
182
183 Aws::String m_workflowBuildVersionArn;
184 bool m_workflowBuildVersionArnHasBeenSet = false;
185
186 Aws::String m_workflowExecutionId;
187 bool m_workflowExecutionIdHasBeenSet = false;
188
190 bool m_typeHasBeenSet = false;
191
193 bool m_statusHasBeenSet = false;
194
195 Aws::String m_message;
196 bool m_messageHasBeenSet = false;
197
198 int m_totalStepCount{0};
199 bool m_totalStepCountHasBeenSet = false;
200
201 int m_totalStepsSucceeded{0};
202 bool m_totalStepsSucceededHasBeenSet = false;
203
204 int m_totalStepsFailed{0};
205 bool m_totalStepsFailedHasBeenSet = false;
206
207 int m_totalStepsSkipped{0};
208 bool m_totalStepsSkippedHasBeenSet = false;
209
210 Aws::String m_startTime;
211 bool m_startTimeHasBeenSet = false;
212
213 Aws::String m_endTime;
214 bool m_endTimeHasBeenSet = false;
215
216 Aws::String m_parallelGroup;
217 bool m_parallelGroupHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace imagebuilder
222} // 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