AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateDataIntegrationFlowRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/supplychain/SupplyChainRequest.h>
11#include <aws/supplychain/SupplyChain_EXPORTS.h>
12#include <aws/supplychain/model/DataIntegrationFlowSource.h>
13#include <aws/supplychain/model/DataIntegrationFlowTarget.h>
14#include <aws/supplychain/model/DataIntegrationFlowTransformation.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SupplyChain {
20namespace Model {
21
29 public:
30 AWS_SUPPLYCHAIN_API CreateDataIntegrationFlowRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateDataIntegrationFlow"; }
37
38 AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
45 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 template <typename InstanceIdT = Aws::String>
47 void SetInstanceId(InstanceIdT&& value) {
48 m_instanceIdHasBeenSet = true;
49 m_instanceId = std::forward<InstanceIdT>(value);
50 }
51 template <typename InstanceIdT = Aws::String>
53 SetInstanceId(std::forward<InstanceIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<DataIntegrationFlowSource>& GetSources() const { return m_sources; }
81 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
82 template <typename SourcesT = Aws::Vector<DataIntegrationFlowSource>>
83 void SetSources(SourcesT&& value) {
84 m_sourcesHasBeenSet = true;
85 m_sources = std::forward<SourcesT>(value);
86 }
87 template <typename SourcesT = Aws::Vector<DataIntegrationFlowSource>>
89 SetSources(std::forward<SourcesT>(value));
90 return *this;
91 }
92 template <typename SourcesT = DataIntegrationFlowSource>
94 m_sourcesHasBeenSet = true;
95 m_sources.emplace_back(std::forward<SourcesT>(value));
96 return *this;
97 }
99
101
104 inline const DataIntegrationFlowTransformation& GetTransformation() const { return m_transformation; }
105 inline bool TransformationHasBeenSet() const { return m_transformationHasBeenSet; }
106 template <typename TransformationT = DataIntegrationFlowTransformation>
107 void SetTransformation(TransformationT&& value) {
108 m_transformationHasBeenSet = true;
109 m_transformation = std::forward<TransformationT>(value);
110 }
111 template <typename TransformationT = DataIntegrationFlowTransformation>
113 SetTransformation(std::forward<TransformationT>(value));
114 return *this;
115 }
117
119
122 inline const DataIntegrationFlowTarget& GetTarget() const { return m_target; }
123 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
124 template <typename TargetT = DataIntegrationFlowTarget>
125 void SetTarget(TargetT&& value) {
126 m_targetHasBeenSet = true;
127 m_target = std::forward<TargetT>(value);
128 }
129 template <typename TargetT = DataIntegrationFlowTarget>
131 SetTarget(std::forward<TargetT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 void SetTags(TagsT&& value) {
144 m_tagsHasBeenSet = true;
145 m_tags = std::forward<TagsT>(value);
146 }
147 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 SetTags(std::forward<TagsT>(value));
150 return *this;
151 }
152 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
153 CreateDataIntegrationFlowRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
154 m_tagsHasBeenSet = true;
155 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_instanceId;
161
162 Aws::String m_name;
163
165
166 DataIntegrationFlowTransformation m_transformation;
167
169
171 bool m_instanceIdHasBeenSet = false;
172 bool m_nameHasBeenSet = false;
173 bool m_sourcesHasBeenSet = false;
174 bool m_transformationHasBeenSet = false;
175 bool m_targetHasBeenSet = false;
176 bool m_tagsHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace SupplyChain
181} // namespace Aws
CreateDataIntegrationFlowRequest & WithTarget(TargetT &&value)
CreateDataIntegrationFlowRequest & WithTransformation(TransformationT &&value)
CreateDataIntegrationFlowRequest & WithInstanceId(InstanceIdT &&value)
const Aws::Vector< DataIntegrationFlowSource > & GetSources() const
CreateDataIntegrationFlowRequest & AddSources(SourcesT &&value)
const DataIntegrationFlowTransformation & GetTransformation() const
CreateDataIntegrationFlowRequest & WithSources(SourcesT &&value)
AWS_SUPPLYCHAIN_API CreateDataIntegrationFlowRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDataIntegrationFlowRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override
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