AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFlowRequest.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/AppflowRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appflow/model/TriggerConfig.h>
11#include <aws/appflow/model/SourceFlowConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/appflow/model/MetadataCatalogConfig.h>
15#include <aws/appflow/model/DestinationFlowConfig.h>
16#include <aws/appflow/model/Task.h>
17#include <utility>
18#include <aws/core/utils/UUID.h>
19
20namespace Aws
21{
22namespace Appflow
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_APPFLOW_API CreateFlowRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateFlow"; }
39
40 AWS_APPFLOW_API Aws::String SerializePayload() const override;
41
42
44
48 inline const Aws::String& GetFlowName() const{ return m_flowName; }
49 inline bool FlowNameHasBeenSet() const { return m_flowNameHasBeenSet; }
50 inline void SetFlowName(const Aws::String& value) { m_flowNameHasBeenSet = true; m_flowName = value; }
51 inline void SetFlowName(Aws::String&& value) { m_flowNameHasBeenSet = true; m_flowName = std::move(value); }
52 inline void SetFlowName(const char* value) { m_flowNameHasBeenSet = true; m_flowName.assign(value); }
53 inline CreateFlowRequest& WithFlowName(const Aws::String& value) { SetFlowName(value); return *this;}
54 inline CreateFlowRequest& WithFlowName(Aws::String&& value) { SetFlowName(std::move(value)); return *this;}
55 inline CreateFlowRequest& WithFlowName(const char* value) { SetFlowName(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline CreateFlowRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline CreateFlowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline CreateFlowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
79 inline const Aws::String& GetKmsArn() const{ return m_kmsArn; }
80 inline bool KmsArnHasBeenSet() const { return m_kmsArnHasBeenSet; }
81 inline void SetKmsArn(const Aws::String& value) { m_kmsArnHasBeenSet = true; m_kmsArn = value; }
82 inline void SetKmsArn(Aws::String&& value) { m_kmsArnHasBeenSet = true; m_kmsArn = std::move(value); }
83 inline void SetKmsArn(const char* value) { m_kmsArnHasBeenSet = true; m_kmsArn.assign(value); }
84 inline CreateFlowRequest& WithKmsArn(const Aws::String& value) { SetKmsArn(value); return *this;}
85 inline CreateFlowRequest& WithKmsArn(Aws::String&& value) { SetKmsArn(std::move(value)); return *this;}
86 inline CreateFlowRequest& WithKmsArn(const char* value) { SetKmsArn(value); return *this;}
88
90
93 inline const TriggerConfig& GetTriggerConfig() const{ return m_triggerConfig; }
94 inline bool TriggerConfigHasBeenSet() const { return m_triggerConfigHasBeenSet; }
95 inline void SetTriggerConfig(const TriggerConfig& value) { m_triggerConfigHasBeenSet = true; m_triggerConfig = value; }
96 inline void SetTriggerConfig(TriggerConfig&& value) { m_triggerConfigHasBeenSet = true; m_triggerConfig = std::move(value); }
97 inline CreateFlowRequest& WithTriggerConfig(const TriggerConfig& value) { SetTriggerConfig(value); return *this;}
98 inline CreateFlowRequest& WithTriggerConfig(TriggerConfig&& value) { SetTriggerConfig(std::move(value)); return *this;}
100
102
106 inline const SourceFlowConfig& GetSourceFlowConfig() const{ return m_sourceFlowConfig; }
107 inline bool SourceFlowConfigHasBeenSet() const { return m_sourceFlowConfigHasBeenSet; }
108 inline void SetSourceFlowConfig(const SourceFlowConfig& value) { m_sourceFlowConfigHasBeenSet = true; m_sourceFlowConfig = value; }
109 inline void SetSourceFlowConfig(SourceFlowConfig&& value) { m_sourceFlowConfigHasBeenSet = true; m_sourceFlowConfig = std::move(value); }
110 inline CreateFlowRequest& WithSourceFlowConfig(const SourceFlowConfig& value) { SetSourceFlowConfig(value); return *this;}
111 inline CreateFlowRequest& WithSourceFlowConfig(SourceFlowConfig&& value) { SetSourceFlowConfig(std::move(value)); return *this;}
113
115
119 inline const Aws::Vector<DestinationFlowConfig>& GetDestinationFlowConfigList() const{ return m_destinationFlowConfigList; }
120 inline bool DestinationFlowConfigListHasBeenSet() const { return m_destinationFlowConfigListHasBeenSet; }
121 inline void SetDestinationFlowConfigList(const Aws::Vector<DestinationFlowConfig>& value) { m_destinationFlowConfigListHasBeenSet = true; m_destinationFlowConfigList = value; }
122 inline void SetDestinationFlowConfigList(Aws::Vector<DestinationFlowConfig>&& value) { m_destinationFlowConfigListHasBeenSet = true; m_destinationFlowConfigList = std::move(value); }
125 inline CreateFlowRequest& AddDestinationFlowConfigList(const DestinationFlowConfig& value) { m_destinationFlowConfigListHasBeenSet = true; m_destinationFlowConfigList.push_back(value); return *this; }
126 inline CreateFlowRequest& AddDestinationFlowConfigList(DestinationFlowConfig&& value) { m_destinationFlowConfigListHasBeenSet = true; m_destinationFlowConfigList.push_back(std::move(value)); return *this; }
128
130
134 inline const Aws::Vector<Task>& GetTasks() const{ return m_tasks; }
135 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
136 inline void SetTasks(const Aws::Vector<Task>& value) { m_tasksHasBeenSet = true; m_tasks = value; }
137 inline void SetTasks(Aws::Vector<Task>&& value) { m_tasksHasBeenSet = true; m_tasks = std::move(value); }
138 inline CreateFlowRequest& WithTasks(const Aws::Vector<Task>& value) { SetTasks(value); return *this;}
139 inline CreateFlowRequest& WithTasks(Aws::Vector<Task>&& value) { SetTasks(std::move(value)); return *this;}
140 inline CreateFlowRequest& AddTasks(const Task& value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; }
141 inline CreateFlowRequest& AddTasks(Task&& value) { m_tasksHasBeenSet = true; m_tasks.push_back(std::move(value)); return *this; }
143
145
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
151 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
152 inline CreateFlowRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
153 inline CreateFlowRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
154 inline CreateFlowRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
155 inline CreateFlowRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
156 inline CreateFlowRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
157 inline CreateFlowRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
158 inline CreateFlowRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
159 inline CreateFlowRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
160 inline CreateFlowRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
162
164
169 inline const MetadataCatalogConfig& GetMetadataCatalogConfig() const{ return m_metadataCatalogConfig; }
170 inline bool MetadataCatalogConfigHasBeenSet() const { return m_metadataCatalogConfigHasBeenSet; }
171 inline void SetMetadataCatalogConfig(const MetadataCatalogConfig& value) { m_metadataCatalogConfigHasBeenSet = true; m_metadataCatalogConfig = value; }
172 inline void SetMetadataCatalogConfig(MetadataCatalogConfig&& value) { m_metadataCatalogConfigHasBeenSet = true; m_metadataCatalogConfig = std::move(value); }
176
178
191 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
192 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
193 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
194 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
195 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
196 inline CreateFlowRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
197 inline CreateFlowRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
198 inline CreateFlowRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
200 private:
201
202 Aws::String m_flowName;
203 bool m_flowNameHasBeenSet = false;
204
205 Aws::String m_description;
206 bool m_descriptionHasBeenSet = false;
207
208 Aws::String m_kmsArn;
209 bool m_kmsArnHasBeenSet = false;
210
211 TriggerConfig m_triggerConfig;
212 bool m_triggerConfigHasBeenSet = false;
213
214 SourceFlowConfig m_sourceFlowConfig;
215 bool m_sourceFlowConfigHasBeenSet = false;
216
217 Aws::Vector<DestinationFlowConfig> m_destinationFlowConfigList;
218 bool m_destinationFlowConfigListHasBeenSet = false;
219
220 Aws::Vector<Task> m_tasks;
221 bool m_tasksHasBeenSet = false;
222
224 bool m_tagsHasBeenSet = false;
225
226 MetadataCatalogConfig m_metadataCatalogConfig;
227 bool m_metadataCatalogConfigHasBeenSet = false;
228
229 Aws::String m_clientToken;
230 bool m_clientTokenHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace Appflow
235} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateFlowRequest & WithClientToken(Aws::String &&value)
CreateFlowRequest & WithMetadataCatalogConfig(MetadataCatalogConfig &&value)
CreateFlowRequest & WithDestinationFlowConfigList(Aws::Vector< DestinationFlowConfig > &&value)
const Aws::String & GetKmsArn() const
CreateFlowRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateFlowRequest & WithSourceFlowConfig(const SourceFlowConfig &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const TriggerConfig & GetTriggerConfig() const
void SetDescription(const Aws::String &value)
CreateFlowRequest & WithKmsArn(Aws::String &&value)
CreateFlowRequest & AddTags(const char *key, Aws::String &&value)
CreateFlowRequest & WithTasks(const Aws::Vector< Task > &value)
CreateFlowRequest & WithMetadataCatalogConfig(const MetadataCatalogConfig &value)
const MetadataCatalogConfig & GetMetadataCatalogConfig() const
CreateFlowRequest & WithTriggerConfig(TriggerConfig &&value)
void SetTasks(Aws::Vector< Task > &&value)
CreateFlowRequest & WithKmsArn(const Aws::String &value)
CreateFlowRequest & WithFlowName(Aws::String &&value)
CreateFlowRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetSourceFlowConfig(SourceFlowConfig &&value)
const Aws::String & GetFlowName() const
CreateFlowRequest & AddDestinationFlowConfigList(const DestinationFlowConfig &value)
void SetTriggerConfig(const TriggerConfig &value)
CreateFlowRequest & AddTags(Aws::String &&key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetMetadataCatalogConfig(MetadataCatalogConfig &&value)
CreateFlowRequest & WithTriggerConfig(const TriggerConfig &value)
void SetSourceFlowConfig(const SourceFlowConfig &value)
const SourceFlowConfig & GetSourceFlowConfig() const
void SetClientToken(const Aws::String &value)
CreateFlowRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetClientToken() const
const Aws::Vector< DestinationFlowConfig > & GetDestinationFlowConfigList() const
CreateFlowRequest & WithDescription(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetKmsArn(const Aws::String &value)
CreateFlowRequest & AddDestinationFlowConfigList(DestinationFlowConfig &&value)
AWS_APPFLOW_API Aws::String SerializePayload() const override
CreateFlowRequest & WithFlowName(const char *value)
void SetFlowName(const Aws::String &value)
CreateFlowRequest & WithDescription(const Aws::String &value)
void SetDestinationFlowConfigList(Aws::Vector< DestinationFlowConfig > &&value)
CreateFlowRequest & AddTasks(const Task &value)
CreateFlowRequest & WithKmsArn(const char *value)
CreateFlowRequest & WithSourceFlowConfig(SourceFlowConfig &&value)
CreateFlowRequest & AddTags(Aws::String &&key, const char *value)
void SetTasks(const Aws::Vector< Task > &value)
void SetDestinationFlowConfigList(const Aws::Vector< DestinationFlowConfig > &value)
CreateFlowRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateFlowRequest & WithFlowName(const Aws::String &value)
const Aws::Vector< Task > & GetTasks() const
CreateFlowRequest & WithClientToken(const char *value)
CreateFlowRequest & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::String & GetDescription() const
CreateFlowRequest & WithDestinationFlowConfigList(const Aws::Vector< DestinationFlowConfig > &value)
CreateFlowRequest & WithClientToken(const Aws::String &value)
void SetMetadataCatalogConfig(const MetadataCatalogConfig &value)
void SetTriggerConfig(TriggerConfig &&value)
CreateFlowRequest & AddTags(const char *key, const char *value)
CreateFlowRequest & WithDescription(const char *value)
void SetDescription(Aws::String &&value)
CreateFlowRequest & AddTasks(Task &&value)
CreateFlowRequest & WithTasks(Aws::Vector< Task > &&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
std::vector< T, Aws::Allocator< T > > Vector