AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename FlowNameT = Aws::String>
51 void SetFlowName(FlowNameT&& value) { m_flowNameHasBeenSet = true; m_flowName = std::forward<FlowNameT>(value); }
52 template<typename FlowNameT = Aws::String>
53 CreateFlowRequest& WithFlowName(FlowNameT&& value) { SetFlowName(std::forward<FlowNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template<typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 CreateFlowRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
75 inline const Aws::String& GetKmsArn() const { return m_kmsArn; }
76 inline bool KmsArnHasBeenSet() const { return m_kmsArnHasBeenSet; }
77 template<typename KmsArnT = Aws::String>
78 void SetKmsArn(KmsArnT&& value) { m_kmsArnHasBeenSet = true; m_kmsArn = std::forward<KmsArnT>(value); }
79 template<typename KmsArnT = Aws::String>
80 CreateFlowRequest& WithKmsArn(KmsArnT&& value) { SetKmsArn(std::forward<KmsArnT>(value)); return *this;}
82
84
87 inline const TriggerConfig& GetTriggerConfig() const { return m_triggerConfig; }
88 inline bool TriggerConfigHasBeenSet() const { return m_triggerConfigHasBeenSet; }
89 template<typename TriggerConfigT = TriggerConfig>
90 void SetTriggerConfig(TriggerConfigT&& value) { m_triggerConfigHasBeenSet = true; m_triggerConfig = std::forward<TriggerConfigT>(value); }
91 template<typename TriggerConfigT = TriggerConfig>
92 CreateFlowRequest& WithTriggerConfig(TriggerConfigT&& value) { SetTriggerConfig(std::forward<TriggerConfigT>(value)); return *this;}
94
96
100 inline const SourceFlowConfig& GetSourceFlowConfig() const { return m_sourceFlowConfig; }
101 inline bool SourceFlowConfigHasBeenSet() const { return m_sourceFlowConfigHasBeenSet; }
102 template<typename SourceFlowConfigT = SourceFlowConfig>
103 void SetSourceFlowConfig(SourceFlowConfigT&& value) { m_sourceFlowConfigHasBeenSet = true; m_sourceFlowConfig = std::forward<SourceFlowConfigT>(value); }
104 template<typename SourceFlowConfigT = SourceFlowConfig>
105 CreateFlowRequest& WithSourceFlowConfig(SourceFlowConfigT&& value) { SetSourceFlowConfig(std::forward<SourceFlowConfigT>(value)); return *this;}
107
109
113 inline const Aws::Vector<DestinationFlowConfig>& GetDestinationFlowConfigList() const { return m_destinationFlowConfigList; }
114 inline bool DestinationFlowConfigListHasBeenSet() const { return m_destinationFlowConfigListHasBeenSet; }
115 template<typename DestinationFlowConfigListT = Aws::Vector<DestinationFlowConfig>>
116 void SetDestinationFlowConfigList(DestinationFlowConfigListT&& value) { m_destinationFlowConfigListHasBeenSet = true; m_destinationFlowConfigList = std::forward<DestinationFlowConfigListT>(value); }
117 template<typename DestinationFlowConfigListT = Aws::Vector<DestinationFlowConfig>>
118 CreateFlowRequest& WithDestinationFlowConfigList(DestinationFlowConfigListT&& value) { SetDestinationFlowConfigList(std::forward<DestinationFlowConfigListT>(value)); return *this;}
119 template<typename DestinationFlowConfigListT = DestinationFlowConfig>
120 CreateFlowRequest& AddDestinationFlowConfigList(DestinationFlowConfigListT&& value) { m_destinationFlowConfigListHasBeenSet = true; m_destinationFlowConfigList.emplace_back(std::forward<DestinationFlowConfigListT>(value)); return *this; }
122
124
128 inline const Aws::Vector<Task>& GetTasks() const { return m_tasks; }
129 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
130 template<typename TasksT = Aws::Vector<Task>>
131 void SetTasks(TasksT&& value) { m_tasksHasBeenSet = true; m_tasks = std::forward<TasksT>(value); }
132 template<typename TasksT = Aws::Vector<Task>>
133 CreateFlowRequest& WithTasks(TasksT&& value) { SetTasks(std::forward<TasksT>(value)); return *this;}
134 template<typename TasksT = Task>
135 CreateFlowRequest& AddTasks(TasksT&& value) { m_tasksHasBeenSet = true; m_tasks.emplace_back(std::forward<TasksT>(value)); return *this; }
137
139
142 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
146 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 CreateFlowRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
148 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 CreateFlowRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
150 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
151 }
153
155
160 inline const MetadataCatalogConfig& GetMetadataCatalogConfig() const { return m_metadataCatalogConfig; }
161 inline bool MetadataCatalogConfigHasBeenSet() const { return m_metadataCatalogConfigHasBeenSet; }
162 template<typename MetadataCatalogConfigT = MetadataCatalogConfig>
163 void SetMetadataCatalogConfig(MetadataCatalogConfigT&& value) { m_metadataCatalogConfigHasBeenSet = true; m_metadataCatalogConfig = std::forward<MetadataCatalogConfigT>(value); }
164 template<typename MetadataCatalogConfigT = MetadataCatalogConfig>
165 CreateFlowRequest& WithMetadataCatalogConfig(MetadataCatalogConfigT&& value) { SetMetadataCatalogConfig(std::forward<MetadataCatalogConfigT>(value)); return *this;}
167
169
182 inline const Aws::String& GetClientToken() const { return m_clientToken; }
183 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
184 template<typename ClientTokenT = Aws::String>
185 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
186 template<typename ClientTokenT = Aws::String>
187 CreateFlowRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
189 private:
190
191 Aws::String m_flowName;
192 bool m_flowNameHasBeenSet = false;
193
194 Aws::String m_description;
195 bool m_descriptionHasBeenSet = false;
196
197 Aws::String m_kmsArn;
198 bool m_kmsArnHasBeenSet = false;
199
200 TriggerConfig m_triggerConfig;
201 bool m_triggerConfigHasBeenSet = false;
202
203 SourceFlowConfig m_sourceFlowConfig;
204 bool m_sourceFlowConfigHasBeenSet = false;
205
206 Aws::Vector<DestinationFlowConfig> m_destinationFlowConfigList;
207 bool m_destinationFlowConfigListHasBeenSet = false;
208
209 Aws::Vector<Task> m_tasks;
210 bool m_tasksHasBeenSet = false;
211
213 bool m_tagsHasBeenSet = false;
214
215 MetadataCatalogConfig m_metadataCatalogConfig;
216 bool m_metadataCatalogConfigHasBeenSet = false;
217
219 bool m_clientTokenHasBeenSet = true;
220 };
221
222} // namespace Model
223} // namespace Appflow
224} // 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