AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateFlowRequest.h
1
6#pragma once
7#include <aws/appflow/AppflowRequest.h>
8#include <aws/appflow/Appflow_EXPORTS.h>
9#include <aws/appflow/model/DestinationFlowConfig.h>
10#include <aws/appflow/model/MetadataCatalogConfig.h>
11#include <aws/appflow/model/SourceFlowConfig.h>
12#include <aws/appflow/model/Task.h>
13#include <aws/appflow/model/TriggerConfig.h>
14#include <aws/core/utils/UUID.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Appflow {
23namespace Model {
24
28 public:
29 AWS_APPFLOW_API CreateFlowRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateFlow"; }
36
37 AWS_APPFLOW_API Aws::String SerializePayload() const override;
38
40
44 inline const Aws::String& GetFlowName() const { return m_flowName; }
45 inline bool FlowNameHasBeenSet() const { return m_flowNameHasBeenSet; }
46 template <typename FlowNameT = Aws::String>
47 void SetFlowName(FlowNameT&& value) {
48 m_flowNameHasBeenSet = true;
49 m_flowName = std::forward<FlowNameT>(value);
50 }
51 template <typename FlowNameT = Aws::String>
52 CreateFlowRequest& WithFlowName(FlowNameT&& value) {
53 SetFlowName(std::forward<FlowNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
70 CreateFlowRequest& WithDescription(DescriptionT&& value) {
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
83 inline const Aws::String& GetKmsArn() const { return m_kmsArn; }
84 inline bool KmsArnHasBeenSet() const { return m_kmsArnHasBeenSet; }
85 template <typename KmsArnT = Aws::String>
86 void SetKmsArn(KmsArnT&& value) {
87 m_kmsArnHasBeenSet = true;
88 m_kmsArn = std::forward<KmsArnT>(value);
89 }
90 template <typename KmsArnT = Aws::String>
91 CreateFlowRequest& WithKmsArn(KmsArnT&& value) {
92 SetKmsArn(std::forward<KmsArnT>(value));
93 return *this;
94 }
96
98
101 inline const TriggerConfig& GetTriggerConfig() const { return m_triggerConfig; }
102 inline bool TriggerConfigHasBeenSet() const { return m_triggerConfigHasBeenSet; }
103 template <typename TriggerConfigT = TriggerConfig>
104 void SetTriggerConfig(TriggerConfigT&& value) {
105 m_triggerConfigHasBeenSet = true;
106 m_triggerConfig = std::forward<TriggerConfigT>(value);
107 }
108 template <typename TriggerConfigT = TriggerConfig>
109 CreateFlowRequest& WithTriggerConfig(TriggerConfigT&& value) {
110 SetTriggerConfig(std::forward<TriggerConfigT>(value));
111 return *this;
112 }
114
116
120 inline const SourceFlowConfig& GetSourceFlowConfig() const { return m_sourceFlowConfig; }
121 inline bool SourceFlowConfigHasBeenSet() const { return m_sourceFlowConfigHasBeenSet; }
122 template <typename SourceFlowConfigT = SourceFlowConfig>
123 void SetSourceFlowConfig(SourceFlowConfigT&& value) {
124 m_sourceFlowConfigHasBeenSet = true;
125 m_sourceFlowConfig = std::forward<SourceFlowConfigT>(value);
126 }
127 template <typename SourceFlowConfigT = SourceFlowConfig>
128 CreateFlowRequest& WithSourceFlowConfig(SourceFlowConfigT&& value) {
129 SetSourceFlowConfig(std::forward<SourceFlowConfigT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Vector<DestinationFlowConfig>& GetDestinationFlowConfigList() const { return m_destinationFlowConfigList; }
140 inline bool DestinationFlowConfigListHasBeenSet() const { return m_destinationFlowConfigListHasBeenSet; }
141 template <typename DestinationFlowConfigListT = Aws::Vector<DestinationFlowConfig>>
142 void SetDestinationFlowConfigList(DestinationFlowConfigListT&& value) {
143 m_destinationFlowConfigListHasBeenSet = true;
144 m_destinationFlowConfigList = std::forward<DestinationFlowConfigListT>(value);
145 }
146 template <typename DestinationFlowConfigListT = Aws::Vector<DestinationFlowConfig>>
147 CreateFlowRequest& WithDestinationFlowConfigList(DestinationFlowConfigListT&& value) {
148 SetDestinationFlowConfigList(std::forward<DestinationFlowConfigListT>(value));
149 return *this;
150 }
151 template <typename DestinationFlowConfigListT = DestinationFlowConfig>
152 CreateFlowRequest& AddDestinationFlowConfigList(DestinationFlowConfigListT&& value) {
153 m_destinationFlowConfigListHasBeenSet = true;
154 m_destinationFlowConfigList.emplace_back(std::forward<DestinationFlowConfigListT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::Vector<Task>& GetTasks() const { return m_tasks; }
165 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
166 template <typename TasksT = Aws::Vector<Task>>
167 void SetTasks(TasksT&& value) {
168 m_tasksHasBeenSet = true;
169 m_tasks = std::forward<TasksT>(value);
170 }
171 template <typename TasksT = Aws::Vector<Task>>
172 CreateFlowRequest& WithTasks(TasksT&& value) {
173 SetTasks(std::forward<TasksT>(value));
174 return *this;
175 }
176 template <typename TasksT = Task>
177 CreateFlowRequest& AddTasks(TasksT&& value) {
178 m_tasksHasBeenSet = true;
179 m_tasks.emplace_back(std::forward<TasksT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
189 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
190 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
191 void SetTags(TagsT&& value) {
192 m_tagsHasBeenSet = true;
193 m_tags = std::forward<TagsT>(value);
194 }
195 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
196 CreateFlowRequest& WithTags(TagsT&& value) {
197 SetTags(std::forward<TagsT>(value));
198 return *this;
199 }
200 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
201 CreateFlowRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
202 m_tagsHasBeenSet = true;
203 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
204 return *this;
205 }
207
209
214 inline const MetadataCatalogConfig& GetMetadataCatalogConfig() const { return m_metadataCatalogConfig; }
215 inline bool MetadataCatalogConfigHasBeenSet() const { return m_metadataCatalogConfigHasBeenSet; }
216 template <typename MetadataCatalogConfigT = MetadataCatalogConfig>
217 void SetMetadataCatalogConfig(MetadataCatalogConfigT&& value) {
218 m_metadataCatalogConfigHasBeenSet = true;
219 m_metadataCatalogConfig = std::forward<MetadataCatalogConfigT>(value);
220 }
221 template <typename MetadataCatalogConfigT = MetadataCatalogConfig>
222 CreateFlowRequest& WithMetadataCatalogConfig(MetadataCatalogConfigT&& value) {
223 SetMetadataCatalogConfig(std::forward<MetadataCatalogConfigT>(value));
224 return *this;
225 }
227
229
242 inline const Aws::String& GetClientToken() const { return m_clientToken; }
243 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
244 template <typename ClientTokenT = Aws::String>
245 void SetClientToken(ClientTokenT&& value) {
246 m_clientTokenHasBeenSet = true;
247 m_clientToken = std::forward<ClientTokenT>(value);
248 }
249 template <typename ClientTokenT = Aws::String>
250 CreateFlowRequest& WithClientToken(ClientTokenT&& value) {
251 SetClientToken(std::forward<ClientTokenT>(value));
252 return *this;
253 }
255 private:
256 Aws::String m_flowName;
257
258 Aws::String m_description;
259
260 Aws::String m_kmsArn;
261
262 TriggerConfig m_triggerConfig;
263
264 SourceFlowConfig m_sourceFlowConfig;
265
266 Aws::Vector<DestinationFlowConfig> m_destinationFlowConfigList;
267
268 Aws::Vector<Task> m_tasks;
269
271
272 MetadataCatalogConfig m_metadataCatalogConfig;
273
275 bool m_flowNameHasBeenSet = false;
276 bool m_descriptionHasBeenSet = false;
277 bool m_kmsArnHasBeenSet = false;
278 bool m_triggerConfigHasBeenSet = false;
279 bool m_sourceFlowConfigHasBeenSet = false;
280 bool m_destinationFlowConfigListHasBeenSet = false;
281 bool m_tasksHasBeenSet = false;
282 bool m_tagsHasBeenSet = false;
283 bool m_metadataCatalogConfigHasBeenSet = false;
284 bool m_clientTokenHasBeenSet = true;
285};
286
287} // namespace Model
288} // namespace Appflow
289} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateFlowRequest & WithTriggerConfig(TriggerConfigT &&value)
CreateFlowRequest & WithFlowName(FlowNameT &&value)
void SetSourceFlowConfig(SourceFlowConfigT &&value)
const Aws::String & GetKmsArn() const
CreateFlowRequest & WithMetadataCatalogConfig(MetadataCatalogConfigT &&value)
CreateFlowRequest & AddDestinationFlowConfigList(DestinationFlowConfigListT &&value)
CreateFlowRequest & WithTags(TagsT &&value)
const TriggerConfig & GetTriggerConfig() const
CreateFlowRequest & AddTasks(TasksT &&value)
CreateFlowRequest & WithClientToken(ClientTokenT &&value)
void SetMetadataCatalogConfig(MetadataCatalogConfigT &&value)
const MetadataCatalogConfig & GetMetadataCatalogConfig() const
CreateFlowRequest & WithSourceFlowConfig(SourceFlowConfigT &&value)
const Aws::String & GetFlowName() const
virtual const char * GetServiceRequestName() const override
const SourceFlowConfig & GetSourceFlowConfig() const
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
const Aws::Vector< DestinationFlowConfig > & GetDestinationFlowConfigList() const
CreateFlowRequest & WithDestinationFlowConfigList(DestinationFlowConfigListT &&value)
CreateFlowRequest & WithDescription(DescriptionT &&value)
CreateFlowRequest & WithTasks(TasksT &&value)
AWS_APPFLOW_API Aws::String SerializePayload() const override
CreateFlowRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_APPFLOW_API CreateFlowRequest()=default
void SetTriggerConfig(TriggerConfigT &&value)
void SetDestinationFlowConfigList(DestinationFlowConfigListT &&value)
CreateFlowRequest & WithKmsArn(KmsArnT &&value)
const Aws::Vector< Task > & GetTasks() const
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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
std::vector< T, Aws::Allocator< T > > Vector