AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
KnowledgeBase.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/AccessControlConfiguration.h>
11#include <aws/quicksight/model/DataSetStatus.h>
12#include <aws/quicksight/model/KnowledgeBaseConfiguration.h>
13#include <aws/quicksight/model/KnowledgeBaseIngestionSummary.h>
14#include <aws/quicksight/model/MediaExtractionConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QuickSight {
26namespace Model {
27
35 public:
36 AWS_QUICKSIGHT_API KnowledgeBase() = default;
37 AWS_QUICKSIGHT_API KnowledgeBase(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API KnowledgeBase& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
46 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
47 template <typename KnowledgeBaseArnT = Aws::String>
48 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
49 m_knowledgeBaseArnHasBeenSet = true;
50 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
51 }
52 template <typename KnowledgeBaseArnT = Aws::String>
53 KnowledgeBase& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
54 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
64 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
65 template <typename KnowledgeBaseIdT = Aws::String>
66 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
67 m_knowledgeBaseIdHasBeenSet = true;
68 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
69 }
70 template <typename KnowledgeBaseIdT = Aws::String>
71 KnowledgeBase& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
72 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
89 KnowledgeBase& WithName(NameT&& value) {
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
99 inline DataSetStatus GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(DataSetStatus value) {
102 m_statusHasBeenSet = true;
103 m_status = value;
104 }
106 SetStatus(value);
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDataSourceArn() const { return m_dataSourceArn; }
116 inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; }
117 template <typename DataSourceArnT = Aws::String>
118 void SetDataSourceArn(DataSourceArnT&& value) {
119 m_dataSourceArnHasBeenSet = true;
120 m_dataSourceArn = std::forward<DataSourceArnT>(value);
121 }
122 template <typename DataSourceArnT = Aws::String>
123 KnowledgeBase& WithDataSourceArn(DataSourceArnT&& value) {
124 SetDataSourceArn(std::forward<DataSourceArnT>(value));
125 return *this;
126 }
128
130
133 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
134 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
135 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
136 void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
137 m_knowledgeBaseConfigurationHasBeenSet = true;
138 m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value);
139 }
140 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
141 KnowledgeBase& WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
142 SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value));
143 return *this;
144 }
146
148
151 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
152 inline bool MediaExtractionConfigurationHasBeenSet() const { return m_mediaExtractionConfigurationHasBeenSet; }
153 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
154 void SetMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) {
155 m_mediaExtractionConfigurationHasBeenSet = true;
156 m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value);
157 }
158 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
159 KnowledgeBase& WithMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) {
160 SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value));
161 return *this;
162 }
164
166
169 inline const AccessControlConfiguration& GetAccessControlConfiguration() const { return m_accessControlConfiguration; }
170 inline bool AccessControlConfigurationHasBeenSet() const { return m_accessControlConfigurationHasBeenSet; }
171 template <typename AccessControlConfigurationT = AccessControlConfiguration>
172 void SetAccessControlConfiguration(AccessControlConfigurationT&& value) {
173 m_accessControlConfigurationHasBeenSet = true;
174 m_accessControlConfiguration = std::forward<AccessControlConfigurationT>(value);
175 }
176 template <typename AccessControlConfigurationT = AccessControlConfiguration>
177 KnowledgeBase& WithAccessControlConfiguration(AccessControlConfigurationT&& value) {
178 SetAccessControlConfiguration(std::forward<AccessControlConfigurationT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetType() const { return m_type; }
188 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
189 template <typename TypeT = Aws::String>
190 void SetType(TypeT&& value) {
191 m_typeHasBeenSet = true;
192 m_type = std::forward<TypeT>(value);
193 }
194 template <typename TypeT = Aws::String>
195 KnowledgeBase& WithType(TypeT&& value) {
196 SetType(std::forward<TypeT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
206 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
207 template <typename CreatedAtT = Aws::Utils::DateTime>
208 void SetCreatedAt(CreatedAtT&& value) {
209 m_createdAtHasBeenSet = true;
210 m_createdAt = std::forward<CreatedAtT>(value);
211 }
212 template <typename CreatedAtT = Aws::Utils::DateTime>
213 KnowledgeBase& WithCreatedAt(CreatedAtT&& value) {
214 SetCreatedAt(std::forward<CreatedAtT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
224 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
225 template <typename UpdatedAtT = Aws::Utils::DateTime>
226 void SetUpdatedAt(UpdatedAtT&& value) {
227 m_updatedAtHasBeenSet = true;
228 m_updatedAt = std::forward<UpdatedAtT>(value);
229 }
230 template <typename UpdatedAtT = Aws::Utils::DateTime>
231 KnowledgeBase& WithUpdatedAt(UpdatedAtT&& value) {
232 SetUpdatedAt(std::forward<UpdatedAtT>(value));
233 return *this;
234 }
236
238
241 inline const Aws::String& GetDescription() const { return m_description; }
242 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
243 template <typename DescriptionT = Aws::String>
244 void SetDescription(DescriptionT&& value) {
245 m_descriptionHasBeenSet = true;
246 m_description = std::forward<DescriptionT>(value);
247 }
248 template <typename DescriptionT = Aws::String>
249 KnowledgeBase& WithDescription(DescriptionT&& value) {
250 SetDescription(std::forward<DescriptionT>(value));
251 return *this;
252 }
254
256
259 inline bool GetIsEmailNotificationOptedForIngestionFailures() const { return m_isEmailNotificationOptedForIngestionFailures; }
261 return m_isEmailNotificationOptedForIngestionFailuresHasBeenSet;
262 }
264 m_isEmailNotificationOptedForIngestionFailuresHasBeenSet = true;
265 m_isEmailNotificationOptedForIngestionFailures = value;
266 }
269 return *this;
270 }
272
274
277 inline const KnowledgeBaseIngestionSummary& GetFirstCompletedIngestionSummary() const { return m_firstCompletedIngestionSummary; }
278 inline bool FirstCompletedIngestionSummaryHasBeenSet() const { return m_firstCompletedIngestionSummaryHasBeenSet; }
279 template <typename FirstCompletedIngestionSummaryT = KnowledgeBaseIngestionSummary>
280 void SetFirstCompletedIngestionSummary(FirstCompletedIngestionSummaryT&& value) {
281 m_firstCompletedIngestionSummaryHasBeenSet = true;
282 m_firstCompletedIngestionSummary = std::forward<FirstCompletedIngestionSummaryT>(value);
283 }
284 template <typename FirstCompletedIngestionSummaryT = KnowledgeBaseIngestionSummary>
285 KnowledgeBase& WithFirstCompletedIngestionSummary(FirstCompletedIngestionSummaryT&& value) {
286 SetFirstCompletedIngestionSummary(std::forward<FirstCompletedIngestionSummaryT>(value));
287 return *this;
288 }
290
292
295 inline const KnowledgeBaseIngestionSummary& GetFirstIncompleteIngestionSummary() const { return m_firstIncompleteIngestionSummary; }
296 inline bool FirstIncompleteIngestionSummaryHasBeenSet() const { return m_firstIncompleteIngestionSummaryHasBeenSet; }
297 template <typename FirstIncompleteIngestionSummaryT = KnowledgeBaseIngestionSummary>
298 void SetFirstIncompleteIngestionSummary(FirstIncompleteIngestionSummaryT&& value) {
299 m_firstIncompleteIngestionSummaryHasBeenSet = true;
300 m_firstIncompleteIngestionSummary = std::forward<FirstIncompleteIngestionSummaryT>(value);
301 }
302 template <typename FirstIncompleteIngestionSummaryT = KnowledgeBaseIngestionSummary>
303 KnowledgeBase& WithFirstIncompleteIngestionSummary(FirstIncompleteIngestionSummaryT&& value) {
304 SetFirstIncompleteIngestionSummary(std::forward<FirstIncompleteIngestionSummaryT>(value));
305 return *this;
306 }
308
310
313 inline const KnowledgeBaseIngestionSummary& GetLatestIngestionSummary() const { return m_latestIngestionSummary; }
314 inline bool LatestIngestionSummaryHasBeenSet() const { return m_latestIngestionSummaryHasBeenSet; }
315 template <typename LatestIngestionSummaryT = KnowledgeBaseIngestionSummary>
316 void SetLatestIngestionSummary(LatestIngestionSummaryT&& value) {
317 m_latestIngestionSummaryHasBeenSet = true;
318 m_latestIngestionSummary = std::forward<LatestIngestionSummaryT>(value);
319 }
320 template <typename LatestIngestionSummaryT = KnowledgeBaseIngestionSummary>
321 KnowledgeBase& WithLatestIngestionSummary(LatestIngestionSummaryT&& value) {
322 SetLatestIngestionSummary(std::forward<LatestIngestionSummaryT>(value));
323 return *this;
324 }
326
328
331 inline long long GetKnowledgeBaseSizeBytes() const { return m_knowledgeBaseSizeBytes; }
332 inline bool KnowledgeBaseSizeBytesHasBeenSet() const { return m_knowledgeBaseSizeBytesHasBeenSet; }
333 inline void SetKnowledgeBaseSizeBytes(long long value) {
334 m_knowledgeBaseSizeBytesHasBeenSet = true;
335 m_knowledgeBaseSizeBytes = value;
336 }
337 inline KnowledgeBase& WithKnowledgeBaseSizeBytes(long long value) {
339 return *this;
340 }
342
344
347 inline long long GetDocumentCount() const { return m_documentCount; }
348 inline bool DocumentCountHasBeenSet() const { return m_documentCountHasBeenSet; }
349 inline void SetDocumentCount(long long value) {
350 m_documentCountHasBeenSet = true;
351 m_documentCount = value;
352 }
353 inline KnowledgeBase& WithDocumentCount(long long value) {
354 SetDocumentCount(value);
355 return *this;
356 }
358
360
363 inline const Aws::String& GetPrimaryOwnerArn() const { return m_primaryOwnerArn; }
364 inline bool PrimaryOwnerArnHasBeenSet() const { return m_primaryOwnerArnHasBeenSet; }
365 template <typename PrimaryOwnerArnT = Aws::String>
366 void SetPrimaryOwnerArn(PrimaryOwnerArnT&& value) {
367 m_primaryOwnerArnHasBeenSet = true;
368 m_primaryOwnerArn = std::forward<PrimaryOwnerArnT>(value);
369 }
370 template <typename PrimaryOwnerArnT = Aws::String>
371 KnowledgeBase& WithPrimaryOwnerArn(PrimaryOwnerArnT&& value) {
372 SetPrimaryOwnerArn(std::forward<PrimaryOwnerArnT>(value));
373 return *this;
374 }
376
378
381 inline const Aws::String& GetPrimaryOwnerUsername() const { return m_primaryOwnerUsername; }
382 inline bool PrimaryOwnerUsernameHasBeenSet() const { return m_primaryOwnerUsernameHasBeenSet; }
383 template <typename PrimaryOwnerUsernameT = Aws::String>
384 void SetPrimaryOwnerUsername(PrimaryOwnerUsernameT&& value) {
385 m_primaryOwnerUsernameHasBeenSet = true;
386 m_primaryOwnerUsername = std::forward<PrimaryOwnerUsernameT>(value);
387 }
388 template <typename PrimaryOwnerUsernameT = Aws::String>
389 KnowledgeBase& WithPrimaryOwnerUsername(PrimaryOwnerUsernameT&& value) {
390 SetPrimaryOwnerUsername(std::forward<PrimaryOwnerUsernameT>(value));
391 return *this;
392 }
394 private:
395 Aws::String m_knowledgeBaseArn;
396
397 Aws::String m_knowledgeBaseId;
398
399 Aws::String m_name;
400
402
403 Aws::String m_dataSourceArn;
404
405 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
406
407 MediaExtractionConfiguration m_mediaExtractionConfiguration;
408
409 AccessControlConfiguration m_accessControlConfiguration;
410
411 Aws::String m_type;
412
413 Aws::Utils::DateTime m_createdAt{};
414
415 Aws::Utils::DateTime m_updatedAt{};
416
417 Aws::String m_description;
418
419 bool m_isEmailNotificationOptedForIngestionFailures{false};
420
421 KnowledgeBaseIngestionSummary m_firstCompletedIngestionSummary;
422
423 KnowledgeBaseIngestionSummary m_firstIncompleteIngestionSummary;
424
425 KnowledgeBaseIngestionSummary m_latestIngestionSummary;
426
427 long long m_knowledgeBaseSizeBytes{0};
428
429 long long m_documentCount{0};
430
431 Aws::String m_primaryOwnerArn;
432
433 Aws::String m_primaryOwnerUsername;
434 bool m_knowledgeBaseArnHasBeenSet = false;
435 bool m_knowledgeBaseIdHasBeenSet = false;
436 bool m_nameHasBeenSet = false;
437 bool m_statusHasBeenSet = false;
438 bool m_dataSourceArnHasBeenSet = false;
439 bool m_knowledgeBaseConfigurationHasBeenSet = false;
440 bool m_mediaExtractionConfigurationHasBeenSet = false;
441 bool m_accessControlConfigurationHasBeenSet = false;
442 bool m_typeHasBeenSet = false;
443 bool m_createdAtHasBeenSet = false;
444 bool m_updatedAtHasBeenSet = false;
445 bool m_descriptionHasBeenSet = false;
446 bool m_isEmailNotificationOptedForIngestionFailuresHasBeenSet = false;
447 bool m_firstCompletedIngestionSummaryHasBeenSet = false;
448 bool m_firstIncompleteIngestionSummaryHasBeenSet = false;
449 bool m_latestIngestionSummaryHasBeenSet = false;
450 bool m_knowledgeBaseSizeBytesHasBeenSet = false;
451 bool m_documentCountHasBeenSet = false;
452 bool m_primaryOwnerArnHasBeenSet = false;
453 bool m_primaryOwnerUsernameHasBeenSet = false;
454};
455
456} // namespace Model
457} // namespace QuickSight
458} // namespace Aws
bool IsEmailNotificationOptedForIngestionFailuresHasBeenSet() const
KnowledgeBase & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBase & WithCreatedAt(CreatedAtT &&value)
void SetDataSourceArn(DataSourceArnT &&value)
const AccessControlConfiguration & GetAccessControlConfiguration() const
const KnowledgeBaseIngestionSummary & GetLatestIngestionSummary() const
void SetIsEmailNotificationOptedForIngestionFailures(bool value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
const Aws::String & GetName() const
AWS_QUICKSIGHT_API KnowledgeBase()=default
KnowledgeBase & WithFirstCompletedIngestionSummary(FirstCompletedIngestionSummaryT &&value)
const Aws::String & GetPrimaryOwnerArn() const
const KnowledgeBaseIngestionSummary & GetFirstIncompleteIngestionSummary() const
AWS_QUICKSIGHT_API KnowledgeBase(Aws::Utils::Json::JsonView jsonValue)
void SetPrimaryOwnerArn(PrimaryOwnerArnT &&value)
AWS_QUICKSIGHT_API KnowledgeBase & operator=(Aws::Utils::Json::JsonView jsonValue)
const MediaExtractionConfiguration & GetMediaExtractionConfiguration() const
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
const KnowledgeBaseIngestionSummary & GetFirstCompletedIngestionSummary() const
bool GetIsEmailNotificationOptedForIngestionFailures() const
KnowledgeBase & WithPrimaryOwnerArn(PrimaryOwnerArnT &&value)
KnowledgeBase & WithDataSourceArn(DataSourceArnT &&value)
KnowledgeBase & WithFirstIncompleteIngestionSummary(FirstIncompleteIngestionSummaryT &&value)
const Aws::String & GetDataSourceArn() const
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
KnowledgeBase & WithDocumentCount(long long value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetFirstCompletedIngestionSummary(FirstCompletedIngestionSummaryT &&value)
KnowledgeBase & WithLatestIngestionSummary(LatestIngestionSummaryT &&value)
void SetLatestIngestionSummary(LatestIngestionSummaryT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
KnowledgeBase & WithMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
KnowledgeBase & WithType(TypeT &&value)
KnowledgeBase & WithUpdatedAt(UpdatedAtT &&value)
KnowledgeBase & WithAccessControlConfiguration(AccessControlConfigurationT &&value)
void SetPrimaryOwnerUsername(PrimaryOwnerUsernameT &&value)
const Aws::String & GetKnowledgeBaseArn() const
KnowledgeBase & WithDescription(DescriptionT &&value)
void SetStatus(DataSetStatus value)
const Aws::String & GetDescription() const
const Aws::String & GetKnowledgeBaseId() const
KnowledgeBase & WithStatus(DataSetStatus value)
void SetDescription(DescriptionT &&value)
void SetAccessControlConfiguration(AccessControlConfigurationT &&value)
void SetKnowledgeBaseSizeBytes(long long value)
const Aws::String & GetType() const
const Aws::String & GetPrimaryOwnerUsername() const
KnowledgeBase & WithPrimaryOwnerUsername(PrimaryOwnerUsernameT &&value)
KnowledgeBase & WithKnowledgeBaseSizeBytes(long long value)
KnowledgeBase & WithIsEmailNotificationOptedForIngestionFailures(bool value)
KnowledgeBase & WithName(NameT &&value)
KnowledgeBase & WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
void SetMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFirstIncompleteIngestionSummary(FirstIncompleteIngestionSummaryT &&value)
KnowledgeBase & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
void SetCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue