AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
163 inline const Aws::String& GetInputs() const { return m_inputs; }
164 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
165 template <typename InputsT = Aws::String>
166 void SetInputs(InputsT&& value) {
167 m_inputsHasBeenSet = true;
168 m_inputs = std::forward<InputsT>(value);
169 }
170 template <typename InputsT = Aws::String>
172 SetInputs(std::forward<InputsT>(value));
173 return *this;
174 }
176
178
182 inline const Aws::String& GetOutputs() const { return m_outputs; }
183 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
184 template <typename OutputsT = Aws::String>
185 void SetOutputs(OutputsT&& value) {
186 m_outputsHasBeenSet = true;
187 m_outputs = std::forward<OutputsT>(value);
188 }
189 template <typename OutputsT = Aws::String>
191 SetOutputs(std::forward<OutputsT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetStartTime() const { return m_startTime; }
201 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
202 template <typename StartTimeT = Aws::String>
203 void SetStartTime(StartTimeT&& value) {
204 m_startTimeHasBeenSet = true;
205 m_startTime = std::forward<StartTimeT>(value);
206 }
207 template <typename StartTimeT = Aws::String>
208 WorkflowStepMetadata& WithStartTime(StartTimeT&& value) {
209 SetStartTime(std::forward<StartTimeT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetEndTime() const { return m_endTime; }
219 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
220 template <typename EndTimeT = Aws::String>
221 void SetEndTime(EndTimeT&& value) {
222 m_endTimeHasBeenSet = true;
223 m_endTime = std::forward<EndTimeT>(value);
224 }
225 template <typename EndTimeT = Aws::String>
227 SetEndTime(std::forward<EndTimeT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_stepExecutionId;
233
234 Aws::String m_name;
235
236 Aws::String m_description;
237
238 Aws::String m_action;
239
241
243
244 Aws::String m_message;
245
246 Aws::String m_inputs;
247
248 Aws::String m_outputs;
249
250 Aws::String m_startTime;
251
252 Aws::String m_endTime;
253 bool m_stepExecutionIdHasBeenSet = false;
254 bool m_nameHasBeenSet = false;
255 bool m_descriptionHasBeenSet = false;
256 bool m_actionHasBeenSet = false;
257 bool m_statusHasBeenSet = false;
258 bool m_rollbackStatusHasBeenSet = false;
259 bool m_messageHasBeenSet = false;
260 bool m_inputsHasBeenSet = false;
261 bool m_outputsHasBeenSet = false;
262 bool m_startTimeHasBeenSet = false;
263 bool m_endTimeHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace imagebuilder
268} // namespace Aws
WorkflowStepMetadata & WithOutputs(OutputsT &&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)
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