AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
FlowDefinition.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/ConnectorType.h>
9#include <aws/appflow/model/ExecutionDetails.h>
10#include <aws/appflow/model/FlowStatus.h>
11#include <aws/appflow/model/TriggerType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Appflow {
26namespace Model {
27
35 public:
36 AWS_APPFLOW_API FlowDefinition() = default;
37 AWS_APPFLOW_API FlowDefinition(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetFlowArn() const { return m_flowArn; }
46 inline bool FlowArnHasBeenSet() const { return m_flowArnHasBeenSet; }
47 template <typename FlowArnT = Aws::String>
48 void SetFlowArn(FlowArnT&& value) {
49 m_flowArnHasBeenSet = true;
50 m_flowArn = std::forward<FlowArnT>(value);
51 }
52 template <typename FlowArnT = Aws::String>
53 FlowDefinition& WithFlowArn(FlowArnT&& value) {
54 SetFlowArn(std::forward<FlowArnT>(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 FlowDefinition& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetFlowName() const { return m_flowName; }
83 inline bool FlowNameHasBeenSet() const { return m_flowNameHasBeenSet; }
84 template <typename FlowNameT = Aws::String>
85 void SetFlowName(FlowNameT&& value) {
86 m_flowNameHasBeenSet = true;
87 m_flowName = std::forward<FlowNameT>(value);
88 }
89 template <typename FlowNameT = Aws::String>
90 FlowDefinition& WithFlowName(FlowNameT&& value) {
91 SetFlowName(std::forward<FlowNameT>(value));
92 return *this;
93 }
95
97
100 inline FlowStatus GetFlowStatus() const { return m_flowStatus; }
101 inline bool FlowStatusHasBeenSet() const { return m_flowStatusHasBeenSet; }
102 inline void SetFlowStatus(FlowStatus value) {
103 m_flowStatusHasBeenSet = true;
104 m_flowStatus = value;
105 }
107 SetFlowStatus(value);
108 return *this;
109 }
111
113
117 inline ConnectorType GetSourceConnectorType() const { return m_sourceConnectorType; }
118 inline bool SourceConnectorTypeHasBeenSet() const { return m_sourceConnectorTypeHasBeenSet; }
120 m_sourceConnectorTypeHasBeenSet = true;
121 m_sourceConnectorType = value;
122 }
125 return *this;
126 }
128
130
133 inline const Aws::String& GetSourceConnectorLabel() const { return m_sourceConnectorLabel; }
134 inline bool SourceConnectorLabelHasBeenSet() const { return m_sourceConnectorLabelHasBeenSet; }
135 template <typename SourceConnectorLabelT = Aws::String>
136 void SetSourceConnectorLabel(SourceConnectorLabelT&& value) {
137 m_sourceConnectorLabelHasBeenSet = true;
138 m_sourceConnectorLabel = std::forward<SourceConnectorLabelT>(value);
139 }
140 template <typename SourceConnectorLabelT = Aws::String>
141 FlowDefinition& WithSourceConnectorLabel(SourceConnectorLabelT&& value) {
142 SetSourceConnectorLabel(std::forward<SourceConnectorLabelT>(value));
143 return *this;
144 }
146
148
152 inline ConnectorType GetDestinationConnectorType() const { return m_destinationConnectorType; }
153 inline bool DestinationConnectorTypeHasBeenSet() const { return m_destinationConnectorTypeHasBeenSet; }
155 m_destinationConnectorTypeHasBeenSet = true;
156 m_destinationConnectorType = value;
157 }
160 return *this;
161 }
163
165
168 inline const Aws::String& GetDestinationConnectorLabel() const { return m_destinationConnectorLabel; }
169 inline bool DestinationConnectorLabelHasBeenSet() const { return m_destinationConnectorLabelHasBeenSet; }
170 template <typename DestinationConnectorLabelT = Aws::String>
171 void SetDestinationConnectorLabel(DestinationConnectorLabelT&& value) {
172 m_destinationConnectorLabelHasBeenSet = true;
173 m_destinationConnectorLabel = std::forward<DestinationConnectorLabelT>(value);
174 }
175 template <typename DestinationConnectorLabelT = Aws::String>
176 FlowDefinition& WithDestinationConnectorLabel(DestinationConnectorLabelT&& value) {
177 SetDestinationConnectorLabel(std::forward<DestinationConnectorLabelT>(value));
178 return *this;
179 }
181
183
187 inline TriggerType GetTriggerType() const { return m_triggerType; }
188 inline bool TriggerTypeHasBeenSet() const { return m_triggerTypeHasBeenSet; }
189 inline void SetTriggerType(TriggerType value) {
190 m_triggerTypeHasBeenSet = true;
191 m_triggerType = value;
192 }
194 SetTriggerType(value);
195 return *this;
196 }
198
200
203 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
204 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
205 template <typename CreatedAtT = Aws::Utils::DateTime>
206 void SetCreatedAt(CreatedAtT&& value) {
207 m_createdAtHasBeenSet = true;
208 m_createdAt = std::forward<CreatedAtT>(value);
209 }
210 template <typename CreatedAtT = Aws::Utils::DateTime>
211 FlowDefinition& WithCreatedAt(CreatedAtT&& value) {
212 SetCreatedAt(std::forward<CreatedAtT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
222 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
223 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
224 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
225 m_lastUpdatedAtHasBeenSet = true;
226 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
227 }
228 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
229 FlowDefinition& WithLastUpdatedAt(LastUpdatedAtT&& value) {
230 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
231 return *this;
232 }
234
236
239 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
240 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
241 template <typename CreatedByT = Aws::String>
242 void SetCreatedBy(CreatedByT&& value) {
243 m_createdByHasBeenSet = true;
244 m_createdBy = std::forward<CreatedByT>(value);
245 }
246 template <typename CreatedByT = Aws::String>
247 FlowDefinition& WithCreatedBy(CreatedByT&& value) {
248 SetCreatedBy(std::forward<CreatedByT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
258 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
259 template <typename LastUpdatedByT = Aws::String>
260 void SetLastUpdatedBy(LastUpdatedByT&& value) {
261 m_lastUpdatedByHasBeenSet = true;
262 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
263 }
264 template <typename LastUpdatedByT = Aws::String>
265 FlowDefinition& WithLastUpdatedBy(LastUpdatedByT&& value) {
266 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
276 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
277 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
278 void SetTags(TagsT&& value) {
279 m_tagsHasBeenSet = true;
280 m_tags = std::forward<TagsT>(value);
281 }
282 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
283 FlowDefinition& WithTags(TagsT&& value) {
284 SetTags(std::forward<TagsT>(value));
285 return *this;
286 }
287 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
288 FlowDefinition& AddTags(TagsKeyT&& key, TagsValueT&& value) {
289 m_tagsHasBeenSet = true;
290 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
291 return *this;
292 }
294
296
299 inline const ExecutionDetails& GetLastRunExecutionDetails() const { return m_lastRunExecutionDetails; }
300 inline bool LastRunExecutionDetailsHasBeenSet() const { return m_lastRunExecutionDetailsHasBeenSet; }
301 template <typename LastRunExecutionDetailsT = ExecutionDetails>
302 void SetLastRunExecutionDetails(LastRunExecutionDetailsT&& value) {
303 m_lastRunExecutionDetailsHasBeenSet = true;
304 m_lastRunExecutionDetails = std::forward<LastRunExecutionDetailsT>(value);
305 }
306 template <typename LastRunExecutionDetailsT = ExecutionDetails>
307 FlowDefinition& WithLastRunExecutionDetails(LastRunExecutionDetailsT&& value) {
308 SetLastRunExecutionDetails(std::forward<LastRunExecutionDetailsT>(value));
309 return *this;
310 }
312 private:
313 Aws::String m_flowArn;
314
315 Aws::String m_description;
316
317 Aws::String m_flowName;
318
319 FlowStatus m_flowStatus{FlowStatus::NOT_SET};
320
321 ConnectorType m_sourceConnectorType{ConnectorType::NOT_SET};
322
323 Aws::String m_sourceConnectorLabel;
324
325 ConnectorType m_destinationConnectorType{ConnectorType::NOT_SET};
326
327 Aws::String m_destinationConnectorLabel;
328
329 TriggerType m_triggerType{TriggerType::NOT_SET};
330
331 Aws::Utils::DateTime m_createdAt{};
332
333 Aws::Utils::DateTime m_lastUpdatedAt{};
334
335 Aws::String m_createdBy;
336
337 Aws::String m_lastUpdatedBy;
338
340
341 ExecutionDetails m_lastRunExecutionDetails;
342 bool m_flowArnHasBeenSet = false;
343 bool m_descriptionHasBeenSet = false;
344 bool m_flowNameHasBeenSet = false;
345 bool m_flowStatusHasBeenSet = false;
346 bool m_sourceConnectorTypeHasBeenSet = false;
347 bool m_sourceConnectorLabelHasBeenSet = false;
348 bool m_destinationConnectorTypeHasBeenSet = false;
349 bool m_destinationConnectorLabelHasBeenSet = false;
350 bool m_triggerTypeHasBeenSet = false;
351 bool m_createdAtHasBeenSet = false;
352 bool m_lastUpdatedAtHasBeenSet = false;
353 bool m_createdByHasBeenSet = false;
354 bool m_lastUpdatedByHasBeenSet = false;
355 bool m_tagsHasBeenSet = false;
356 bool m_lastRunExecutionDetailsHasBeenSet = false;
357};
358
359} // namespace Model
360} // namespace Appflow
361} // namespace Aws
AWS_APPFLOW_API FlowDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTriggerType(TriggerType value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFlowName(FlowNameT &&value)
FlowDefinition & WithCreatedBy(CreatedByT &&value)
AWS_APPFLOW_API FlowDefinition()=default
FlowDefinition & WithFlowStatus(FlowStatus value)
const Aws::String & GetFlowArn() const
const Aws::String & GetLastUpdatedBy() const
FlowDefinition & WithSourceConnectorLabel(SourceConnectorLabelT &&value)
FlowDefinition & WithTriggerType(TriggerType value)
const Aws::String & GetCreatedBy() const
ConnectorType GetSourceConnectorType() const
FlowDefinition & AddTags(TagsKeyT &&key, TagsValueT &&value)
FlowDefinition & WithTags(TagsT &&value)
void SetLastUpdatedBy(LastUpdatedByT &&value)
ConnectorType GetDestinationConnectorType() const
FlowDefinition & WithSourceConnectorType(ConnectorType value)
FlowDefinition & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetDescription() const
void SetDestinationConnectorLabel(DestinationConnectorLabelT &&value)
const ExecutionDetails & GetLastRunExecutionDetails() const
void SetCreatedBy(CreatedByT &&value)
void SetDestinationConnectorType(ConnectorType value)
void SetSourceConnectorType(ConnectorType value)
void SetLastRunExecutionDetails(LastRunExecutionDetailsT &&value)
FlowDefinition & WithLastUpdatedAt(LastUpdatedAtT &&value)
FlowDefinition & WithLastUpdatedBy(LastUpdatedByT &&value)
const Aws::String & GetDestinationConnectorLabel() const
FlowDefinition & WithDestinationConnectorType(ConnectorType value)
void SetFlowStatus(FlowStatus value)
FlowDefinition & WithDescription(DescriptionT &&value)
const Aws::String & GetFlowName() const
const Aws::String & GetSourceConnectorLabel() const
void SetFlowArn(FlowArnT &&value)
FlowDefinition & WithFlowName(FlowNameT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
FlowDefinition & WithFlowArn(FlowArnT &&value)
void SetSourceConnectorLabel(SourceConnectorLabelT &&value)
FlowDefinition & WithDestinationConnectorLabel(DestinationConnectorLabelT &&value)
FlowDefinition & WithLastRunExecutionDetails(LastRunExecutionDetailsT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetDescription(DescriptionT &&value)
AWS_APPFLOW_API FlowDefinition(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
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