AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateConnectionRequest.h
1
6#pragma once
7#include <aws/context/ContextRequest.h>
8#include <aws/context/Context_EXPORTS.h>
9#include <aws/context/model/AccessConfig.h>
10#include <aws/context/model/DataSourceReference.h>
11#include <aws/context/model/DataSourceScope.h>
12#include <aws/context/model/GlueConnectionMapping.h>
13#include <aws/context/model/IngestionConfig.h>
14#include <aws/context/model/SyncSchedule.h>
15#include <aws/core/utils/UUID.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Context {
24namespace Model {
25
29 public:
30 AWS_CONTEXT_API CreateConnectionRequest() = 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 "CreateConnection"; }
37
38 AWS_CONTEXT_API Aws::String SerializePayload() const override;
39
41
43
52 inline const Aws::String& GetClientToken() const { return m_clientToken; }
53 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
54 template <typename ClientTokenT = Aws::String>
55 void SetClientToken(ClientTokenT&& value) {
56 m_clientTokenHasBeenSet = true;
57 m_clientToken = std::forward<ClientTokenT>(value);
58 }
59 template <typename ClientTokenT = Aws::String>
61 SetClientToken(std::forward<ClientTokenT>(value));
62 return *this;
63 }
65
67
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template <typename NameT = Aws::String>
75 void SetName(NameT&& value) {
76 m_nameHasBeenSet = true;
77 m_name = std::forward<NameT>(value);
78 }
79 template <typename NameT = Aws::String>
81 SetName(std::forward<NameT>(value));
82 return *this;
83 }
85
87
105 inline const DataSourceReference& GetDataSource() const { return m_dataSource; }
106 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
107 template <typename DataSourceT = DataSourceReference>
108 void SetDataSource(DataSourceT&& value) {
109 m_dataSourceHasBeenSet = true;
110 m_dataSource = std::forward<DataSourceT>(value);
111 }
112 template <typename DataSourceT = DataSourceReference>
114 SetDataSource(std::forward<DataSourceT>(value));
115 return *this;
116 }
118
120
130 inline const DataSourceScope& GetScope() const { return m_scope; }
131 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
132 template <typename ScopeT = DataSourceScope>
133 void SetScope(ScopeT&& value) {
134 m_scopeHasBeenSet = true;
135 m_scope = std::forward<ScopeT>(value);
136 }
137 template <typename ScopeT = DataSourceScope>
139 SetScope(std::forward<ScopeT>(value));
140 return *this;
141 }
143
145
163 inline const AccessConfig& GetAccessConfig() const { return m_accessConfig; }
164 inline bool AccessConfigHasBeenSet() const { return m_accessConfigHasBeenSet; }
165 template <typename AccessConfigT = AccessConfig>
166 void SetAccessConfig(AccessConfigT&& value) {
167 m_accessConfigHasBeenSet = true;
168 m_accessConfig = std::forward<AccessConfigT>(value);
169 }
170 template <typename AccessConfigT = AccessConfig>
172 SetAccessConfig(std::forward<AccessConfigT>(value));
173 return *this;
174 }
176
178
185 inline const SyncSchedule& GetSyncSchedule() const { return m_syncSchedule; }
186 inline bool SyncScheduleHasBeenSet() const { return m_syncScheduleHasBeenSet; }
187 template <typename SyncScheduleT = SyncSchedule>
188 void SetSyncSchedule(SyncScheduleT&& value) {
189 m_syncScheduleHasBeenSet = true;
190 m_syncSchedule = std::forward<SyncScheduleT>(value);
191 }
192 template <typename SyncScheduleT = SyncSchedule>
194 SetSyncSchedule(std::forward<SyncScheduleT>(value));
195 return *this;
196 }
198
200
209 inline const IngestionConfig& GetIngestionConfig() const { return m_ingestionConfig; }
210 inline bool IngestionConfigHasBeenSet() const { return m_ingestionConfigHasBeenSet; }
211 template <typename IngestionConfigT = IngestionConfig>
212 void SetIngestionConfig(IngestionConfigT&& value) {
213 m_ingestionConfigHasBeenSet = true;
214 m_ingestionConfig = std::forward<IngestionConfigT>(value);
215 }
216 template <typename IngestionConfigT = IngestionConfig>
217 CreateConnectionRequest& WithIngestionConfig(IngestionConfigT&& value) {
218 SetIngestionConfig(std::forward<IngestionConfigT>(value));
219 return *this;
220 }
222
224
248 inline const Aws::Vector<GlueConnectionMapping>& GetGlueConnectionMappings() const { return m_glueConnectionMappings; }
249 inline bool GlueConnectionMappingsHasBeenSet() const { return m_glueConnectionMappingsHasBeenSet; }
250 template <typename GlueConnectionMappingsT = Aws::Vector<GlueConnectionMapping>>
251 void SetGlueConnectionMappings(GlueConnectionMappingsT&& value) {
252 m_glueConnectionMappingsHasBeenSet = true;
253 m_glueConnectionMappings = std::forward<GlueConnectionMappingsT>(value);
254 }
255 template <typename GlueConnectionMappingsT = Aws::Vector<GlueConnectionMapping>>
256 CreateConnectionRequest& WithGlueConnectionMappings(GlueConnectionMappingsT&& value) {
257 SetGlueConnectionMappings(std::forward<GlueConnectionMappingsT>(value));
258 return *this;
259 }
260 template <typename GlueConnectionMappingsT = GlueConnectionMapping>
261 CreateConnectionRequest& AddGlueConnectionMappings(GlueConnectionMappingsT&& value) {
262 m_glueConnectionMappingsHasBeenSet = true;
263 m_glueConnectionMappings.emplace_back(std::forward<GlueConnectionMappingsT>(value));
264 return *this;
265 }
267
269
280 inline bool GetPublish() const { return m_publish; }
281 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
282 inline void SetPublish(bool value) {
283 m_publishHasBeenSet = true;
284 m_publish = value;
285 }
287 SetPublish(value);
288 return *this;
289 }
291
293
301 inline const Aws::Vector<Aws::String>& GetAcknowledgements() const { return m_acknowledgements; }
302 inline bool AcknowledgementsHasBeenSet() const { return m_acknowledgementsHasBeenSet; }
303 template <typename AcknowledgementsT = Aws::Vector<Aws::String>>
304 void SetAcknowledgements(AcknowledgementsT&& value) {
305 m_acknowledgementsHasBeenSet = true;
306 m_acknowledgements = std::forward<AcknowledgementsT>(value);
307 }
308 template <typename AcknowledgementsT = Aws::Vector<Aws::String>>
309 CreateConnectionRequest& WithAcknowledgements(AcknowledgementsT&& value) {
310 SetAcknowledgements(std::forward<AcknowledgementsT>(value));
311 return *this;
312 }
313 template <typename AcknowledgementsT = Aws::String>
314 CreateConnectionRequest& AddAcknowledgements(AcknowledgementsT&& value) {
315 m_acknowledgementsHasBeenSet = true;
316 m_acknowledgements.emplace_back(std::forward<AcknowledgementsT>(value));
317 return *this;
318 }
320
322
331 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
332 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
333 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
334 void SetTags(TagsT&& value) {
335 m_tagsHasBeenSet = true;
336 m_tags = std::forward<TagsT>(value);
337 }
338 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
340 SetTags(std::forward<TagsT>(value));
341 return *this;
342 }
343 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
344 CreateConnectionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
345 m_tagsHasBeenSet = true;
346 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
347 return *this;
348 }
350 private:
352
353 Aws::String m_name;
354
355 DataSourceReference m_dataSource;
356
357 DataSourceScope m_scope;
358
359 AccessConfig m_accessConfig;
360
361 SyncSchedule m_syncSchedule;
362
363 IngestionConfig m_ingestionConfig;
364
365 Aws::Vector<GlueConnectionMapping> m_glueConnectionMappings;
366
367 bool m_publish{false};
368
369 Aws::Vector<Aws::String> m_acknowledgements;
370
372 bool m_clientTokenHasBeenSet = true;
373 bool m_nameHasBeenSet = false;
374 bool m_dataSourceHasBeenSet = false;
375 bool m_scopeHasBeenSet = false;
376 bool m_accessConfigHasBeenSet = false;
377 bool m_syncScheduleHasBeenSet = false;
378 bool m_ingestionConfigHasBeenSet = false;
379 bool m_glueConnectionMappingsHasBeenSet = false;
380 bool m_publishHasBeenSet = false;
381 bool m_acknowledgementsHasBeenSet = false;
382 bool m_tagsHasBeenSet = false;
383};
384
385} // namespace Model
386} // namespace Context
387} // namespace Aws
CreateConnectionRequest & WithScope(ScopeT &&value)
CreateConnectionRequest & WithClientToken(ClientTokenT &&value)
CreateConnectionRequest & AddAcknowledgements(AcknowledgementsT &&value)
CreateConnectionRequest & WithIngestionConfig(IngestionConfigT &&value)
CreateConnectionRequest & AddGlueConnectionMappings(GlueConnectionMappingsT &&value)
CreateConnectionRequest & WithSyncSchedule(SyncScheduleT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONTEXT_API CreateConnectionRequest()=default
CreateConnectionRequest & WithDataSource(DataSourceT &&value)
CreateConnectionRequest & WithGlueConnectionMappings(GlueConnectionMappingsT &&value)
CreateConnectionRequest & WithAccessConfig(AccessConfigT &&value)
CreateConnectionRequest & WithAcknowledgements(AcknowledgementsT &&value)
const Aws::Vector< Aws::String > & GetAcknowledgements() const
CreateConnectionRequest & WithName(NameT &&value)
void SetGlueConnectionMappings(GlueConnectionMappingsT &&value)
CreateConnectionRequest & WithPublish(bool value)
AWS_CONTEXT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< GlueConnectionMapping > & GetGlueConnectionMappings() const
CreateConnectionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateConnectionRequest & WithTags(TagsT &&value)
const DataSourceReference & GetDataSource() const
AWS_CONTEXT_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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