AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
WorkflowRun.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/StartingEventBatchCondition.h>
12#include <aws/glue/model/WorkflowGraph.h>
13#include <aws/glue/model/WorkflowRunStatistics.h>
14#include <aws/glue/model/WorkflowRunStatus.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Glue {
26namespace Model {
27
35 public:
36 AWS_GLUE_API WorkflowRun() = default;
37 AWS_GLUE_API WorkflowRun(Aws::Utils::Json::JsonView jsonValue);
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 WorkflowRun& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetWorkflowRunId() const { return m_workflowRunId; }
64 inline bool WorkflowRunIdHasBeenSet() const { return m_workflowRunIdHasBeenSet; }
65 template <typename WorkflowRunIdT = Aws::String>
66 void SetWorkflowRunId(WorkflowRunIdT&& value) {
67 m_workflowRunIdHasBeenSet = true;
68 m_workflowRunId = std::forward<WorkflowRunIdT>(value);
69 }
70 template <typename WorkflowRunIdT = Aws::String>
71 WorkflowRun& WithWorkflowRunId(WorkflowRunIdT&& value) {
72 SetWorkflowRunId(std::forward<WorkflowRunIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetPreviousRunId() const { return m_previousRunId; }
82 inline bool PreviousRunIdHasBeenSet() const { return m_previousRunIdHasBeenSet; }
83 template <typename PreviousRunIdT = Aws::String>
84 void SetPreviousRunId(PreviousRunIdT&& value) {
85 m_previousRunIdHasBeenSet = true;
86 m_previousRunId = std::forward<PreviousRunIdT>(value);
87 }
88 template <typename PreviousRunIdT = Aws::String>
89 WorkflowRun& WithPreviousRunId(PreviousRunIdT&& value) {
90 SetPreviousRunId(std::forward<PreviousRunIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Map<Aws::String, Aws::String>& GetWorkflowRunProperties() const { return m_workflowRunProperties; }
100 inline bool WorkflowRunPropertiesHasBeenSet() const { return m_workflowRunPropertiesHasBeenSet; }
101 template <typename WorkflowRunPropertiesT = Aws::Map<Aws::String, Aws::String>>
102 void SetWorkflowRunProperties(WorkflowRunPropertiesT&& value) {
103 m_workflowRunPropertiesHasBeenSet = true;
104 m_workflowRunProperties = std::forward<WorkflowRunPropertiesT>(value);
105 }
106 template <typename WorkflowRunPropertiesT = Aws::Map<Aws::String, Aws::String>>
107 WorkflowRun& WithWorkflowRunProperties(WorkflowRunPropertiesT&& value) {
108 SetWorkflowRunProperties(std::forward<WorkflowRunPropertiesT>(value));
109 return *this;
110 }
111 template <typename WorkflowRunPropertiesKeyT = Aws::String, typename WorkflowRunPropertiesValueT = Aws::String>
112 WorkflowRun& AddWorkflowRunProperties(WorkflowRunPropertiesKeyT&& key, WorkflowRunPropertiesValueT&& value) {
113 m_workflowRunPropertiesHasBeenSet = true;
114 m_workflowRunProperties.emplace(std::forward<WorkflowRunPropertiesKeyT>(key), std::forward<WorkflowRunPropertiesValueT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
124 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
125 template <typename StartedOnT = Aws::Utils::DateTime>
126 void SetStartedOn(StartedOnT&& value) {
127 m_startedOnHasBeenSet = true;
128 m_startedOn = std::forward<StartedOnT>(value);
129 }
130 template <typename StartedOnT = Aws::Utils::DateTime>
131 WorkflowRun& WithStartedOn(StartedOnT&& value) {
132 SetStartedOn(std::forward<StartedOnT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
142 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
143 template <typename CompletedOnT = Aws::Utils::DateTime>
144 void SetCompletedOn(CompletedOnT&& value) {
145 m_completedOnHasBeenSet = true;
146 m_completedOn = std::forward<CompletedOnT>(value);
147 }
148 template <typename CompletedOnT = Aws::Utils::DateTime>
149 WorkflowRun& WithCompletedOn(CompletedOnT&& value) {
150 SetCompletedOn(std::forward<CompletedOnT>(value));
151 return *this;
152 }
154
156
159 inline WorkflowRunStatus GetStatus() const { return m_status; }
160 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
161 inline void SetStatus(WorkflowRunStatus value) {
162 m_statusHasBeenSet = true;
163 m_status = value;
164 }
166 SetStatus(value);
167 return *this;
168 }
170
172
177 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
178 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
179 template <typename ErrorMessageT = Aws::String>
180 void SetErrorMessage(ErrorMessageT&& value) {
181 m_errorMessageHasBeenSet = true;
182 m_errorMessage = std::forward<ErrorMessageT>(value);
183 }
184 template <typename ErrorMessageT = Aws::String>
185 WorkflowRun& WithErrorMessage(ErrorMessageT&& value) {
186 SetErrorMessage(std::forward<ErrorMessageT>(value));
187 return *this;
188 }
190
192
195 inline const WorkflowRunStatistics& GetStatistics() const { return m_statistics; }
196 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
197 template <typename StatisticsT = WorkflowRunStatistics>
198 void SetStatistics(StatisticsT&& value) {
199 m_statisticsHasBeenSet = true;
200 m_statistics = std::forward<StatisticsT>(value);
201 }
202 template <typename StatisticsT = WorkflowRunStatistics>
203 WorkflowRun& WithStatistics(StatisticsT&& value) {
204 SetStatistics(std::forward<StatisticsT>(value));
205 return *this;
206 }
208
210
214 inline const WorkflowGraph& GetGraph() const { return m_graph; }
215 inline bool GraphHasBeenSet() const { return m_graphHasBeenSet; }
216 template <typename GraphT = WorkflowGraph>
217 void SetGraph(GraphT&& value) {
218 m_graphHasBeenSet = true;
219 m_graph = std::forward<GraphT>(value);
220 }
221 template <typename GraphT = WorkflowGraph>
222 WorkflowRun& WithGraph(GraphT&& value) {
223 SetGraph(std::forward<GraphT>(value));
224 return *this;
225 }
227
229
232 inline const StartingEventBatchCondition& GetStartingEventBatchCondition() const { return m_startingEventBatchCondition; }
233 inline bool StartingEventBatchConditionHasBeenSet() const { return m_startingEventBatchConditionHasBeenSet; }
234 template <typename StartingEventBatchConditionT = StartingEventBatchCondition>
235 void SetStartingEventBatchCondition(StartingEventBatchConditionT&& value) {
236 m_startingEventBatchConditionHasBeenSet = true;
237 m_startingEventBatchCondition = std::forward<StartingEventBatchConditionT>(value);
238 }
239 template <typename StartingEventBatchConditionT = StartingEventBatchCondition>
240 WorkflowRun& WithStartingEventBatchCondition(StartingEventBatchConditionT&& value) {
241 SetStartingEventBatchCondition(std::forward<StartingEventBatchConditionT>(value));
242 return *this;
243 }
245 private:
246 Aws::String m_name;
247
248 Aws::String m_workflowRunId;
249
250 Aws::String m_previousRunId;
251
252 Aws::Map<Aws::String, Aws::String> m_workflowRunProperties;
253
254 Aws::Utils::DateTime m_startedOn{};
255
256 Aws::Utils::DateTime m_completedOn{};
257
259
260 Aws::String m_errorMessage;
261
262 WorkflowRunStatistics m_statistics;
263
264 WorkflowGraph m_graph;
265
266 StartingEventBatchCondition m_startingEventBatchCondition;
267 bool m_nameHasBeenSet = false;
268 bool m_workflowRunIdHasBeenSet = false;
269 bool m_previousRunIdHasBeenSet = false;
270 bool m_workflowRunPropertiesHasBeenSet = false;
271 bool m_startedOnHasBeenSet = false;
272 bool m_completedOnHasBeenSet = false;
273 bool m_statusHasBeenSet = false;
274 bool m_errorMessageHasBeenSet = false;
275 bool m_statisticsHasBeenSet = false;
276 bool m_graphHasBeenSet = false;
277 bool m_startingEventBatchConditionHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace Glue
282} // namespace Aws
const Aws::String & GetErrorMessage() const
void SetStartingEventBatchCondition(StartingEventBatchConditionT &&value)
void SetStatistics(StatisticsT &&value)
AWS_GLUE_API WorkflowRun(Aws::Utils::Json::JsonView jsonValue)
WorkflowRun & WithGraph(GraphT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPreviousRunId() const
Definition WorkflowRun.h:81
const Aws::Utils::DateTime & GetStartedOn() const
void SetName(NameT &&value)
Definition WorkflowRun.h:48
WorkflowRun & WithErrorMessage(ErrorMessageT &&value)
WorkflowRun & WithCompletedOn(CompletedOnT &&value)
const Aws::Utils::DateTime & GetCompletedOn() const
WorkflowRun & WithWorkflowRunProperties(WorkflowRunPropertiesT &&value)
void SetGraph(GraphT &&value)
WorkflowRun & WithStartedOn(StartedOnT &&value)
const WorkflowGraph & GetGraph() const
bool StartingEventBatchConditionHasBeenSet() const
WorkflowRun & WithStartingEventBatchCondition(StartingEventBatchConditionT &&value)
WorkflowRun & WithPreviousRunId(PreviousRunIdT &&value)
Definition WorkflowRun.h:89
AWS_GLUE_API WorkflowRun()=default
WorkflowRun & WithWorkflowRunId(WorkflowRunIdT &&value)
Definition WorkflowRun.h:71
const Aws::String & GetName() const
Definition WorkflowRun.h:45
void SetStartedOn(StartedOnT &&value)
void SetPreviousRunId(PreviousRunIdT &&value)
Definition WorkflowRun.h:84
void SetWorkflowRunProperties(WorkflowRunPropertiesT &&value)
AWS_GLUE_API WorkflowRun & operator=(Aws::Utils::Json::JsonView jsonValue)
const WorkflowRunStatistics & GetStatistics() const
WorkflowRun & WithStatus(WorkflowRunStatus value)
WorkflowRun & AddWorkflowRunProperties(WorkflowRunPropertiesKeyT &&key, WorkflowRunPropertiesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetWorkflowRunProperties() const
Definition WorkflowRun.h:99
WorkflowRun & WithName(NameT &&value)
Definition WorkflowRun.h:53
bool PreviousRunIdHasBeenSet() const
Definition WorkflowRun.h:82
void SetErrorMessage(ErrorMessageT &&value)
bool WorkflowRunPropertiesHasBeenSet() const
const Aws::String & GetWorkflowRunId() const
Definition WorkflowRun.h:63
WorkflowRun & WithStatistics(StatisticsT &&value)
const StartingEventBatchCondition & GetStartingEventBatchCondition() const
void SetWorkflowRunId(WorkflowRunIdT &&value)
Definition WorkflowRun.h:66
void SetStatus(WorkflowRunStatus value)
void SetCompletedOn(CompletedOnT &&value)
bool WorkflowRunIdHasBeenSet() const
Definition WorkflowRun.h:64
WorkflowRunStatus GetStatus() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue