AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
GetConnectionResult.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/AccessConfig.h>
9#include <aws/context/model/ConnectionFailure.h>
10#include <aws/context/model/ConnectionStatus.h>
11#include <aws/context/model/DataSourceReference.h>
12#include <aws/context/model/DataSourceScope.h>
13#include <aws/context/model/GlueConnectionMapping.h>
14#include <aws/context/model/IngestionConfig.h>
15#include <aws/context/model/ResourceSubStatus.h>
16#include <aws/context/model/SyncSchedule.h>
17#include <aws/core/http/HttpResponse.h>
18#include <aws/core/utils/DateTime.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
21#include <aws/crt/cbor/Cbor.h>
22
23#include <utility>
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils {
29namespace Cbor {
30class CborValue;
31} // namespace Cbor
32} // namespace Utils
33namespace Context {
34namespace Model {
45 public:
46 AWS_CONTEXT_API GetConnectionResult() = default;
49
51
54 inline const Aws::String& GetId() const { return m_id; }
55 template <typename IdT = Aws::String>
56 void SetId(IdT&& value) {
57 m_idHasBeenSet = true;
58 m_id = std::forward<IdT>(value);
59 }
60 template <typename IdT = Aws::String>
62 SetId(std::forward<IdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetArn() const { return m_arn; }
72 template <typename ArnT = Aws::String>
73 void SetArn(ArnT&& value) {
74 m_arnHasBeenSet = true;
75 m_arn = std::forward<ArnT>(value);
76 }
77 template <typename ArnT = Aws::String>
79 SetArn(std::forward<ArnT>(value));
80 return *this;
81 }
83
85
90 inline const Aws::String& GetName() const { return m_name; }
91 template <typename NameT = Aws::String>
92 void SetName(NameT&& value) {
93 m_nameHasBeenSet = true;
94 m_name = std::forward<NameT>(value);
95 }
96 template <typename NameT = Aws::String>
97 GetConnectionResult& WithName(NameT&& value) {
98 SetName(std::forward<NameT>(value));
99 return *this;
100 }
102
104
109 inline const DataSourceReference& GetDataSource() const { return m_dataSource; }
110 template <typename DataSourceT = DataSourceReference>
111 void SetDataSource(DataSourceT&& value) {
112 m_dataSourceHasBeenSet = true;
113 m_dataSource = std::forward<DataSourceT>(value);
114 }
115 template <typename DataSourceT = DataSourceReference>
116 GetConnectionResult& WithDataSource(DataSourceT&& value) {
117 SetDataSource(std::forward<DataSourceT>(value));
118 return *this;
119 }
121
123
126 inline const DataSourceScope& GetScope() const { return m_scope; }
127 template <typename ScopeT = DataSourceScope>
128 void SetScope(ScopeT&& value) {
129 m_scopeHasBeenSet = true;
130 m_scope = std::forward<ScopeT>(value);
131 }
132 template <typename ScopeT = DataSourceScope>
134 SetScope(std::forward<ScopeT>(value));
135 return *this;
136 }
138
140
143 inline const AccessConfig& GetAccessConfig() const { return m_accessConfig; }
144 template <typename AccessConfigT = AccessConfig>
145 void SetAccessConfig(AccessConfigT&& value) {
146 m_accessConfigHasBeenSet = true;
147 m_accessConfig = std::forward<AccessConfigT>(value);
148 }
149 template <typename AccessConfigT = AccessConfig>
150 GetConnectionResult& WithAccessConfig(AccessConfigT&& value) {
151 SetAccessConfig(std::forward<AccessConfigT>(value));
152 return *this;
153 }
155
157
163 inline const SyncSchedule& GetSyncSchedule() const { return m_syncSchedule; }
164 template <typename SyncScheduleT = SyncSchedule>
165 void SetSyncSchedule(SyncScheduleT&& value) {
166 m_syncScheduleHasBeenSet = true;
167 m_syncSchedule = std::forward<SyncScheduleT>(value);
168 }
169 template <typename SyncScheduleT = SyncSchedule>
170 GetConnectionResult& WithSyncSchedule(SyncScheduleT&& value) {
171 SetSyncSchedule(std::forward<SyncScheduleT>(value));
172 return *this;
173 }
175
177
182 inline const IngestionConfig& GetIngestionConfig() const { return m_ingestionConfig; }
183 template <typename IngestionConfigT = IngestionConfig>
184 void SetIngestionConfig(IngestionConfigT&& value) {
185 m_ingestionConfigHasBeenSet = true;
186 m_ingestionConfig = std::forward<IngestionConfigT>(value);
187 }
188 template <typename IngestionConfigT = IngestionConfig>
189 GetConnectionResult& WithIngestionConfig(IngestionConfigT&& value) {
190 SetIngestionConfig(std::forward<IngestionConfigT>(value));
191 return *this;
192 }
194
196
202 inline const Aws::Vector<GlueConnectionMapping>& GetGlueConnectionMappings() const { return m_glueConnectionMappings; }
203 template <typename GlueConnectionMappingsT = Aws::Vector<GlueConnectionMapping>>
204 void SetGlueConnectionMappings(GlueConnectionMappingsT&& value) {
205 m_glueConnectionMappingsHasBeenSet = true;
206 m_glueConnectionMappings = std::forward<GlueConnectionMappingsT>(value);
207 }
208 template <typename GlueConnectionMappingsT = Aws::Vector<GlueConnectionMapping>>
209 GetConnectionResult& WithGlueConnectionMappings(GlueConnectionMappingsT&& value) {
210 SetGlueConnectionMappings(std::forward<GlueConnectionMappingsT>(value));
211 return *this;
212 }
213 template <typename GlueConnectionMappingsT = GlueConnectionMapping>
214 GetConnectionResult& AddGlueConnectionMappings(GlueConnectionMappingsT&& value) {
215 m_glueConnectionMappingsHasBeenSet = true;
216 m_glueConnectionMappings.emplace_back(std::forward<GlueConnectionMappingsT>(value));
217 return *this;
218 }
220
222
234 inline ConnectionStatus GetStatus() const { return m_status; }
235 inline void SetStatus(ConnectionStatus value) {
236 m_statusHasBeenSet = true;
237 m_status = value;
238 }
240 SetStatus(value);
241 return *this;
242 }
244
246
249 inline const ConnectionFailure& GetFailure() const { return m_failure; }
250 template <typename FailureT = ConnectionFailure>
251 void SetFailure(FailureT&& value) {
252 m_failureHasBeenSet = true;
253 m_failure = std::forward<FailureT>(value);
254 }
255 template <typename FailureT = ConnectionFailure>
256 GetConnectionResult& WithFailure(FailureT&& value) {
257 SetFailure(std::forward<FailureT>(value));
258 return *this;
259 }
261
263
272 inline ResourceSubStatus GetSubStatus() const { return m_subStatus; }
273 inline void SetSubStatus(ResourceSubStatus value) {
274 m_subStatusHasBeenSet = true;
275 m_subStatus = value;
276 }
278 SetSubStatus(value);
279 return *this;
280 }
282
284
287 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
288 template <typename CreatedAtT = Aws::Utils::DateTime>
289 void SetCreatedAt(CreatedAtT&& value) {
290 m_createdAtHasBeenSet = true;
291 m_createdAt = std::forward<CreatedAtT>(value);
292 }
293 template <typename CreatedAtT = Aws::Utils::DateTime>
294 GetConnectionResult& WithCreatedAt(CreatedAtT&& value) {
295 SetCreatedAt(std::forward<CreatedAtT>(value));
296 return *this;
297 }
299
301
305 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
306 template <typename UpdatedAtT = Aws::Utils::DateTime>
307 void SetUpdatedAt(UpdatedAtT&& value) {
308 m_updatedAtHasBeenSet = true;
309 m_updatedAt = std::forward<UpdatedAtT>(value);
310 }
311 template <typename UpdatedAtT = Aws::Utils::DateTime>
312 GetConnectionResult& WithUpdatedAt(UpdatedAtT&& value) {
313 SetUpdatedAt(std::forward<UpdatedAtT>(value));
314 return *this;
315 }
317
319
320 inline const Aws::String& GetRequestId() const { return m_requestId; }
321 template <typename RequestIdT = Aws::String>
322 void SetRequestId(RequestIdT&& value) {
323 m_requestIdHasBeenSet = true;
324 m_requestId = std::forward<RequestIdT>(value);
325 }
326 template <typename RequestIdT = Aws::String>
327 GetConnectionResult& WithRequestId(RequestIdT&& value) {
328 SetRequestId(std::forward<RequestIdT>(value));
329 return *this;
330 }
332 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
333
334 private:
335 Aws::String m_id;
336
337 Aws::String m_arn;
338
339 Aws::String m_name;
340
341 DataSourceReference m_dataSource;
342
343 DataSourceScope m_scope;
344
345 AccessConfig m_accessConfig;
346
347 SyncSchedule m_syncSchedule;
348
349 IngestionConfig m_ingestionConfig;
350
351 Aws::Vector<GlueConnectionMapping> m_glueConnectionMappings;
352
354
355 ConnectionFailure m_failure;
356
358
359 Aws::Utils::DateTime m_createdAt{};
360
361 Aws::Utils::DateTime m_updatedAt{};
362
363 Aws::String m_requestId;
364 Aws::Http::HttpResponseCode m_HttpResponseCode;
365 bool m_idHasBeenSet = false;
366 bool m_arnHasBeenSet = false;
367 bool m_nameHasBeenSet = false;
368 bool m_dataSourceHasBeenSet = false;
369 bool m_scopeHasBeenSet = false;
370 bool m_accessConfigHasBeenSet = false;
371 bool m_syncScheduleHasBeenSet = false;
372 bool m_ingestionConfigHasBeenSet = false;
373 bool m_glueConnectionMappingsHasBeenSet = false;
374 bool m_statusHasBeenSet = false;
375 bool m_failureHasBeenSet = false;
376 bool m_subStatusHasBeenSet = false;
377 bool m_createdAtHasBeenSet = false;
378 bool m_updatedAtHasBeenSet = false;
379 bool m_requestIdHasBeenSet = false;
380};
381
382} // namespace Model
383} // namespace Context
384} // namespace Aws
void SetGlueConnectionMappings(GlueConnectionMappingsT &&value)
GetConnectionResult & WithFailure(FailureT &&value)
GetConnectionResult & WithCreatedAt(CreatedAtT &&value)
void SetIngestionConfig(IngestionConfigT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const DataSourceScope & GetScope() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_CONTEXT_API GetConnectionResult()=default
GetConnectionResult & WithGlueConnectionMappings(GlueConnectionMappingsT &&value)
GetConnectionResult & WithRequestId(RequestIdT &&value)
GetConnectionResult & WithName(NameT &&value)
const ConnectionFailure & GetFailure() const
const AccessConfig & GetAccessConfig() const
GetConnectionResult & WithStatus(ConnectionStatus value)
GetConnectionResult & WithDataSource(DataSourceT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetConnectionResult & WithId(IdT &&value)
GetConnectionResult & WithAccessConfig(AccessConfigT &&value)
void SetSubStatus(ResourceSubStatus value)
GetConnectionResult & WithUpdatedAt(UpdatedAtT &&value)
GetConnectionResult & WithIngestionConfig(IngestionConfigT &&value)
AWS_CONTEXT_API GetConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_CONTEXT_API GetConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
GetConnectionResult & WithScope(ScopeT &&value)
GetConnectionResult & WithSyncSchedule(SyncScheduleT &&value)
const Aws::Vector< GlueConnectionMapping > & GetGlueConnectionMappings() const
const IngestionConfig & GetIngestionConfig() const
const DataSourceReference & GetDataSource() const
GetConnectionResult & AddGlueConnectionMappings(GlueConnectionMappingsT &&value)
const SyncSchedule & GetSyncSchedule() const
GetConnectionResult & WithSubStatus(ResourceSubStatus value)
GetConnectionResult & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector