AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
KnowledgeBaseData.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qconnect/QConnect_EXPORTS.h>
12#include <aws/qconnect/model/KnowledgeBaseStatus.h>
13#include <aws/qconnect/model/KnowledgeBaseType.h>
14#include <aws/qconnect/model/RenderingConfiguration.h>
15#include <aws/qconnect/model/ServerSideEncryptionConfiguration.h>
16#include <aws/qconnect/model/SourceConfiguration.h>
17#include <aws/qconnect/model/SyncStatus.h>
18#include <aws/qconnect/model/VectorIngestionConfiguration.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace QConnect {
30namespace Model {
31
38 public:
39 AWS_QCONNECT_API KnowledgeBaseData() = default;
42 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
49 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
50 template <typename KnowledgeBaseIdT = Aws::String>
52 m_knowledgeBaseIdHasBeenSet = true;
53 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
54 }
55 template <typename KnowledgeBaseIdT = Aws::String>
57 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
67 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
68 template <typename KnowledgeBaseArnT = Aws::String>
70 m_knowledgeBaseArnHasBeenSet = true;
71 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
72 }
73 template <typename KnowledgeBaseArnT = Aws::String>
75 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template <typename NameT = Aws::String>
87 void SetName(NameT&& value) {
88 m_nameHasBeenSet = true;
89 m_name = std::forward<NameT>(value);
90 }
91 template <typename NameT = Aws::String>
93 SetName(std::forward<NameT>(value));
94 return *this;
95 }
97
99
102 inline KnowledgeBaseType GetKnowledgeBaseType() const { return m_knowledgeBaseType; }
103 inline bool KnowledgeBaseTypeHasBeenSet() const { return m_knowledgeBaseTypeHasBeenSet; }
105 m_knowledgeBaseTypeHasBeenSet = true;
106 m_knowledgeBaseType = value;
107 }
110 return *this;
111 }
113
115
118 inline KnowledgeBaseStatus GetStatus() const { return m_status; }
119 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
120 inline void SetStatus(KnowledgeBaseStatus value) {
121 m_statusHasBeenSet = true;
122 m_status = value;
123 }
125 SetStatus(value);
126 return *this;
127 }
129
131
136 inline const Aws::Utils::DateTime& GetLastContentModificationTime() const { return m_lastContentModificationTime; }
137 inline bool LastContentModificationTimeHasBeenSet() const { return m_lastContentModificationTimeHasBeenSet; }
138 template <typename LastContentModificationTimeT = Aws::Utils::DateTime>
140 m_lastContentModificationTimeHasBeenSet = true;
141 m_lastContentModificationTime = std::forward<LastContentModificationTimeT>(value);
142 }
143 template <typename LastContentModificationTimeT = Aws::Utils::DateTime>
145 SetLastContentModificationTime(std::forward<LastContentModificationTimeT>(value));
146 return *this;
147 }
149
151
154 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const { return m_vectorIngestionConfiguration; }
155 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
156 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
158 m_vectorIngestionConfigurationHasBeenSet = true;
159 m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value);
160 }
161 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
163 SetVectorIngestionConfiguration(std::forward<VectorIngestionConfigurationT>(value));
164 return *this;
165 }
167
169
172 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
173 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
174 template <typename SourceConfigurationT = SourceConfiguration>
176 m_sourceConfigurationHasBeenSet = true;
177 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
178 }
179 template <typename SourceConfigurationT = SourceConfiguration>
181 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
182 return *this;
183 }
185
187
190 inline const RenderingConfiguration& GetRenderingConfiguration() const { return m_renderingConfiguration; }
191 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
192 template <typename RenderingConfigurationT = RenderingConfiguration>
194 m_renderingConfigurationHasBeenSet = true;
195 m_renderingConfiguration = std::forward<RenderingConfigurationT>(value);
196 }
197 template <typename RenderingConfigurationT = RenderingConfiguration>
199 SetRenderingConfiguration(std::forward<RenderingConfigurationT>(value));
200 return *this;
201 }
203
205
217 return m_serverSideEncryptionConfiguration;
218 }
219 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
220 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
222 m_serverSideEncryptionConfigurationHasBeenSet = true;
223 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
224 }
225 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
227 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::String& GetDescription() const { return m_description; }
237 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
238 template <typename DescriptionT = Aws::String>
240 m_descriptionHasBeenSet = true;
241 m_description = std::forward<DescriptionT>(value);
242 }
243 template <typename DescriptionT = Aws::String>
245 SetDescription(std::forward<DescriptionT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
255 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
256 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
257 void SetTags(TagsT&& value) {
258 m_tagsHasBeenSet = true;
259 m_tags = std::forward<TagsT>(value);
260 }
261 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
263 SetTags(std::forward<TagsT>(value));
264 return *this;
265 }
266 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
268 m_tagsHasBeenSet = true;
269 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
270 return *this;
271 }
273
275
278 inline SyncStatus GetIngestionStatus() const { return m_ingestionStatus; }
279 inline bool IngestionStatusHasBeenSet() const { return m_ingestionStatusHasBeenSet; }
280 inline void SetIngestionStatus(SyncStatus value) {
281 m_ingestionStatusHasBeenSet = true;
282 m_ingestionStatus = value;
283 }
285 SetIngestionStatus(value);
286 return *this;
287 }
289
291
294 inline const Aws::Vector<Aws::String>& GetIngestionFailureReasons() const { return m_ingestionFailureReasons; }
295 inline bool IngestionFailureReasonsHasBeenSet() const { return m_ingestionFailureReasonsHasBeenSet; }
296 template <typename IngestionFailureReasonsT = Aws::Vector<Aws::String>>
298 m_ingestionFailureReasonsHasBeenSet = true;
299 m_ingestionFailureReasons = std::forward<IngestionFailureReasonsT>(value);
300 }
301 template <typename IngestionFailureReasonsT = Aws::Vector<Aws::String>>
303 SetIngestionFailureReasons(std::forward<IngestionFailureReasonsT>(value));
304 return *this;
305 }
306 template <typename IngestionFailureReasonsT = Aws::String>
308 m_ingestionFailureReasonsHasBeenSet = true;
309 m_ingestionFailureReasons.emplace_back(std::forward<IngestionFailureReasonsT>(value));
310 return *this;
311 }
313 private:
314 Aws::String m_knowledgeBaseId;
315
316 Aws::String m_knowledgeBaseArn;
317
318 Aws::String m_name;
319
321
323
324 Aws::Utils::DateTime m_lastContentModificationTime{};
325
326 VectorIngestionConfiguration m_vectorIngestionConfiguration;
327
328 SourceConfiguration m_sourceConfiguration;
329
330 RenderingConfiguration m_renderingConfiguration;
331
332 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
333
334 Aws::String m_description;
335
337
338 SyncStatus m_ingestionStatus{SyncStatus::NOT_SET};
339
340 Aws::Vector<Aws::String> m_ingestionFailureReasons;
341 bool m_knowledgeBaseIdHasBeenSet = false;
342 bool m_knowledgeBaseArnHasBeenSet = false;
343 bool m_nameHasBeenSet = false;
344 bool m_knowledgeBaseTypeHasBeenSet = false;
345 bool m_statusHasBeenSet = false;
346 bool m_lastContentModificationTimeHasBeenSet = false;
347 bool m_vectorIngestionConfigurationHasBeenSet = false;
348 bool m_sourceConfigurationHasBeenSet = false;
349 bool m_renderingConfigurationHasBeenSet = false;
350 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
351 bool m_descriptionHasBeenSet = false;
352 bool m_tagsHasBeenSet = false;
353 bool m_ingestionStatusHasBeenSet = false;
354 bool m_ingestionFailureReasonsHasBeenSet = false;
355};
356
357} // namespace Model
358} // namespace QConnect
359} // namespace Aws
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
void SetSourceConfiguration(SourceConfigurationT &&value)
const Aws::Vector< Aws::String > & GetIngestionFailureReasons() const
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
AWS_QCONNECT_API KnowledgeBaseData()=default
const SourceConfiguration & GetSourceConfiguration() const
KnowledgeBaseData & WithRenderingConfiguration(RenderingConfigurationT &&value)
KnowledgeBaseData & WithStatus(KnowledgeBaseStatus value)
KnowledgeBaseData & AddTags(TagsKeyT &&key, TagsValueT &&value)
KnowledgeBaseData & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
KnowledgeBaseData & WithDescription(DescriptionT &&value)
KnowledgeBaseData & AddIngestionFailureReasons(IngestionFailureReasonsT &&value)
void SetStatus(KnowledgeBaseStatus value)
void SetKnowledgeBaseType(KnowledgeBaseType value)
void SetLastContentModificationTime(LastContentModificationTimeT &&value)
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
AWS_QCONNECT_API KnowledgeBaseData & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBaseData & WithTags(TagsT &&value)
KnowledgeBaseData & WithVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
const Aws::Utils::DateTime & GetLastContentModificationTime() const
void SetIngestionFailureReasons(IngestionFailureReasonsT &&value)
AWS_QCONNECT_API KnowledgeBaseData(Aws::Utils::Json::JsonView jsonValue)
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
KnowledgeBaseData & WithIngestionFailureReasons(IngestionFailureReasonsT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKnowledgeBaseId() const
void SetRenderingConfiguration(RenderingConfigurationT &&value)
KnowledgeBaseData & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
const RenderingConfiguration & GetRenderingConfiguration() const
KnowledgeBaseType GetKnowledgeBaseType() const
KnowledgeBaseData & WithKnowledgeBaseType(KnowledgeBaseType value)
KnowledgeBaseData & WithSourceConfiguration(SourceConfigurationT &&value)
KnowledgeBaseData & WithLastContentModificationTime(LastContentModificationTimeT &&value)
const Aws::String & GetKnowledgeBaseArn() const
KnowledgeBaseData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
KnowledgeBaseData & WithIngestionStatus(SyncStatus value)
KnowledgeBaseData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue