AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Workflow.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/WorkflowRun.h>
12#include <aws/glue/model/WorkflowGraph.h>
13#include <aws/glue/model/BlueprintDetails.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Glue
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_GLUE_API Workflow() = default;
42 AWS_GLUE_API Workflow(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 Workflow& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
67 template<typename DescriptionT = Aws::String>
68 Workflow& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
70
72
77 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultRunProperties() const { return m_defaultRunProperties; }
78 inline bool DefaultRunPropertiesHasBeenSet() const { return m_defaultRunPropertiesHasBeenSet; }
79 template<typename DefaultRunPropertiesT = Aws::Map<Aws::String, Aws::String>>
80 void SetDefaultRunProperties(DefaultRunPropertiesT&& value) { m_defaultRunPropertiesHasBeenSet = true; m_defaultRunProperties = std::forward<DefaultRunPropertiesT>(value); }
81 template<typename DefaultRunPropertiesT = Aws::Map<Aws::String, Aws::String>>
82 Workflow& WithDefaultRunProperties(DefaultRunPropertiesT&& value) { SetDefaultRunProperties(std::forward<DefaultRunPropertiesT>(value)); return *this;}
83 template<typename DefaultRunPropertiesKeyT = Aws::String, typename DefaultRunPropertiesValueT = Aws::String>
84 Workflow& AddDefaultRunProperties(DefaultRunPropertiesKeyT&& key, DefaultRunPropertiesValueT&& value) {
85 m_defaultRunPropertiesHasBeenSet = true; m_defaultRunProperties.emplace(std::forward<DefaultRunPropertiesKeyT>(key), std::forward<DefaultRunPropertiesValueT>(value)); return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetCreatedOn() const { return m_createdOn; }
94 inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; }
95 template<typename CreatedOnT = Aws::Utils::DateTime>
96 void SetCreatedOn(CreatedOnT&& value) { m_createdOnHasBeenSet = true; m_createdOn = std::forward<CreatedOnT>(value); }
97 template<typename CreatedOnT = Aws::Utils::DateTime>
98 Workflow& WithCreatedOn(CreatedOnT&& value) { SetCreatedOn(std::forward<CreatedOnT>(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetLastModifiedOn() const { return m_lastModifiedOn; }
106 inline bool LastModifiedOnHasBeenSet() const { return m_lastModifiedOnHasBeenSet; }
107 template<typename LastModifiedOnT = Aws::Utils::DateTime>
108 void SetLastModifiedOn(LastModifiedOnT&& value) { m_lastModifiedOnHasBeenSet = true; m_lastModifiedOn = std::forward<LastModifiedOnT>(value); }
109 template<typename LastModifiedOnT = Aws::Utils::DateTime>
110 Workflow& WithLastModifiedOn(LastModifiedOnT&& value) { SetLastModifiedOn(std::forward<LastModifiedOnT>(value)); return *this;}
112
114
117 inline const WorkflowRun& GetLastRun() const { return m_lastRun; }
118 inline bool LastRunHasBeenSet() const { return m_lastRunHasBeenSet; }
119 template<typename LastRunT = WorkflowRun>
120 void SetLastRun(LastRunT&& value) { m_lastRunHasBeenSet = true; m_lastRun = std::forward<LastRunT>(value); }
121 template<typename LastRunT = WorkflowRun>
122 Workflow& WithLastRun(LastRunT&& value) { SetLastRun(std::forward<LastRunT>(value)); return *this;}
124
126
130 inline const WorkflowGraph& GetGraph() const { return m_graph; }
131 inline bool GraphHasBeenSet() const { return m_graphHasBeenSet; }
132 template<typename GraphT = WorkflowGraph>
133 void SetGraph(GraphT&& value) { m_graphHasBeenSet = true; m_graph = std::forward<GraphT>(value); }
134 template<typename GraphT = WorkflowGraph>
135 Workflow& WithGraph(GraphT&& value) { SetGraph(std::forward<GraphT>(value)); return *this;}
137
139
145 inline int GetMaxConcurrentRuns() const { return m_maxConcurrentRuns; }
146 inline bool MaxConcurrentRunsHasBeenSet() const { return m_maxConcurrentRunsHasBeenSet; }
147 inline void SetMaxConcurrentRuns(int value) { m_maxConcurrentRunsHasBeenSet = true; m_maxConcurrentRuns = value; }
148 inline Workflow& WithMaxConcurrentRuns(int value) { SetMaxConcurrentRuns(value); return *this;}
150
152
156 inline const BlueprintDetails& GetBlueprintDetails() const { return m_blueprintDetails; }
157 inline bool BlueprintDetailsHasBeenSet() const { return m_blueprintDetailsHasBeenSet; }
158 template<typename BlueprintDetailsT = BlueprintDetails>
159 void SetBlueprintDetails(BlueprintDetailsT&& value) { m_blueprintDetailsHasBeenSet = true; m_blueprintDetails = std::forward<BlueprintDetailsT>(value); }
160 template<typename BlueprintDetailsT = BlueprintDetails>
161 Workflow& WithBlueprintDetails(BlueprintDetailsT&& value) { SetBlueprintDetails(std::forward<BlueprintDetailsT>(value)); return *this;}
163 private:
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 Aws::Map<Aws::String, Aws::String> m_defaultRunProperties;
172 bool m_defaultRunPropertiesHasBeenSet = false;
173
174 Aws::Utils::DateTime m_createdOn{};
175 bool m_createdOnHasBeenSet = false;
176
177 Aws::Utils::DateTime m_lastModifiedOn{};
178 bool m_lastModifiedOnHasBeenSet = false;
179
180 WorkflowRun m_lastRun;
181 bool m_lastRunHasBeenSet = false;
182
183 WorkflowGraph m_graph;
184 bool m_graphHasBeenSet = false;
185
186 int m_maxConcurrentRuns{0};
187 bool m_maxConcurrentRunsHasBeenSet = false;
188
189 BlueprintDetails m_blueprintDetails;
190 bool m_blueprintDetailsHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace Glue
195} // namespace Aws
bool LastModifiedOnHasBeenSet() const
Definition Workflow.h:106
const Aws::String & GetName() const
Definition Workflow.h:51
Workflow & WithGraph(GraphT &&value)
Definition Workflow.h:135
void SetBlueprintDetails(BlueprintDetailsT &&value)
Definition Workflow.h:159
void SetDescription(DescriptionT &&value)
Definition Workflow.h:66
Workflow & WithLastModifiedOn(LastModifiedOnT &&value)
Definition Workflow.h:110
bool BlueprintDetailsHasBeenSet() const
Definition Workflow.h:157
Workflow & AddDefaultRunProperties(DefaultRunPropertiesKeyT &&key, DefaultRunPropertiesValueT &&value)
Definition Workflow.h:84
void SetName(NameT &&value)
Definition Workflow.h:54
Workflow & WithDefaultRunProperties(DefaultRunPropertiesT &&value)
Definition Workflow.h:82
bool DescriptionHasBeenSet() const
Definition Workflow.h:64
const WorkflowGraph & GetGraph() const
Definition Workflow.h:130
Workflow & WithLastRun(LastRunT &&value)
Definition Workflow.h:122
Workflow & WithBlueprintDetails(BlueprintDetailsT &&value)
Definition Workflow.h:161
const WorkflowRun & GetLastRun() const
Definition Workflow.h:117
bool DefaultRunPropertiesHasBeenSet() const
Definition Workflow.h:78
Workflow & WithMaxConcurrentRuns(int value)
Definition Workflow.h:148
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedOn() const
Definition Workflow.h:93
Workflow & WithDescription(DescriptionT &&value)
Definition Workflow.h:68
AWS_GLUE_API Workflow()=default
bool NameHasBeenSet() const
Definition Workflow.h:52
const Aws::Map< Aws::String, Aws::String > & GetDefaultRunProperties() const
Definition Workflow.h:77
int GetMaxConcurrentRuns() const
Definition Workflow.h:145
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:108
bool CreatedOnHasBeenSet() const
Definition Workflow.h:94
AWS_GLUE_API Workflow & operator=(Aws::Utils::Json::JsonView jsonValue)
const BlueprintDetails & GetBlueprintDetails() const
Definition Workflow.h:156
Workflow & WithName(NameT &&value)
Definition Workflow.h:56
bool LastRunHasBeenSet() const
Definition Workflow.h:118
void SetGraph(GraphT &&value)
Definition Workflow.h:133
bool GraphHasBeenSet() const
Definition Workflow.h:131
void SetLastRun(LastRunT &&value)
Definition Workflow.h:120
Workflow & WithCreatedOn(CreatedOnT &&value)
Definition Workflow.h:98
const Aws::Utils::DateTime & GetLastModifiedOn() const
Definition Workflow.h:105
bool MaxConcurrentRunsHasBeenSet() const
Definition Workflow.h:146
void SetCreatedOn(CreatedOnT &&value)
Definition Workflow.h:96
void SetDefaultRunProperties(DefaultRunPropertiesT &&value)
Definition Workflow.h:80
void SetMaxConcurrentRuns(int value)
Definition Workflow.h:147
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