AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
UpdateConnectionRequest.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/DataSourceScope.h>
11#include <aws/context/model/GlueConnectionMapping.h>
12#include <aws/context/model/IngestionConfig.h>
13#include <aws/context/model/SyncSchedule.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Context {
21namespace Model {
22
26 public:
27 AWS_CONTEXT_API UpdateConnectionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateConnection"; }
34
35 AWS_CONTEXT_API Aws::String SerializePayload() const override;
36
38
40
44 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
45 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
46 template <typename ConnectionIdT = Aws::String>
47 void SetConnectionId(ConnectionIdT&& value) {
48 m_connectionIdHasBeenSet = true;
49 m_connectionId = std::forward<ConnectionIdT>(value);
50 }
51 template <typename ConnectionIdT = Aws::String>
52 UpdateConnectionRequest& WithConnectionId(ConnectionIdT&& value) {
53 SetConnectionId(std::forward<ConnectionIdT>(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
90 inline const DataSourceScope& GetScope() const { return m_scope; }
91 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
92 template <typename ScopeT = DataSourceScope>
93 void SetScope(ScopeT&& value) {
94 m_scopeHasBeenSet = true;
95 m_scope = std::forward<ScopeT>(value);
96 }
97 template <typename ScopeT = DataSourceScope>
99 SetScope(std::forward<ScopeT>(value));
100 return *this;
101 }
103
105
120 inline const AccessConfig& GetAccessConfig() const { return m_accessConfig; }
121 inline bool AccessConfigHasBeenSet() const { return m_accessConfigHasBeenSet; }
122 template <typename AccessConfigT = AccessConfig>
123 void SetAccessConfig(AccessConfigT&& value) {
124 m_accessConfigHasBeenSet = true;
125 m_accessConfig = std::forward<AccessConfigT>(value);
126 }
127 template <typename AccessConfigT = AccessConfig>
129 SetAccessConfig(std::forward<AccessConfigT>(value));
130 return *this;
131 }
133
135
141 inline const SyncSchedule& GetSyncSchedule() const { return m_syncSchedule; }
142 inline bool SyncScheduleHasBeenSet() const { return m_syncScheduleHasBeenSet; }
143 template <typename SyncScheduleT = SyncSchedule>
144 void SetSyncSchedule(SyncScheduleT&& value) {
145 m_syncScheduleHasBeenSet = true;
146 m_syncSchedule = std::forward<SyncScheduleT>(value);
147 }
148 template <typename SyncScheduleT = SyncSchedule>
150 SetSyncSchedule(std::forward<SyncScheduleT>(value));
151 return *this;
152 }
154
156
163 inline const IngestionConfig& GetIngestionConfig() const { return m_ingestionConfig; }
164 inline bool IngestionConfigHasBeenSet() const { return m_ingestionConfigHasBeenSet; }
165 template <typename IngestionConfigT = IngestionConfig>
166 void SetIngestionConfig(IngestionConfigT&& value) {
167 m_ingestionConfigHasBeenSet = true;
168 m_ingestionConfig = std::forward<IngestionConfigT>(value);
169 }
170 template <typename IngestionConfigT = IngestionConfig>
171 UpdateConnectionRequest& WithIngestionConfig(IngestionConfigT&& value) {
172 SetIngestionConfig(std::forward<IngestionConfigT>(value));
173 return *this;
174 }
176
178
189 inline const Aws::Vector<GlueConnectionMapping>& GetGlueConnectionMappings() const { return m_glueConnectionMappings; }
190 inline bool GlueConnectionMappingsHasBeenSet() const { return m_glueConnectionMappingsHasBeenSet; }
191 template <typename GlueConnectionMappingsT = Aws::Vector<GlueConnectionMapping>>
192 void SetGlueConnectionMappings(GlueConnectionMappingsT&& value) {
193 m_glueConnectionMappingsHasBeenSet = true;
194 m_glueConnectionMappings = std::forward<GlueConnectionMappingsT>(value);
195 }
196 template <typename GlueConnectionMappingsT = Aws::Vector<GlueConnectionMapping>>
197 UpdateConnectionRequest& WithGlueConnectionMappings(GlueConnectionMappingsT&& value) {
198 SetGlueConnectionMappings(std::forward<GlueConnectionMappingsT>(value));
199 return *this;
200 }
201 template <typename GlueConnectionMappingsT = GlueConnectionMapping>
202 UpdateConnectionRequest& AddGlueConnectionMappings(GlueConnectionMappingsT&& value) {
203 m_glueConnectionMappingsHasBeenSet = true;
204 m_glueConnectionMappings.emplace_back(std::forward<GlueConnectionMappingsT>(value));
205 return *this;
206 }
208
210
218 inline bool GetPublish() const { return m_publish; }
219 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
220 inline void SetPublish(bool value) {
221 m_publishHasBeenSet = true;
222 m_publish = value;
223 }
225 SetPublish(value);
226 return *this;
227 }
229 private:
230 Aws::String m_connectionId;
231
232 Aws::String m_name;
233
234 DataSourceScope m_scope;
235
236 AccessConfig m_accessConfig;
237
238 SyncSchedule m_syncSchedule;
239
240 IngestionConfig m_ingestionConfig;
241
242 Aws::Vector<GlueConnectionMapping> m_glueConnectionMappings;
243
244 bool m_publish{false};
245 bool m_connectionIdHasBeenSet = false;
246 bool m_nameHasBeenSet = false;
247 bool m_scopeHasBeenSet = false;
248 bool m_accessConfigHasBeenSet = false;
249 bool m_syncScheduleHasBeenSet = false;
250 bool m_ingestionConfigHasBeenSet = false;
251 bool m_glueConnectionMappingsHasBeenSet = false;
252 bool m_publishHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace Context
257} // namespace Aws
UpdateConnectionRequest & WithSyncSchedule(SyncScheduleT &&value)
UpdateConnectionRequest & WithScope(ScopeT &&value)
UpdateConnectionRequest & WithAccessConfig(AccessConfigT &&value)
AWS_CONTEXT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateConnectionRequest & WithPublish(bool value)
virtual const char * GetServiceRequestName() const override
UpdateConnectionRequest & WithName(NameT &&value)
void SetGlueConnectionMappings(GlueConnectionMappingsT &&value)
UpdateConnectionRequest & WithGlueConnectionMappings(GlueConnectionMappingsT &&value)
AWS_CONTEXT_API UpdateConnectionRequest()=default
UpdateConnectionRequest & WithIngestionConfig(IngestionConfigT &&value)
AWS_CONTEXT_API Aws::String SerializePayload() const override
UpdateConnectionRequest & WithConnectionId(ConnectionIdT &&value)
const Aws::Vector< GlueConnectionMapping > & GetGlueConnectionMappings() const
UpdateConnectionRequest & AddGlueConnectionMappings(GlueConnectionMappingsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector