AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetDataSourceResult.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Document.h>
10#include <aws/qbusiness/model/DataSourceVpcConfiguration.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/qbusiness/model/DataSourceStatus.h>
13#include <aws/qbusiness/model/ErrorDetail.h>
14#include <aws/qbusiness/model/DocumentEnrichmentConfiguration.h>
15#include <aws/qbusiness/model/MediaExtractionConfiguration.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace QBusiness
31{
32namespace Model
33{
35 {
36 public:
37 AWS_QBUSINESS_API GetDataSourceResult() = default;
40
41
43
46 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
47 template<typename ApplicationIdT = Aws::String>
48 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
49 template<typename ApplicationIdT = Aws::String>
50 GetDataSourceResult& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetIndexId() const { return m_indexId; }
58 template<typename IndexIdT = Aws::String>
59 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
60 template<typename IndexIdT = Aws::String>
61 GetDataSourceResult& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
69 template<typename DataSourceIdT = Aws::String>
70 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
71 template<typename DataSourceIdT = Aws::String>
72 GetDataSourceResult& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
74
76
79 inline const Aws::String& GetDataSourceArn() const { return m_dataSourceArn; }
80 template<typename DataSourceArnT = Aws::String>
81 void SetDataSourceArn(DataSourceArnT&& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = std::forward<DataSourceArnT>(value); }
82 template<typename DataSourceArnT = Aws::String>
83 GetDataSourceResult& WithDataSourceArn(DataSourceArnT&& value) { SetDataSourceArn(std::forward<DataSourceArnT>(value)); return *this;}
85
87
90 inline const Aws::String& GetDisplayName() const { return m_displayName; }
91 template<typename DisplayNameT = Aws::String>
92 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
93 template<typename DisplayNameT = Aws::String>
94 GetDataSourceResult& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
96
98
101 inline const Aws::String& GetType() const { return m_type; }
102 template<typename TypeT = Aws::String>
103 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
104 template<typename TypeT = Aws::String>
105 GetDataSourceResult& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
107
109
112 inline Aws::Utils::DocumentView GetConfiguration() const { return m_configuration; }
113 template<typename ConfigurationT = Aws::Utils::Document>
114 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
115 template<typename ConfigurationT = Aws::Utils::Document>
116 GetDataSourceResult& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
118
120
124 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
125 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
126 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
127 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
128 GetDataSourceResult& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
136 template<typename CreatedAtT = Aws::Utils::DateTime>
137 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
138 template<typename CreatedAtT = Aws::Utils::DateTime>
139 GetDataSourceResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
147 template<typename UpdatedAtT = Aws::Utils::DateTime>
148 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
149 template<typename UpdatedAtT = Aws::Utils::DateTime>
150 GetDataSourceResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
152
154
157 inline const Aws::String& GetDescription() const { return m_description; }
158 template<typename DescriptionT = Aws::String>
159 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
160 template<typename DescriptionT = Aws::String>
161 GetDataSourceResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
163
165
170 inline DataSourceStatus GetStatus() const { return m_status; }
171 inline void SetStatus(DataSourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
172 inline GetDataSourceResult& WithStatus(DataSourceStatus value) { SetStatus(value); return *this;}
174
176
179 inline const Aws::String& GetSyncSchedule() const { return m_syncSchedule; }
180 template<typename SyncScheduleT = Aws::String>
181 void SetSyncSchedule(SyncScheduleT&& value) { m_syncScheduleHasBeenSet = true; m_syncSchedule = std::forward<SyncScheduleT>(value); }
182 template<typename SyncScheduleT = Aws::String>
183 GetDataSourceResult& WithSyncSchedule(SyncScheduleT&& value) { SetSyncSchedule(std::forward<SyncScheduleT>(value)); return *this;}
185
187
191 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
192 template<typename RoleArnT = Aws::String>
193 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
194 template<typename RoleArnT = Aws::String>
195 GetDataSourceResult& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
197
199
204 inline const ErrorDetail& GetError() const { return m_error; }
205 template<typename ErrorT = ErrorDetail>
206 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
207 template<typename ErrorT = ErrorDetail>
208 GetDataSourceResult& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
210
212
213 inline const DocumentEnrichmentConfiguration& GetDocumentEnrichmentConfiguration() const { return m_documentEnrichmentConfiguration; }
214 template<typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
215 void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT&& value) { m_documentEnrichmentConfigurationHasBeenSet = true; m_documentEnrichmentConfiguration = std::forward<DocumentEnrichmentConfigurationT>(value); }
216 template<typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
217 GetDataSourceResult& WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT&& value) { SetDocumentEnrichmentConfiguration(std::forward<DocumentEnrichmentConfigurationT>(value)); return *this;}
219
221
225 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
226 template<typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
227 void SetMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) { m_mediaExtractionConfigurationHasBeenSet = true; m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value); }
228 template<typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
229 GetDataSourceResult& WithMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) { SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value)); return *this;}
231
233
234 inline const Aws::String& GetRequestId() const { return m_requestId; }
235 template<typename RequestIdT = Aws::String>
236 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
237 template<typename RequestIdT = Aws::String>
238 GetDataSourceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
240 private:
241
242 Aws::String m_applicationId;
243 bool m_applicationIdHasBeenSet = false;
244
245 Aws::String m_indexId;
246 bool m_indexIdHasBeenSet = false;
247
248 Aws::String m_dataSourceId;
249 bool m_dataSourceIdHasBeenSet = false;
250
251 Aws::String m_dataSourceArn;
252 bool m_dataSourceArnHasBeenSet = false;
253
254 Aws::String m_displayName;
255 bool m_displayNameHasBeenSet = false;
256
257 Aws::String m_type;
258 bool m_typeHasBeenSet = false;
259
260 Aws::Utils::Document m_configuration;
261 bool m_configurationHasBeenSet = false;
262
263 DataSourceVpcConfiguration m_vpcConfiguration;
264 bool m_vpcConfigurationHasBeenSet = false;
265
266 Aws::Utils::DateTime m_createdAt{};
267 bool m_createdAtHasBeenSet = false;
268
269 Aws::Utils::DateTime m_updatedAt{};
270 bool m_updatedAtHasBeenSet = false;
271
272 Aws::String m_description;
273 bool m_descriptionHasBeenSet = false;
274
276 bool m_statusHasBeenSet = false;
277
278 Aws::String m_syncSchedule;
279 bool m_syncScheduleHasBeenSet = false;
280
281 Aws::String m_roleArn;
282 bool m_roleArnHasBeenSet = false;
283
284 ErrorDetail m_error;
285 bool m_errorHasBeenSet = false;
286
287 DocumentEnrichmentConfiguration m_documentEnrichmentConfiguration;
288 bool m_documentEnrichmentConfigurationHasBeenSet = false;
289
290 MediaExtractionConfiguration m_mediaExtractionConfiguration;
291 bool m_mediaExtractionConfigurationHasBeenSet = false;
292
293 Aws::String m_requestId;
294 bool m_requestIdHasBeenSet = false;
295 };
296
297} // namespace Model
298} // namespace QBusiness
299} // 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