AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
WorkflowStepMetadata.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/WorkflowStepExecutionRollbackStatus.h>
10#include <aws/imagebuilder/model/WorkflowStepExecutionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace imagebuilder {
22namespace Model {
23
31 public:
32 AWS_IMAGEBUILDER_API WorkflowStepMetadata() = default;
33 AWS_IMAGEBUILDER_API WorkflowStepMetadata(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetStepExecutionId() const { return m_stepExecutionId; }
42 inline bool StepExecutionIdHasBeenSet() const { return m_stepExecutionIdHasBeenSet; }
43 template <typename StepExecutionIdT = Aws::String>
44 void SetStepExecutionId(StepExecutionIdT&& value) {
45 m_stepExecutionIdHasBeenSet = true;
46 m_stepExecutionId = std::forward<StepExecutionIdT>(value);
47 }
48 template <typename StepExecutionIdT = Aws::String>
49 WorkflowStepMetadata& WithStepExecutionId(StepExecutionIdT&& value) {
50 SetStepExecutionId(std::forward<StepExecutionIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 WorkflowStepMetadata& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetAction() const { return m_action; }
96 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
97 template <typename ActionT = Aws::String>
98 void SetAction(ActionT&& value) {
99 m_actionHasBeenSet = true;
100 m_action = std::forward<ActionT>(value);
101 }
102 template <typename ActionT = Aws::String>
104 SetAction(std::forward<ActionT>(value));
105 return *this;
106 }
108
110
113 inline WorkflowStepExecutionStatus GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
129 inline WorkflowStepExecutionRollbackStatus GetRollbackStatus() const { return m_rollbackStatus; }
130 inline bool RollbackStatusHasBeenSet() const { return m_rollbackStatusHasBeenSet; }
132 m_rollbackStatusHasBeenSet = true;
133 m_rollbackStatus = value;
134 }
136 SetRollbackStatus(value);
137 return *this;
138 }
140
142
145 inline const Aws::String& GetMessage() const { return m_message; }
146 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
147 template <typename MessageT = Aws::String>
148 void SetMessage(MessageT&& value) {
149 m_messageHasBeenSet = true;
150 m_message = std::forward<MessageT>(value);
151 }
152 template <typename MessageT = Aws::String>
154 SetMessage(std::forward<MessageT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::String& GetInputs() const { return m_inputs; }
165 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
166 template <typename InputsT = Aws::String>
167 void SetInputs(InputsT&& value) {
168 m_inputsHasBeenSet = true;
169 m_inputs = std::forward<InputsT>(value);
170 }
171 template <typename InputsT = Aws::String>
173 SetInputs(std::forward<InputsT>(value));
174 return *this;
175 }
177
179
185 inline const Aws::String& GetOutputs() const { return m_outputs; }
186 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
187 template <typename OutputsT = Aws::String>
188 void SetOutputs(OutputsT&& value) {
189 m_outputsHasBeenSet = true;
190 m_outputs = std::forward<OutputsT>(value);
191 }
192 template <typename OutputsT = Aws::String>
194 SetOutputs(std::forward<OutputsT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetStartTime() const { return m_startTime; }
204 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
205 template <typename StartTimeT = Aws::String>
206 void SetStartTime(StartTimeT&& value) {
207 m_startTimeHasBeenSet = true;
208 m_startTime = std::forward<StartTimeT>(value);
209 }
210 template <typename StartTimeT = Aws::String>
211 WorkflowStepMetadata& WithStartTime(StartTimeT&& value) {
212 SetStartTime(std::forward<StartTimeT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::String& GetEndTime() const { return m_endTime; }
222 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
223 template <typename EndTimeT = Aws::String>
224 void SetEndTime(EndTimeT&& value) {
225 m_endTimeHasBeenSet = true;
226 m_endTime = std::forward<EndTimeT>(value);
227 }
228 template <typename EndTimeT = Aws::String>
230 SetEndTime(std::forward<EndTimeT>(value));
231 return *this;
232 }
234
236
240 inline int GetAttemptNumber() const { return m_attemptNumber; }
241 inline bool AttemptNumberHasBeenSet() const { return m_attemptNumberHasBeenSet; }
242 inline void SetAttemptNumber(int value) {
243 m_attemptNumberHasBeenSet = true;
244 m_attemptNumber = value;
245 }
247 SetAttemptNumber(value);
248 return *this;
249 }
251
253
258 inline int GetMaxAttempts() const { return m_maxAttempts; }
259 inline bool MaxAttemptsHasBeenSet() const { return m_maxAttemptsHasBeenSet; }
260 inline void SetMaxAttempts(int value) {
261 m_maxAttemptsHasBeenSet = true;
262 m_maxAttempts = value;
263 }
265 SetMaxAttempts(value);
266 return *this;
267 }
269 private:
270 Aws::String m_stepExecutionId;
271
272 Aws::String m_name;
273
274 Aws::String m_description;
275
276 Aws::String m_action;
277
279
281
282 Aws::String m_message;
283
284 Aws::String m_inputs;
285
286 Aws::String m_outputs;
287
288 Aws::String m_startTime;
289
290 Aws::String m_endTime;
291
292 int m_attemptNumber{0};
293
294 int m_maxAttempts{0};
295 bool m_stepExecutionIdHasBeenSet = false;
296 bool m_nameHasBeenSet = false;
297 bool m_descriptionHasBeenSet = false;
298 bool m_actionHasBeenSet = false;
299 bool m_statusHasBeenSet = false;
300 bool m_rollbackStatusHasBeenSet = false;
301 bool m_messageHasBeenSet = false;
302 bool m_inputsHasBeenSet = false;
303 bool m_outputsHasBeenSet = false;
304 bool m_startTimeHasBeenSet = false;
305 bool m_endTimeHasBeenSet = false;
306 bool m_attemptNumberHasBeenSet = false;
307 bool m_maxAttemptsHasBeenSet = false;
308};
309
310} // namespace Model
311} // namespace imagebuilder
312} // namespace Aws
WorkflowStepMetadata & WithOutputs(OutputsT &&value)
WorkflowStepMetadata & WithAttemptNumber(int value)
WorkflowStepExecutionStatus GetStatus() const
WorkflowStepMetadata & WithEndTime(EndTimeT &&value)
WorkflowStepMetadata & WithInputs(InputsT &&value)
WorkflowStepMetadata & WithStatus(WorkflowStepExecutionStatus value)
WorkflowStepMetadata & WithName(NameT &&value)
WorkflowStepMetadata & WithStartTime(StartTimeT &&value)
WorkflowStepMetadata & WithMessage(MessageT &&value)
void SetStatus(WorkflowStepExecutionStatus value)
WorkflowStepMetadata & WithRollbackStatus(WorkflowStepExecutionRollbackStatus value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowStepMetadata & WithStepExecutionId(StepExecutionIdT &&value)
WorkflowStepMetadata & WithDescription(DescriptionT &&value)
AWS_IMAGEBUILDER_API WorkflowStepMetadata()=default
AWS_IMAGEBUILDER_API WorkflowStepMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkflowStepExecutionRollbackStatus GetRollbackStatus() const
WorkflowStepMetadata & WithAction(ActionT &&value)
void SetRollbackStatus(WorkflowStepExecutionRollbackStatus value)
WorkflowStepMetadata & WithMaxAttempts(int value)
AWS_IMAGEBUILDER_API WorkflowStepMetadata(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue