AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
GetDataSourceResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/Document.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qbusiness/QBusiness_EXPORTS.h>
11#include <aws/qbusiness/model/DataSourceStatus.h>
12#include <aws/qbusiness/model/DataSourceVpcConfiguration.h>
13#include <aws/qbusiness/model/DocumentEnrichmentConfiguration.h>
14#include <aws/qbusiness/model/ErrorDetail.h>
15#include <aws/qbusiness/model/MediaExtractionConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace QBusiness {
29namespace Model {
31 public:
32 AWS_QBUSINESS_API GetDataSourceResult() = default;
35
37
40 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
41 template <typename ApplicationIdT = Aws::String>
43 m_applicationIdHasBeenSet = true;
44 m_applicationId = std::forward<ApplicationIdT>(value);
45 }
46 template <typename ApplicationIdT = Aws::String>
48 SetApplicationId(std::forward<ApplicationIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetIndexId() const { return m_indexId; }
58 template <typename IndexIdT = Aws::String>
59 void SetIndexId(IndexIdT&& value) {
60 m_indexIdHasBeenSet = true;
61 m_indexId = std::forward<IndexIdT>(value);
62 }
63 template <typename IndexIdT = Aws::String>
65 SetIndexId(std::forward<IndexIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
75 template <typename DataSourceIdT = Aws::String>
77 m_dataSourceIdHasBeenSet = true;
78 m_dataSourceId = std::forward<DataSourceIdT>(value);
79 }
80 template <typename DataSourceIdT = Aws::String>
82 SetDataSourceId(std::forward<DataSourceIdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDataSourceArn() const { return m_dataSourceArn; }
92 template <typename DataSourceArnT = Aws::String>
94 m_dataSourceArnHasBeenSet = true;
95 m_dataSourceArn = std::forward<DataSourceArnT>(value);
96 }
97 template <typename DataSourceArnT = Aws::String>
99 SetDataSourceArn(std::forward<DataSourceArnT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetDisplayName() const { return m_displayName; }
109 template <typename DisplayNameT = Aws::String>
111 m_displayNameHasBeenSet = true;
112 m_displayName = std::forward<DisplayNameT>(value);
113 }
114 template <typename DisplayNameT = Aws::String>
116 SetDisplayName(std::forward<DisplayNameT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetType() const { return m_type; }
126 template <typename TypeT = Aws::String>
127 void SetType(TypeT&& value) {
128 m_typeHasBeenSet = true;
129 m_type = std::forward<TypeT>(value);
130 }
131 template <typename TypeT = Aws::String>
133 SetType(std::forward<TypeT>(value));
134 return *this;
135 }
137
139
142 inline Aws::Utils::DocumentView GetConfiguration() const { return m_configuration; }
143 template <typename ConfigurationT = Aws::Utils::Document>
145 m_configurationHasBeenSet = true;
146 m_configuration = std::forward<ConfigurationT>(value);
147 }
148 template <typename ConfigurationT = Aws::Utils::Document>
150 SetConfiguration(std::forward<ConfigurationT>(value));
151 return *this;
152 }
154
156
160 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
161 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
163 m_vpcConfigurationHasBeenSet = true;
164 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
165 }
166 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
168 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
178 template <typename CreatedAtT = Aws::Utils::DateTime>
179 void SetCreatedAt(CreatedAtT&& value) {
180 m_createdAtHasBeenSet = true;
181 m_createdAt = std::forward<CreatedAtT>(value);
182 }
183 template <typename CreatedAtT = Aws::Utils::DateTime>
185 SetCreatedAt(std::forward<CreatedAtT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
195 template <typename UpdatedAtT = Aws::Utils::DateTime>
196 void SetUpdatedAt(UpdatedAtT&& value) {
197 m_updatedAtHasBeenSet = true;
198 m_updatedAt = std::forward<UpdatedAtT>(value);
199 }
200 template <typename UpdatedAtT = Aws::Utils::DateTime>
202 SetUpdatedAt(std::forward<UpdatedAtT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetDescription() const { return m_description; }
212 template <typename DescriptionT = Aws::String>
214 m_descriptionHasBeenSet = true;
215 m_description = std::forward<DescriptionT>(value);
216 }
217 template <typename DescriptionT = Aws::String>
219 SetDescription(std::forward<DescriptionT>(value));
220 return *this;
221 }
223
225
230 inline DataSourceStatus GetStatus() const { return m_status; }
231 inline void SetStatus(DataSourceStatus value) {
232 m_statusHasBeenSet = true;
233 m_status = value;
234 }
236 SetStatus(value);
237 return *this;
238 }
240
242
245 inline const Aws::String& GetSyncSchedule() const { return m_syncSchedule; }
246 template <typename SyncScheduleT = Aws::String>
248 m_syncScheduleHasBeenSet = true;
249 m_syncSchedule = std::forward<SyncScheduleT>(value);
250 }
251 template <typename SyncScheduleT = Aws::String>
253 SetSyncSchedule(std::forward<SyncScheduleT>(value));
254 return *this;
255 }
257
259
263 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
264 template <typename RoleArnT = Aws::String>
265 void SetRoleArn(RoleArnT&& value) {
266 m_roleArnHasBeenSet = true;
267 m_roleArn = std::forward<RoleArnT>(value);
268 }
269 template <typename RoleArnT = Aws::String>
271 SetRoleArn(std::forward<RoleArnT>(value));
272 return *this;
273 }
275
277
282 inline const ErrorDetail& GetError() const { return m_error; }
283 template <typename ErrorT = ErrorDetail>
284 void SetError(ErrorT&& value) {
285 m_errorHasBeenSet = true;
286 m_error = std::forward<ErrorT>(value);
287 }
288 template <typename ErrorT = ErrorDetail>
290 SetError(std::forward<ErrorT>(value));
291 return *this;
292 }
294
296
297 inline const DocumentEnrichmentConfiguration& GetDocumentEnrichmentConfiguration() const { return m_documentEnrichmentConfiguration; }
298 template <typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
300 m_documentEnrichmentConfigurationHasBeenSet = true;
301 m_documentEnrichmentConfiguration = std::forward<DocumentEnrichmentConfigurationT>(value);
302 }
303 template <typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
305 SetDocumentEnrichmentConfiguration(std::forward<DocumentEnrichmentConfigurationT>(value));
306 return *this;
307 }
309
311
315 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
316 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
318 m_mediaExtractionConfigurationHasBeenSet = true;
319 m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value);
320 }
321 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
323 SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value));
324 return *this;
325 }
327
329
330 inline const Aws::String& GetRequestId() const { return m_requestId; }
331 template <typename RequestIdT = Aws::String>
332 void SetRequestId(RequestIdT&& value) {
333 m_requestIdHasBeenSet = true;
334 m_requestId = std::forward<RequestIdT>(value);
335 }
336 template <typename RequestIdT = Aws::String>
338 SetRequestId(std::forward<RequestIdT>(value));
339 return *this;
340 }
342 private:
343 Aws::String m_applicationId;
344
345 Aws::String m_indexId;
346
347 Aws::String m_dataSourceId;
348
349 Aws::String m_dataSourceArn;
350
351 Aws::String m_displayName;
352
353 Aws::String m_type;
354
355 Aws::Utils::Document m_configuration;
356
357 DataSourceVpcConfiguration m_vpcConfiguration;
358
359 Aws::Utils::DateTime m_createdAt{};
360
361 Aws::Utils::DateTime m_updatedAt{};
362
363 Aws::String m_description;
364
366
367 Aws::String m_syncSchedule;
368
369 Aws::String m_roleArn;
370
371 ErrorDetail m_error;
372
373 DocumentEnrichmentConfiguration m_documentEnrichmentConfiguration;
374
375 MediaExtractionConfiguration m_mediaExtractionConfiguration;
376
377 Aws::String m_requestId;
378 bool m_applicationIdHasBeenSet = false;
379 bool m_indexIdHasBeenSet = false;
380 bool m_dataSourceIdHasBeenSet = false;
381 bool m_dataSourceArnHasBeenSet = false;
382 bool m_displayNameHasBeenSet = false;
383 bool m_typeHasBeenSet = false;
384 bool m_configurationHasBeenSet = false;
385 bool m_vpcConfigurationHasBeenSet = false;
386 bool m_createdAtHasBeenSet = false;
387 bool m_updatedAtHasBeenSet = false;
388 bool m_descriptionHasBeenSet = false;
389 bool m_statusHasBeenSet = false;
390 bool m_syncScheduleHasBeenSet = false;
391 bool m_roleArnHasBeenSet = false;
392 bool m_errorHasBeenSet = false;
393 bool m_documentEnrichmentConfigurationHasBeenSet = false;
394 bool m_mediaExtractionConfigurationHasBeenSet = false;
395 bool m_requestIdHasBeenSet = false;
396};
397
398} // namespace Model
399} // namespace QBusiness
400} // namespace Aws
GetDataSourceResult & WithApplicationId(ApplicationIdT &&value)
AWS_QBUSINESS_API GetDataSourceResult()=default
AWS_QBUSINESS_API GetDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithVpcConfiguration(VpcConfigurationT &&value)
GetDataSourceResult & WithType(TypeT &&value)
GetDataSourceResult & WithDisplayName(DisplayNameT &&value)
const MediaExtractionConfiguration & GetMediaExtractionConfiguration() const
GetDataSourceResult & WithMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
void SetVpcConfiguration(VpcConfigurationT &&value)
void SetApplicationId(ApplicationIdT &&value)
GetDataSourceResult & WithRoleArn(RoleArnT &&value)
void SetMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
const DataSourceVpcConfiguration & GetVpcConfiguration() const
GetDataSourceResult & WithUpdatedAt(UpdatedAtT &&value)
void SetDataSourceArn(DataSourceArnT &&value)
AWS_QBUSINESS_API GetDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataSourceResult & WithError(ErrorT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetDataSourceResult & WithStatus(DataSourceStatus value)
const DocumentEnrichmentConfiguration & GetDocumentEnrichmentConfiguration() const
GetDataSourceResult & WithDescription(DescriptionT &&value)
GetDataSourceResult & WithIndexId(IndexIdT &&value)
GetDataSourceResult & WithDataSourceArn(DataSourceArnT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetDataSourceResult & WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
GetDataSourceResult & WithConfiguration(ConfigurationT &&value)
GetDataSourceResult & WithRequestId(RequestIdT &&value)
GetDataSourceResult & WithSyncSchedule(SyncScheduleT &&value)
Aws::Utils::DocumentView GetConfiguration() const
GetDataSourceResult & WithDataSourceId(DataSourceIdT &&value)
void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
GetDataSourceResult & WithCreatedAt(CreatedAtT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue