AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline WorkflowRun& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline WorkflowRun& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline WorkflowRun& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const Aws::String& GetWorkflowRunId() const{ return m_workflowRunId; }
66 inline bool WorkflowRunIdHasBeenSet() const { return m_workflowRunIdHasBeenSet; }
67 inline void SetWorkflowRunId(const Aws::String& value) { m_workflowRunIdHasBeenSet = true; m_workflowRunId = value; }
68 inline void SetWorkflowRunId(Aws::String&& value) { m_workflowRunIdHasBeenSet = true; m_workflowRunId = std::move(value); }
69 inline void SetWorkflowRunId(const char* value) { m_workflowRunIdHasBeenSet = true; m_workflowRunId.assign(value); }
70 inline WorkflowRun& WithWorkflowRunId(const Aws::String& value) { SetWorkflowRunId(value); return *this;}
71 inline WorkflowRun& WithWorkflowRunId(Aws::String&& value) { SetWorkflowRunId(std::move(value)); return *this;}
72 inline WorkflowRun& WithWorkflowRunId(const char* value) { SetWorkflowRunId(value); return *this;}
74
76
79 inline const Aws::String& GetPreviousRunId() const{ return m_previousRunId; }
80 inline bool PreviousRunIdHasBeenSet() const { return m_previousRunIdHasBeenSet; }
81 inline void SetPreviousRunId(const Aws::String& value) { m_previousRunIdHasBeenSet = true; m_previousRunId = value; }
82 inline void SetPreviousRunId(Aws::String&& value) { m_previousRunIdHasBeenSet = true; m_previousRunId = std::move(value); }
83 inline void SetPreviousRunId(const char* value) { m_previousRunIdHasBeenSet = true; m_previousRunId.assign(value); }
84 inline WorkflowRun& WithPreviousRunId(const Aws::String& value) { SetPreviousRunId(value); return *this;}
85 inline WorkflowRun& WithPreviousRunId(Aws::String&& value) { SetPreviousRunId(std::move(value)); return *this;}
86 inline WorkflowRun& WithPreviousRunId(const char* value) { SetPreviousRunId(value); return *this;}
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetWorkflowRunProperties() const{ return m_workflowRunProperties; }
94 inline bool WorkflowRunPropertiesHasBeenSet() const { return m_workflowRunPropertiesHasBeenSet; }
95 inline void SetWorkflowRunProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties = value; }
96 inline void SetWorkflowRunProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties = std::move(value); }
99 inline WorkflowRun& AddWorkflowRunProperties(const Aws::String& key, const Aws::String& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(key, value); return *this; }
100 inline WorkflowRun& AddWorkflowRunProperties(Aws::String&& key, const Aws::String& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(std::move(key), value); return *this; }
101 inline WorkflowRun& AddWorkflowRunProperties(const Aws::String& key, Aws::String&& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(key, std::move(value)); return *this; }
102 inline WorkflowRun& AddWorkflowRunProperties(Aws::String&& key, Aws::String&& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(std::move(key), std::move(value)); return *this; }
103 inline WorkflowRun& AddWorkflowRunProperties(const char* key, Aws::String&& value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(key, std::move(value)); return *this; }
104 inline WorkflowRun& AddWorkflowRunProperties(Aws::String&& key, const char* value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(std::move(key), value); return *this; }
105 inline WorkflowRun& AddWorkflowRunProperties(const char* key, const char* value) { m_workflowRunPropertiesHasBeenSet = true; m_workflowRunProperties.emplace(key, value); return *this; }
107
109
112 inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; }
113 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
114 inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOnHasBeenSet = true; m_startedOn = value; }
115 inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::move(value); }
116 inline WorkflowRun& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;}
117 inline WorkflowRun& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; }
125 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
126 inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOnHasBeenSet = true; m_completedOn = value; }
127 inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::move(value); }
128 inline WorkflowRun& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;}
129 inline WorkflowRun& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;}
131
133
136 inline const WorkflowRunStatus& GetStatus() const{ return m_status; }
137 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
138 inline void SetStatus(const WorkflowRunStatus& value) { m_statusHasBeenSet = true; m_status = value; }
139 inline void SetStatus(WorkflowRunStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
140 inline WorkflowRun& WithStatus(const WorkflowRunStatus& value) { SetStatus(value); return *this;}
141 inline WorkflowRun& WithStatus(WorkflowRunStatus&& value) { SetStatus(std::move(value)); return *this;}
143
145
150 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
151 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
152 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
153 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
154 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
155 inline WorkflowRun& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
156 inline WorkflowRun& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
157 inline WorkflowRun& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
159
161
164 inline const WorkflowRunStatistics& GetStatistics() const{ return m_statistics; }
165 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
166 inline void SetStatistics(const WorkflowRunStatistics& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
167 inline void SetStatistics(WorkflowRunStatistics&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
168 inline WorkflowRun& WithStatistics(const WorkflowRunStatistics& value) { SetStatistics(value); return *this;}
169 inline WorkflowRun& WithStatistics(WorkflowRunStatistics&& value) { SetStatistics(std::move(value)); return *this;}
171
173
177 inline const WorkflowGraph& GetGraph() const{ return m_graph; }
178 inline bool GraphHasBeenSet() const { return m_graphHasBeenSet; }
179 inline void SetGraph(const WorkflowGraph& value) { m_graphHasBeenSet = true; m_graph = value; }
180 inline void SetGraph(WorkflowGraph&& value) { m_graphHasBeenSet = true; m_graph = std::move(value); }
181 inline WorkflowRun& WithGraph(const WorkflowGraph& value) { SetGraph(value); return *this;}
182 inline WorkflowRun& WithGraph(WorkflowGraph&& value) { SetGraph(std::move(value)); return *this;}
184
186
189 inline const StartingEventBatchCondition& GetStartingEventBatchCondition() const{ return m_startingEventBatchCondition; }
190 inline bool StartingEventBatchConditionHasBeenSet() const { return m_startingEventBatchConditionHasBeenSet; }
191 inline void SetStartingEventBatchCondition(const StartingEventBatchCondition& value) { m_startingEventBatchConditionHasBeenSet = true; m_startingEventBatchCondition = value; }
192 inline void SetStartingEventBatchCondition(StartingEventBatchCondition&& value) { m_startingEventBatchConditionHasBeenSet = true; m_startingEventBatchCondition = std::move(value); }
196 private:
197
198 Aws::String m_name;
199 bool m_nameHasBeenSet = false;
200
201 Aws::String m_workflowRunId;
202 bool m_workflowRunIdHasBeenSet = false;
203
204 Aws::String m_previousRunId;
205 bool m_previousRunIdHasBeenSet = false;
206
207 Aws::Map<Aws::String, Aws::String> m_workflowRunProperties;
208 bool m_workflowRunPropertiesHasBeenSet = false;
209
210 Aws::Utils::DateTime m_startedOn;
211 bool m_startedOnHasBeenSet = false;
212
213 Aws::Utils::DateTime m_completedOn;
214 bool m_completedOnHasBeenSet = false;
215
216 WorkflowRunStatus m_status;
217 bool m_statusHasBeenSet = false;
218
219 Aws::String m_errorMessage;
220 bool m_errorMessageHasBeenSet = false;
221
222 WorkflowRunStatistics m_statistics;
223 bool m_statisticsHasBeenSet = false;
224
225 WorkflowGraph m_graph;
226 bool m_graphHasBeenSet = false;
227
228 StartingEventBatchCondition m_startingEventBatchCondition;
229 bool m_startingEventBatchConditionHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace Glue
234} // namespace Aws
const Aws::String & GetErrorMessage() const
void SetWorkflowRunId(Aws::String &&value)
Definition WorkflowRun.h:68
void SetStartedOn(const Aws::Utils::DateTime &value)
void SetStatistics(const WorkflowRunStatistics &value)
WorkflowRun & WithWorkflowRunId(const Aws::String &value)
Definition WorkflowRun.h:70
AWS_GLUE_API WorkflowRun(Aws::Utils::Json::JsonView jsonValue)
WorkflowRun & WithPreviousRunId(const Aws::String &value)
Definition WorkflowRun.h:84
void SetCompletedOn(Aws::Utils::DateTime &&value)
void SetErrorMessage(const Aws::String &value)
const WorkflowRunStatus & GetStatus() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPreviousRunId() const
Definition WorkflowRun.h:79
const Aws::Utils::DateTime & GetStartedOn() const
WorkflowRun & AddWorkflowRunProperties(const char *key, const char *value)
void SetPreviousRunId(const char *value)
Definition WorkflowRun.h:83
void SetWorkflowRunId(const Aws::String &value)
Definition WorkflowRun.h:67
const Aws::Utils::DateTime & GetCompletedOn() const
WorkflowRun & WithStatus(const WorkflowRunStatus &value)
const WorkflowGraph & GetGraph() const
void SetCompletedOn(const Aws::Utils::DateTime &value)
bool StartingEventBatchConditionHasBeenSet() const
WorkflowRun & WithCompletedOn(const Aws::Utils::DateTime &value)
void SetStartingEventBatchCondition(StartingEventBatchCondition &&value)
WorkflowRun & WithWorkflowRunProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition WorkflowRun.h:98
void SetStartedOn(Aws::Utils::DateTime &&value)
WorkflowRun & WithGraph(WorkflowGraph &&value)
WorkflowRun & WithStatistics(WorkflowRunStatistics &&value)
void SetWorkflowRunId(const char *value)
Definition WorkflowRun.h:69
void SetGraph(WorkflowGraph &&value)
WorkflowRun & AddWorkflowRunProperties(const char *key, Aws::String &&value)
WorkflowRun & WithCompletedOn(Aws::Utils::DateTime &&value)
void SetStatus(WorkflowRunStatus &&value)
void SetStartingEventBatchCondition(const StartingEventBatchCondition &value)
WorkflowRun & WithStatistics(const WorkflowRunStatistics &value)
WorkflowRun & WithWorkflowRunId(Aws::String &&value)
Definition WorkflowRun.h:71
const Aws::String & GetName() const
Definition WorkflowRun.h:51
WorkflowRun & WithErrorMessage(Aws::String &&value)
WorkflowRun & WithStatus(WorkflowRunStatus &&value)
void SetStatus(const WorkflowRunStatus &value)
void SetWorkflowRunProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition WorkflowRun.h:96
void SetPreviousRunId(Aws::String &&value)
Definition WorkflowRun.h:82
AWS_GLUE_API WorkflowRun & operator=(Aws::Utils::Json::JsonView jsonValue)
const WorkflowRunStatistics & GetStatistics() const
WorkflowRun & AddWorkflowRunProperties(Aws::String &&key, const Aws::String &value)
void SetErrorMessage(const char *value)
WorkflowRun & WithErrorMessage(const char *value)
WorkflowRun & WithStartedOn(Aws::Utils::DateTime &&value)
const Aws::Map< Aws::String, Aws::String > & GetWorkflowRunProperties() const
Definition WorkflowRun.h:93
WorkflowRun & AddWorkflowRunProperties(Aws::String &&key, Aws::String &&value)
bool PreviousRunIdHasBeenSet() const
Definition WorkflowRun.h:80
WorkflowRun & WithName(const char *value)
Definition WorkflowRun.h:58
void SetName(const char *value)
Definition WorkflowRun.h:55
WorkflowRun & WithWorkflowRunProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition WorkflowRun.h:97
bool WorkflowRunPropertiesHasBeenSet() const
Definition WorkflowRun.h:94
const Aws::String & GetWorkflowRunId() const
Definition WorkflowRun.h:65
void SetName(const Aws::String &value)
Definition WorkflowRun.h:53
WorkflowRun & WithWorkflowRunId(const char *value)
Definition WorkflowRun.h:72
WorkflowRun & WithPreviousRunId(Aws::String &&value)
Definition WorkflowRun.h:85
WorkflowRun & WithStartingEventBatchCondition(StartingEventBatchCondition &&value)
WorkflowRun & WithStartingEventBatchCondition(const StartingEventBatchCondition &value)
WorkflowRun & WithErrorMessage(const Aws::String &value)
WorkflowRun & WithGraph(const WorkflowGraph &value)
WorkflowRun & AddWorkflowRunProperties(const Aws::String &key, const Aws::String &value)
Definition WorkflowRun.h:99
const StartingEventBatchCondition & GetStartingEventBatchCondition() const
WorkflowRun & WithStartedOn(const Aws::Utils::DateTime &value)
void SetErrorMessage(Aws::String &&value)
void SetName(Aws::String &&value)
Definition WorkflowRun.h:54
void SetWorkflowRunProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition WorkflowRun.h:95
WorkflowRun & AddWorkflowRunProperties(const Aws::String &key, Aws::String &&value)
void SetStatistics(WorkflowRunStatistics &&value)
bool WorkflowRunIdHasBeenSet() const
Definition WorkflowRun.h:66
void SetPreviousRunId(const Aws::String &value)
Definition WorkflowRun.h:81
void SetGraph(const WorkflowGraph &value)
WorkflowRun & WithName(const Aws::String &value)
Definition WorkflowRun.h:56
WorkflowRun & WithName(Aws::String &&value)
Definition WorkflowRun.h:57
WorkflowRun & AddWorkflowRunProperties(Aws::String &&key, const char *value)
WorkflowRun & WithPreviousRunId(const char *value)
Definition WorkflowRun.h:86
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