AWS SDK for C++

AWS SDK for C++ Version 1.11.830

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/DataSetStatus.h>
11#include <aws/quicksight/model/KnowledgeBaseConfiguration.h>
12#include <aws/quicksight/model/KnowledgeBaseIngestionSummary.h>
13#include <aws/quicksight/model/MediaExtractionConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight {
25namespace Model {
26
34 public:
35 AWS_QUICKSIGHT_API KnowledgeBase() = default;
36 AWS_QUICKSIGHT_API KnowledgeBase(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API KnowledgeBase& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
45 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
46 template <typename KnowledgeBaseArnT = Aws::String>
47 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
48 m_knowledgeBaseArnHasBeenSet = true;
49 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
50 }
51 template <typename KnowledgeBaseArnT = Aws::String>
52 KnowledgeBase& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
53 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
63 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
64 template <typename KnowledgeBaseIdT = Aws::String>
65 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
66 m_knowledgeBaseIdHasBeenSet = true;
67 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
68 }
69 template <typename KnowledgeBaseIdT = Aws::String>
70 KnowledgeBase& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
71 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 KnowledgeBase& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline DataSetStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(DataSetStatus value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDataSourceArn() const { return m_dataSourceArn; }
115 inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; }
116 template <typename DataSourceArnT = Aws::String>
117 void SetDataSourceArn(DataSourceArnT&& value) {
118 m_dataSourceArnHasBeenSet = true;
119 m_dataSourceArn = std::forward<DataSourceArnT>(value);
120 }
121 template <typename DataSourceArnT = Aws::String>
122 KnowledgeBase& WithDataSourceArn(DataSourceArnT&& value) {
123 SetDataSourceArn(std::forward<DataSourceArnT>(value));
124 return *this;
125 }
127
129
132 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
133 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
134 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
135 void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
136 m_knowledgeBaseConfigurationHasBeenSet = true;
137 m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value);
138 }
139 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
140 KnowledgeBase& WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
141 SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value));
142 return *this;
143 }
145
147
150 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
151 inline bool MediaExtractionConfigurationHasBeenSet() const { return m_mediaExtractionConfigurationHasBeenSet; }
152 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
153 void SetMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) {
154 m_mediaExtractionConfigurationHasBeenSet = true;
155 m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value);
156 }
157 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
158 KnowledgeBase& WithMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) {
159 SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetType() const { return m_type; }
169 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
170 template <typename TypeT = Aws::String>
171 void SetType(TypeT&& value) {
172 m_typeHasBeenSet = true;
173 m_type = std::forward<TypeT>(value);
174 }
175 template <typename TypeT = Aws::String>
176 KnowledgeBase& WithType(TypeT&& value) {
177 SetType(std::forward<TypeT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
187 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
188 template <typename CreatedAtT = Aws::Utils::DateTime>
189 void SetCreatedAt(CreatedAtT&& value) {
190 m_createdAtHasBeenSet = true;
191 m_createdAt = std::forward<CreatedAtT>(value);
192 }
193 template <typename CreatedAtT = Aws::Utils::DateTime>
194 KnowledgeBase& WithCreatedAt(CreatedAtT&& value) {
195 SetCreatedAt(std::forward<CreatedAtT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
205 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
206 template <typename UpdatedAtT = Aws::Utils::DateTime>
207 void SetUpdatedAt(UpdatedAtT&& value) {
208 m_updatedAtHasBeenSet = true;
209 m_updatedAt = std::forward<UpdatedAtT>(value);
210 }
211 template <typename UpdatedAtT = Aws::Utils::DateTime>
212 KnowledgeBase& WithUpdatedAt(UpdatedAtT&& value) {
213 SetUpdatedAt(std::forward<UpdatedAtT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetDescription() const { return m_description; }
223 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
224 template <typename DescriptionT = Aws::String>
225 void SetDescription(DescriptionT&& value) {
226 m_descriptionHasBeenSet = true;
227 m_description = std::forward<DescriptionT>(value);
228 }
229 template <typename DescriptionT = Aws::String>
230 KnowledgeBase& WithDescription(DescriptionT&& value) {
231 SetDescription(std::forward<DescriptionT>(value));
232 return *this;
233 }
235
237
240 inline bool GetIsEmailNotificationOptedForIngestionFailures() const { return m_isEmailNotificationOptedForIngestionFailures; }
242 return m_isEmailNotificationOptedForIngestionFailuresHasBeenSet;
243 }
245 m_isEmailNotificationOptedForIngestionFailuresHasBeenSet = true;
246 m_isEmailNotificationOptedForIngestionFailures = value;
247 }
250 return *this;
251 }
253
255
258 inline const KnowledgeBaseIngestionSummary& GetFirstCompletedIngestionSummary() const { return m_firstCompletedIngestionSummary; }
259 inline bool FirstCompletedIngestionSummaryHasBeenSet() const { return m_firstCompletedIngestionSummaryHasBeenSet; }
260 template <typename FirstCompletedIngestionSummaryT = KnowledgeBaseIngestionSummary>
261 void SetFirstCompletedIngestionSummary(FirstCompletedIngestionSummaryT&& value) {
262 m_firstCompletedIngestionSummaryHasBeenSet = true;
263 m_firstCompletedIngestionSummary = std::forward<FirstCompletedIngestionSummaryT>(value);
264 }
265 template <typename FirstCompletedIngestionSummaryT = KnowledgeBaseIngestionSummary>
266 KnowledgeBase& WithFirstCompletedIngestionSummary(FirstCompletedIngestionSummaryT&& value) {
267 SetFirstCompletedIngestionSummary(std::forward<FirstCompletedIngestionSummaryT>(value));
268 return *this;
269 }
271
273
276 inline const KnowledgeBaseIngestionSummary& GetFirstIncompleteIngestionSummary() const { return m_firstIncompleteIngestionSummary; }
277 inline bool FirstIncompleteIngestionSummaryHasBeenSet() const { return m_firstIncompleteIngestionSummaryHasBeenSet; }
278 template <typename FirstIncompleteIngestionSummaryT = KnowledgeBaseIngestionSummary>
279 void SetFirstIncompleteIngestionSummary(FirstIncompleteIngestionSummaryT&& value) {
280 m_firstIncompleteIngestionSummaryHasBeenSet = true;
281 m_firstIncompleteIngestionSummary = std::forward<FirstIncompleteIngestionSummaryT>(value);
282 }
283 template <typename FirstIncompleteIngestionSummaryT = KnowledgeBaseIngestionSummary>
284 KnowledgeBase& WithFirstIncompleteIngestionSummary(FirstIncompleteIngestionSummaryT&& value) {
285 SetFirstIncompleteIngestionSummary(std::forward<FirstIncompleteIngestionSummaryT>(value));
286 return *this;
287 }
289
291
294 inline const KnowledgeBaseIngestionSummary& GetLatestIngestionSummary() const { return m_latestIngestionSummary; }
295 inline bool LatestIngestionSummaryHasBeenSet() const { return m_latestIngestionSummaryHasBeenSet; }
296 template <typename LatestIngestionSummaryT = KnowledgeBaseIngestionSummary>
297 void SetLatestIngestionSummary(LatestIngestionSummaryT&& value) {
298 m_latestIngestionSummaryHasBeenSet = true;
299 m_latestIngestionSummary = std::forward<LatestIngestionSummaryT>(value);
300 }
301 template <typename LatestIngestionSummaryT = KnowledgeBaseIngestionSummary>
302 KnowledgeBase& WithLatestIngestionSummary(LatestIngestionSummaryT&& value) {
303 SetLatestIngestionSummary(std::forward<LatestIngestionSummaryT>(value));
304 return *this;
305 }
307
309
312 inline long long GetKnowledgeBaseSizeBytes() const { return m_knowledgeBaseSizeBytes; }
313 inline bool KnowledgeBaseSizeBytesHasBeenSet() const { return m_knowledgeBaseSizeBytesHasBeenSet; }
314 inline void SetKnowledgeBaseSizeBytes(long long value) {
315 m_knowledgeBaseSizeBytesHasBeenSet = true;
316 m_knowledgeBaseSizeBytes = value;
317 }
318 inline KnowledgeBase& WithKnowledgeBaseSizeBytes(long long value) {
320 return *this;
321 }
323
325
328 inline long long GetDocumentCount() const { return m_documentCount; }
329 inline bool DocumentCountHasBeenSet() const { return m_documentCountHasBeenSet; }
330 inline void SetDocumentCount(long long value) {
331 m_documentCountHasBeenSet = true;
332 m_documentCount = value;
333 }
334 inline KnowledgeBase& WithDocumentCount(long long value) {
335 SetDocumentCount(value);
336 return *this;
337 }
339
341
344 inline const Aws::String& GetPrimaryOwnerArn() const { return m_primaryOwnerArn; }
345 inline bool PrimaryOwnerArnHasBeenSet() const { return m_primaryOwnerArnHasBeenSet; }
346 template <typename PrimaryOwnerArnT = Aws::String>
347 void SetPrimaryOwnerArn(PrimaryOwnerArnT&& value) {
348 m_primaryOwnerArnHasBeenSet = true;
349 m_primaryOwnerArn = std::forward<PrimaryOwnerArnT>(value);
350 }
351 template <typename PrimaryOwnerArnT = Aws::String>
352 KnowledgeBase& WithPrimaryOwnerArn(PrimaryOwnerArnT&& value) {
353 SetPrimaryOwnerArn(std::forward<PrimaryOwnerArnT>(value));
354 return *this;
355 }
357
359
362 inline const Aws::String& GetPrimaryOwnerUsername() const { return m_primaryOwnerUsername; }
363 inline bool PrimaryOwnerUsernameHasBeenSet() const { return m_primaryOwnerUsernameHasBeenSet; }
364 template <typename PrimaryOwnerUsernameT = Aws::String>
365 void SetPrimaryOwnerUsername(PrimaryOwnerUsernameT&& value) {
366 m_primaryOwnerUsernameHasBeenSet = true;
367 m_primaryOwnerUsername = std::forward<PrimaryOwnerUsernameT>(value);
368 }
369 template <typename PrimaryOwnerUsernameT = Aws::String>
370 KnowledgeBase& WithPrimaryOwnerUsername(PrimaryOwnerUsernameT&& value) {
371 SetPrimaryOwnerUsername(std::forward<PrimaryOwnerUsernameT>(value));
372 return *this;
373 }
375 private:
376 Aws::String m_knowledgeBaseArn;
377
378 Aws::String m_knowledgeBaseId;
379
380 Aws::String m_name;
381
383
384 Aws::String m_dataSourceArn;
385
386 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
387
388 MediaExtractionConfiguration m_mediaExtractionConfiguration;
389
390 Aws::String m_type;
391
392 Aws::Utils::DateTime m_createdAt{};
393
394 Aws::Utils::DateTime m_updatedAt{};
395
396 Aws::String m_description;
397
398 bool m_isEmailNotificationOptedForIngestionFailures{false};
399
400 KnowledgeBaseIngestionSummary m_firstCompletedIngestionSummary;
401
402 KnowledgeBaseIngestionSummary m_firstIncompleteIngestionSummary;
403
404 KnowledgeBaseIngestionSummary m_latestIngestionSummary;
405
406 long long m_knowledgeBaseSizeBytes{0};
407
408 long long m_documentCount{0};
409
410 Aws::String m_primaryOwnerArn;
411
412 Aws::String m_primaryOwnerUsername;
413 bool m_knowledgeBaseArnHasBeenSet = false;
414 bool m_knowledgeBaseIdHasBeenSet = false;
415 bool m_nameHasBeenSet = false;
416 bool m_statusHasBeenSet = false;
417 bool m_dataSourceArnHasBeenSet = false;
418 bool m_knowledgeBaseConfigurationHasBeenSet = false;
419 bool m_mediaExtractionConfigurationHasBeenSet = false;
420 bool m_typeHasBeenSet = false;
421 bool m_createdAtHasBeenSet = false;
422 bool m_updatedAtHasBeenSet = false;
423 bool m_descriptionHasBeenSet = false;
424 bool m_isEmailNotificationOptedForIngestionFailuresHasBeenSet = false;
425 bool m_firstCompletedIngestionSummaryHasBeenSet = false;
426 bool m_firstIncompleteIngestionSummaryHasBeenSet = false;
427 bool m_latestIngestionSummaryHasBeenSet = false;
428 bool m_knowledgeBaseSizeBytesHasBeenSet = false;
429 bool m_documentCountHasBeenSet = false;
430 bool m_primaryOwnerArnHasBeenSet = false;
431 bool m_primaryOwnerUsernameHasBeenSet = false;
432};
433
434} // namespace Model
435} // namespace QuickSight
436} // namespace Aws
bool IsEmailNotificationOptedForIngestionFailuresHasBeenSet() const
KnowledgeBase & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBase & WithCreatedAt(CreatedAtT &&value)
void SetDataSourceArn(DataSourceArnT &&value)
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)
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 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