AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateFlowRequest.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/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Appflow {
22namespace Model {
23
27 public:
28 AWS_APPFLOW_API UpdateFlowRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateFlow"; }
35
36 AWS_APPFLOW_API Aws::String SerializePayload() const override;
37
39
43 inline const Aws::String& GetFlowName() const { return m_flowName; }
44 inline bool FlowNameHasBeenSet() const { return m_flowNameHasBeenSet; }
45 template <typename FlowNameT = Aws::String>
46 void SetFlowName(FlowNameT&& value) {
47 m_flowNameHasBeenSet = true;
48 m_flowName = std::forward<FlowNameT>(value);
49 }
50 template <typename FlowNameT = Aws::String>
51 UpdateFlowRequest& WithFlowName(FlowNameT&& value) {
52 SetFlowName(std::forward<FlowNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 UpdateFlowRequest& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const TriggerConfig& GetTriggerConfig() const { return m_triggerConfig; }
80 inline bool TriggerConfigHasBeenSet() const { return m_triggerConfigHasBeenSet; }
81 template <typename TriggerConfigT = TriggerConfig>
82 void SetTriggerConfig(TriggerConfigT&& value) {
83 m_triggerConfigHasBeenSet = true;
84 m_triggerConfig = std::forward<TriggerConfigT>(value);
85 }
86 template <typename TriggerConfigT = TriggerConfig>
87 UpdateFlowRequest& WithTriggerConfig(TriggerConfigT&& value) {
88 SetTriggerConfig(std::forward<TriggerConfigT>(value));
89 return *this;
90 }
92
94
95 inline const SourceFlowConfig& GetSourceFlowConfig() const { return m_sourceFlowConfig; }
96 inline bool SourceFlowConfigHasBeenSet() const { return m_sourceFlowConfigHasBeenSet; }
97 template <typename SourceFlowConfigT = SourceFlowConfig>
98 void SetSourceFlowConfig(SourceFlowConfigT&& value) {
99 m_sourceFlowConfigHasBeenSet = true;
100 m_sourceFlowConfig = std::forward<SourceFlowConfigT>(value);
101 }
102 template <typename SourceFlowConfigT = SourceFlowConfig>
103 UpdateFlowRequest& WithSourceFlowConfig(SourceFlowConfigT&& value) {
104 SetSourceFlowConfig(std::forward<SourceFlowConfigT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Vector<DestinationFlowConfig>& GetDestinationFlowConfigList() const { return m_destinationFlowConfigList; }
115 inline bool DestinationFlowConfigListHasBeenSet() const { return m_destinationFlowConfigListHasBeenSet; }
116 template <typename DestinationFlowConfigListT = Aws::Vector<DestinationFlowConfig>>
117 void SetDestinationFlowConfigList(DestinationFlowConfigListT&& value) {
118 m_destinationFlowConfigListHasBeenSet = true;
119 m_destinationFlowConfigList = std::forward<DestinationFlowConfigListT>(value);
120 }
121 template <typename DestinationFlowConfigListT = Aws::Vector<DestinationFlowConfig>>
122 UpdateFlowRequest& WithDestinationFlowConfigList(DestinationFlowConfigListT&& value) {
123 SetDestinationFlowConfigList(std::forward<DestinationFlowConfigListT>(value));
124 return *this;
125 }
126 template <typename DestinationFlowConfigListT = DestinationFlowConfig>
127 UpdateFlowRequest& AddDestinationFlowConfigList(DestinationFlowConfigListT&& value) {
128 m_destinationFlowConfigListHasBeenSet = true;
129 m_destinationFlowConfigList.emplace_back(std::forward<DestinationFlowConfigListT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Vector<Task>& GetTasks() const { return m_tasks; }
140 inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; }
141 template <typename TasksT = Aws::Vector<Task>>
142 void SetTasks(TasksT&& value) {
143 m_tasksHasBeenSet = true;
144 m_tasks = std::forward<TasksT>(value);
145 }
146 template <typename TasksT = Aws::Vector<Task>>
147 UpdateFlowRequest& WithTasks(TasksT&& value) {
148 SetTasks(std::forward<TasksT>(value));
149 return *this;
150 }
151 template <typename TasksT = Task>
152 UpdateFlowRequest& AddTasks(TasksT&& value) {
153 m_tasksHasBeenSet = true;
154 m_tasks.emplace_back(std::forward<TasksT>(value));
155 return *this;
156 }
158
160
165 inline const MetadataCatalogConfig& GetMetadataCatalogConfig() const { return m_metadataCatalogConfig; }
166 inline bool MetadataCatalogConfigHasBeenSet() const { return m_metadataCatalogConfigHasBeenSet; }
167 template <typename MetadataCatalogConfigT = MetadataCatalogConfig>
168 void SetMetadataCatalogConfig(MetadataCatalogConfigT&& value) {
169 m_metadataCatalogConfigHasBeenSet = true;
170 m_metadataCatalogConfig = std::forward<MetadataCatalogConfigT>(value);
171 }
172 template <typename MetadataCatalogConfigT = MetadataCatalogConfig>
173 UpdateFlowRequest& WithMetadataCatalogConfig(MetadataCatalogConfigT&& value) {
174 SetMetadataCatalogConfig(std::forward<MetadataCatalogConfigT>(value));
175 return *this;
176 }
178
180
193 inline const Aws::String& GetClientToken() const { return m_clientToken; }
194 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
195 template <typename ClientTokenT = Aws::String>
196 void SetClientToken(ClientTokenT&& value) {
197 m_clientTokenHasBeenSet = true;
198 m_clientToken = std::forward<ClientTokenT>(value);
199 }
200 template <typename ClientTokenT = Aws::String>
201 UpdateFlowRequest& WithClientToken(ClientTokenT&& value) {
202 SetClientToken(std::forward<ClientTokenT>(value));
203 return *this;
204 }
206 private:
207 Aws::String m_flowName;
208
209 Aws::String m_description;
210
211 TriggerConfig m_triggerConfig;
212
213 SourceFlowConfig m_sourceFlowConfig;
214
215 Aws::Vector<DestinationFlowConfig> m_destinationFlowConfigList;
216
217 Aws::Vector<Task> m_tasks;
218
219 MetadataCatalogConfig m_metadataCatalogConfig;
220
222 bool m_flowNameHasBeenSet = false;
223 bool m_descriptionHasBeenSet = false;
224 bool m_triggerConfigHasBeenSet = false;
225 bool m_sourceFlowConfigHasBeenSet = false;
226 bool m_destinationFlowConfigListHasBeenSet = false;
227 bool m_tasksHasBeenSet = false;
228 bool m_metadataCatalogConfigHasBeenSet = false;
229 bool m_clientTokenHasBeenSet = true;
230};
231
232} // namespace Model
233} // namespace Appflow
234} // namespace Aws
UpdateFlowRequest & WithClientToken(ClientTokenT &&value)
UpdateFlowRequest & WithMetadataCatalogConfig(MetadataCatalogConfigT &&value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
UpdateFlowRequest & WithTasks(TasksT &&value)
const TriggerConfig & GetTriggerConfig() const
UpdateFlowRequest & WithTriggerConfig(TriggerConfigT &&value)
UpdateFlowRequest & WithFlowName(FlowNameT &&value)
AWS_APPFLOW_API UpdateFlowRequest()=default
void SetSourceFlowConfig(SourceFlowConfigT &&value)
UpdateFlowRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
void SetTriggerConfig(TriggerConfigT &&value)
UpdateFlowRequest & WithDestinationFlowConfigList(DestinationFlowConfigListT &&value)
const Aws::Vector< Task > & GetTasks() const
const SourceFlowConfig & GetSourceFlowConfig() const
void SetDestinationFlowConfigList(DestinationFlowConfigListT &&value)
const Aws::Vector< DestinationFlowConfig > & GetDestinationFlowConfigList() const
const MetadataCatalogConfig & GetMetadataCatalogConfig() const
UpdateFlowRequest & AddTasks(TasksT &&value)
const Aws::String & GetDescription() const
UpdateFlowRequest & AddDestinationFlowConfigList(DestinationFlowConfigListT &&value)
const Aws::String & GetFlowName() const
UpdateFlowRequest & WithSourceFlowConfig(SourceFlowConfigT &&value)
void SetMetadataCatalogConfig(MetadataCatalogConfigT &&value)
AWS_APPFLOW_API Aws::String SerializePayload() const override
void SetDescription(DescriptionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector