AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Workflow.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/BlueprintDetails.h>
12#include <aws/glue/model/WorkflowGraph.h>
13#include <aws/glue/model/WorkflowRun.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue {
25namespace Model {
26
34class Workflow {
35 public:
36 AWS_GLUE_API Workflow() = default;
37 AWS_GLUE_API Workflow(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 Workflow& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
71 Workflow& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultRunProperties() const { return m_defaultRunProperties; }
84 inline bool DefaultRunPropertiesHasBeenSet() const { return m_defaultRunPropertiesHasBeenSet; }
85 template <typename DefaultRunPropertiesT = Aws::Map<Aws::String, Aws::String>>
86 void SetDefaultRunProperties(DefaultRunPropertiesT&& value) {
87 m_defaultRunPropertiesHasBeenSet = true;
88 m_defaultRunProperties = std::forward<DefaultRunPropertiesT>(value);
89 }
90 template <typename DefaultRunPropertiesT = Aws::Map<Aws::String, Aws::String>>
91 Workflow& WithDefaultRunProperties(DefaultRunPropertiesT&& value) {
92 SetDefaultRunProperties(std::forward<DefaultRunPropertiesT>(value));
93 return *this;
94 }
95 template <typename DefaultRunPropertiesKeyT = Aws::String, typename DefaultRunPropertiesValueT = Aws::String>
96 Workflow& AddDefaultRunProperties(DefaultRunPropertiesKeyT&& key, DefaultRunPropertiesValueT&& value) {
97 m_defaultRunPropertiesHasBeenSet = true;
98 m_defaultRunProperties.emplace(std::forward<DefaultRunPropertiesKeyT>(key), std::forward<DefaultRunPropertiesValueT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetCreatedOn() const { return m_createdOn; }
108 inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; }
109 template <typename CreatedOnT = Aws::Utils::DateTime>
110 void SetCreatedOn(CreatedOnT&& value) {
111 m_createdOnHasBeenSet = true;
112 m_createdOn = std::forward<CreatedOnT>(value);
113 }
114 template <typename CreatedOnT = Aws::Utils::DateTime>
115 Workflow& WithCreatedOn(CreatedOnT&& value) {
116 SetCreatedOn(std::forward<CreatedOnT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetLastModifiedOn() const { return m_lastModifiedOn; }
126 inline bool LastModifiedOnHasBeenSet() const { return m_lastModifiedOnHasBeenSet; }
127 template <typename LastModifiedOnT = Aws::Utils::DateTime>
128 void SetLastModifiedOn(LastModifiedOnT&& value) {
129 m_lastModifiedOnHasBeenSet = true;
130 m_lastModifiedOn = std::forward<LastModifiedOnT>(value);
131 }
132 template <typename LastModifiedOnT = Aws::Utils::DateTime>
133 Workflow& WithLastModifiedOn(LastModifiedOnT&& value) {
134 SetLastModifiedOn(std::forward<LastModifiedOnT>(value));
135 return *this;
136 }
138
140
143 inline const WorkflowRun& GetLastRun() const { return m_lastRun; }
144 inline bool LastRunHasBeenSet() const { return m_lastRunHasBeenSet; }
145 template <typename LastRunT = WorkflowRun>
146 void SetLastRun(LastRunT&& value) {
147 m_lastRunHasBeenSet = true;
148 m_lastRun = std::forward<LastRunT>(value);
149 }
150 template <typename LastRunT = WorkflowRun>
151 Workflow& WithLastRun(LastRunT&& value) {
152 SetLastRun(std::forward<LastRunT>(value));
153 return *this;
154 }
156
158
162 inline const WorkflowGraph& GetGraph() const { return m_graph; }
163 inline bool GraphHasBeenSet() const { return m_graphHasBeenSet; }
164 template <typename GraphT = WorkflowGraph>
165 void SetGraph(GraphT&& value) {
166 m_graphHasBeenSet = true;
167 m_graph = std::forward<GraphT>(value);
168 }
169 template <typename GraphT = WorkflowGraph>
170 Workflow& WithGraph(GraphT&& value) {
171 SetGraph(std::forward<GraphT>(value));
172 return *this;
173 }
175
177
183 inline int GetMaxConcurrentRuns() const { return m_maxConcurrentRuns; }
184 inline bool MaxConcurrentRunsHasBeenSet() const { return m_maxConcurrentRunsHasBeenSet; }
185 inline void SetMaxConcurrentRuns(int value) {
186 m_maxConcurrentRunsHasBeenSet = true;
187 m_maxConcurrentRuns = value;
188 }
189 inline Workflow& WithMaxConcurrentRuns(int value) {
191 return *this;
192 }
194
196
200 inline const BlueprintDetails& GetBlueprintDetails() const { return m_blueprintDetails; }
201 inline bool BlueprintDetailsHasBeenSet() const { return m_blueprintDetailsHasBeenSet; }
202 template <typename BlueprintDetailsT = BlueprintDetails>
203 void SetBlueprintDetails(BlueprintDetailsT&& value) {
204 m_blueprintDetailsHasBeenSet = true;
205 m_blueprintDetails = std::forward<BlueprintDetailsT>(value);
206 }
207 template <typename BlueprintDetailsT = BlueprintDetails>
208 Workflow& WithBlueprintDetails(BlueprintDetailsT&& value) {
209 SetBlueprintDetails(std::forward<BlueprintDetailsT>(value));
210 return *this;
211 }
213 private:
214 Aws::String m_name;
215
216 Aws::String m_description;
217
218 Aws::Map<Aws::String, Aws::String> m_defaultRunProperties;
219
220 Aws::Utils::DateTime m_createdOn{};
221
222 Aws::Utils::DateTime m_lastModifiedOn{};
223
224 WorkflowRun m_lastRun;
225
226 WorkflowGraph m_graph;
227
228 int m_maxConcurrentRuns{0};
229
230 BlueprintDetails m_blueprintDetails;
231 bool m_nameHasBeenSet = false;
232 bool m_descriptionHasBeenSet = false;
233 bool m_defaultRunPropertiesHasBeenSet = false;
234 bool m_createdOnHasBeenSet = false;
235 bool m_lastModifiedOnHasBeenSet = false;
236 bool m_lastRunHasBeenSet = false;
237 bool m_graphHasBeenSet = false;
238 bool m_maxConcurrentRunsHasBeenSet = false;
239 bool m_blueprintDetailsHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace Glue
244} // namespace Aws
bool LastModifiedOnHasBeenSet() const
Definition Workflow.h:126
const Aws::String & GetName() const
Definition Workflow.h:45
Workflow & WithGraph(GraphT &&value)
Definition Workflow.h:170
void SetBlueprintDetails(BlueprintDetailsT &&value)
Definition Workflow.h:203
void SetDescription(DescriptionT &&value)
Definition Workflow.h:66
Workflow & WithLastModifiedOn(LastModifiedOnT &&value)
Definition Workflow.h:133
bool BlueprintDetailsHasBeenSet() const
Definition Workflow.h:201
Workflow & AddDefaultRunProperties(DefaultRunPropertiesKeyT &&key, DefaultRunPropertiesValueT &&value)
Definition Workflow.h:96
void SetName(NameT &&value)
Definition Workflow.h:48
Workflow & WithDefaultRunProperties(DefaultRunPropertiesT &&value)
Definition Workflow.h:91
bool DescriptionHasBeenSet() const
Definition Workflow.h:64
const WorkflowGraph & GetGraph() const
Definition Workflow.h:162
Workflow & WithLastRun(LastRunT &&value)
Definition Workflow.h:151
Workflow & WithBlueprintDetails(BlueprintDetailsT &&value)
Definition Workflow.h:208
const WorkflowRun & GetLastRun() const
Definition Workflow.h:143
bool DefaultRunPropertiesHasBeenSet() const
Definition Workflow.h:84
Workflow & WithMaxConcurrentRuns(int value)
Definition Workflow.h:189
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedOn() const
Definition Workflow.h:107
Workflow & WithDescription(DescriptionT &&value)
Definition Workflow.h:71
AWS_GLUE_API Workflow()=default
bool NameHasBeenSet() const
Definition Workflow.h:46
const Aws::Map< Aws::String, Aws::String > & GetDefaultRunProperties() const
Definition Workflow.h:83
int GetMaxConcurrentRuns() const
Definition Workflow.h:183
AWS_GLUE_API Workflow(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Workflow.h:63
void SetLastModifiedOn(LastModifiedOnT &&value)
Definition Workflow.h:128
bool CreatedOnHasBeenSet() const
Definition Workflow.h:108
AWS_GLUE_API Workflow & operator=(Aws::Utils::Json::JsonView jsonValue)
const BlueprintDetails & GetBlueprintDetails() const
Definition Workflow.h:200
Workflow & WithName(NameT &&value)
Definition Workflow.h:53
bool LastRunHasBeenSet() const
Definition Workflow.h:144
void SetGraph(GraphT &&value)
Definition Workflow.h:165
bool GraphHasBeenSet() const
Definition Workflow.h:163
void SetLastRun(LastRunT &&value)
Definition Workflow.h:146
Workflow & WithCreatedOn(CreatedOnT &&value)
Definition Workflow.h:115
const Aws::Utils::DateTime & GetLastModifiedOn() const
Definition Workflow.h:125
bool MaxConcurrentRunsHasBeenSet() const
Definition Workflow.h:184
void SetCreatedOn(CreatedOnT &&value)
Definition Workflow.h:110
void SetDefaultRunProperties(DefaultRunPropertiesT &&value)
Definition Workflow.h:86
void SetMaxConcurrentRuns(int value)
Definition Workflow.h:185
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