AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
WorkflowRun.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/glue/model/WorkflowRunStatus.h>
12#include <aws/glue/model/WorkflowRunStatistics.h>
13#include <aws/glue/model/WorkflowGraph.h>
14#include <aws/glue/model/StartingEventBatchCondition.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Glue
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_GLUE_API WorkflowRun() = default;
42 AWS_GLUE_API WorkflowRun(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 WorkflowRun& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_workflowRunIdHasBeenSet = true; m_workflowRunId = std::forward<WorkflowRunIdT>(value); }
67 template<typename WorkflowRunIdT = Aws::String>
68 WorkflowRun& WithWorkflowRunId(WorkflowRunIdT&& value) { SetWorkflowRunId(std::forward<WorkflowRunIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetPreviousRunId() const { return m_previousRunId; }
76 inline bool PreviousRunIdHasBeenSet() const { return m_previousRunIdHasBeenSet; }
77 template<typename PreviousRunIdT = Aws::String>
78 void SetPreviousRunId(PreviousRunIdT&& value) { m_previousRunIdHasBeenSet = true; m_previousRunId = std::forward<PreviousRunIdT>(value); }
79 template<typename PreviousRunIdT = Aws::String>
80 WorkflowRun& WithPreviousRunId(PreviousRunIdT&& value) { SetPreviousRunId(std::forward<PreviousRunIdT>(value)); return *this;}
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetWorkflowRunProperties() const { return m_workflowRunProperties; }
88 inline bool WorkflowRunPropertiesHasBeenSet() const { return m_workflowRunPropertiesHasBeenSet; }
89 template<typename WorkflowRunPropertiesT = Aws::Map<Aws::String, Aws::String>>
90 void SetWorkflowRunProperties(WorkflowRunPropertiesT&& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties = std::forward<WorkflowRunPropertiesT>(value); }
91 template<typename WorkflowRunPropertiesT = Aws::Map<Aws::String, Aws::String>>
92 WorkflowRun& WithWorkflowRunProperties(WorkflowRunPropertiesT&& value) { SetWorkflowRunProperties(std::forward<WorkflowRunPropertiesT>(value)); return *this;}
93 template<typename WorkflowRunPropertiesKeyT = Aws::String, typename WorkflowRunPropertiesValueT = Aws::String>
94 WorkflowRun& AddWorkflowRunProperties(WorkflowRunPropertiesKeyT&& key, WorkflowRunPropertiesValueT&& value) {
95 m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(std::forward<WorkflowRunPropertiesKeyT>(key), std::forward<WorkflowRunPropertiesValueT>(value)); return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
104 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
105 template<typename StartedOnT = Aws::Utils::DateTime>
106 void SetStartedOn(StartedOnT&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::forward<StartedOnT>(value); }
107 template<typename StartedOnT = Aws::Utils::DateTime>
108 WorkflowRun& WithStartedOn(StartedOnT&& value) { SetStartedOn(std::forward<StartedOnT>(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
116 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
117 template<typename CompletedOnT = Aws::Utils::DateTime>
118 void SetCompletedOn(CompletedOnT&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::forward<CompletedOnT>(value); }
119 template<typename CompletedOnT = Aws::Utils::DateTime>
120 WorkflowRun& WithCompletedOn(CompletedOnT&& value) { SetCompletedOn(std::forward<CompletedOnT>(value)); return *this;}
122
124
127 inline WorkflowRunStatus GetStatus() const { return m_status; }
128 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
129 inline void SetStatus(WorkflowRunStatus value) { m_statusHasBeenSet = true; m_status = value; }
130 inline WorkflowRun& WithStatus(WorkflowRunStatus value) { SetStatus(value); return *this;}
132
134
139 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
140 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
141 template<typename ErrorMessageT = Aws::String>
142 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
143 template<typename ErrorMessageT = Aws::String>
144 WorkflowRun& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
146
148
151 inline const WorkflowRunStatistics& GetStatistics() const { return m_statistics; }
152 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
153 template<typename StatisticsT = WorkflowRunStatistics>
154 void SetStatistics(StatisticsT&& value) { m_statisticsHasBeenSet = true; m_statistics = std::forward<StatisticsT>(value); }
155 template<typename StatisticsT = WorkflowRunStatistics>
156 WorkflowRun& WithStatistics(StatisticsT&& value) { SetStatistics(std::forward<StatisticsT>(value)); return *this;}
158
160
164 inline const WorkflowGraph& GetGraph() const { return m_graph; }
165 inline bool GraphHasBeenSet() const { return m_graphHasBeenSet; }
166 template<typename GraphT = WorkflowGraph>
167 void SetGraph(GraphT&& value) { m_graphHasBeenSet = true; m_graph = std::forward<GraphT>(value); }
168 template<typename GraphT = WorkflowGraph>
169 WorkflowRun& WithGraph(GraphT&& value) { SetGraph(std::forward<GraphT>(value)); return *this;}
171
173
176 inline const StartingEventBatchCondition& GetStartingEventBatchCondition() const { return m_startingEventBatchCondition; }
177 inline bool StartingEventBatchConditionHasBeenSet() const { return m_startingEventBatchConditionHasBeenSet; }
178 template<typename StartingEventBatchConditionT = StartingEventBatchCondition>
179 void SetStartingEventBatchCondition(StartingEventBatchConditionT&& value) { m_startingEventBatchConditionHasBeenSet = true; m_startingEventBatchCondition = std::forward<StartingEventBatchConditionT>(value); }
180 template<typename StartingEventBatchConditionT = StartingEventBatchCondition>
181 WorkflowRun& WithStartingEventBatchCondition(StartingEventBatchConditionT&& value) { SetStartingEventBatchCondition(std::forward<StartingEventBatchConditionT>(value)); return *this;}
183 private:
184
185 Aws::String m_name;
186 bool m_nameHasBeenSet = false;
187
188 Aws::String m_workflowRunId;
189 bool m_workflowRunIdHasBeenSet = false;
190
191 Aws::String m_previousRunId;
192 bool m_previousRunIdHasBeenSet = false;
193
194 Aws::Map<Aws::String, Aws::String> m_workflowRunProperties;
195 bool m_workflowRunPropertiesHasBeenSet = false;
196
197 Aws::Utils::DateTime m_startedOn{};
198 bool m_startedOnHasBeenSet = false;
199
200 Aws::Utils::DateTime m_completedOn{};
201 bool m_completedOnHasBeenSet = false;
202
204 bool m_statusHasBeenSet = false;
205
206 Aws::String m_errorMessage;
207 bool m_errorMessageHasBeenSet = false;
208
209 WorkflowRunStatistics m_statistics;
210 bool m_statisticsHasBeenSet = false;
211
212 WorkflowGraph m_graph;
213 bool m_graphHasBeenSet = false;
214
215 StartingEventBatchCondition m_startingEventBatchCondition;
216 bool m_startingEventBatchConditionHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace Glue
221} // 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:75
const Aws::Utils::DateTime & GetStartedOn() const
void SetName(NameT &&value)
Definition WorkflowRun.h:54
WorkflowRun & WithErrorMessage(ErrorMessageT &&value)
WorkflowRun & WithCompletedOn(CompletedOnT &&value)
const Aws::Utils::DateTime & GetCompletedOn() const
WorkflowRun & WithWorkflowRunProperties(WorkflowRunPropertiesT &&value)
Definition WorkflowRun.h:92
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:80
AWS_GLUE_API WorkflowRun()=default
WorkflowRun & WithWorkflowRunId(WorkflowRunIdT &&value)
Definition WorkflowRun.h:68
const Aws::String & GetName() const
Definition WorkflowRun.h:51
void SetStartedOn(StartedOnT &&value)
void SetPreviousRunId(PreviousRunIdT &&value)
Definition WorkflowRun.h:78
void SetWorkflowRunProperties(WorkflowRunPropertiesT &&value)
Definition WorkflowRun.h:90
AWS_GLUE_API WorkflowRun & operator=(Aws::Utils::Json::JsonView jsonValue)
const WorkflowRunStatistics & GetStatistics() const
WorkflowRun & WithStatus(WorkflowRunStatus value)
WorkflowRun & AddWorkflowRunProperties(WorkflowRunPropertiesKeyT &&key, WorkflowRunPropertiesValueT &&value)
Definition WorkflowRun.h:94
const Aws::Map< Aws::String, Aws::String > & GetWorkflowRunProperties() const
Definition WorkflowRun.h:87
WorkflowRun & WithName(NameT &&value)
Definition WorkflowRun.h:56
bool PreviousRunIdHasBeenSet() const
Definition WorkflowRun.h:76
void SetErrorMessage(ErrorMessageT &&value)
bool WorkflowRunPropertiesHasBeenSet() const
Definition WorkflowRun.h:88
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