AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
KnowledgeBaseData.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/model/KnowledgeBaseType.h>
10#include <aws/qconnect/model/KnowledgeBaseStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/qconnect/model/VectorIngestionConfiguration.h>
13#include <aws/qconnect/model/SourceConfiguration.h>
14#include <aws/qconnect/model/RenderingConfiguration.h>
15#include <aws/qconnect/model/ServerSideEncryptionConfiguration.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/qconnect/model/SyncStatus.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace QConnect
32{
33namespace Model
34{
35
42 {
43 public:
44 AWS_QCONNECT_API KnowledgeBaseData() = default;
47 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
55 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
56 template<typename KnowledgeBaseIdT = Aws::String>
57 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
58 template<typename KnowledgeBaseIdT = Aws::String>
59 KnowledgeBaseData& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
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>
69 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
70 template<typename KnowledgeBaseArnT = Aws::String>
71 KnowledgeBaseData& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template<typename NameT = Aws::String>
81 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
82 template<typename NameT = Aws::String>
83 KnowledgeBaseData& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
85
87
90 inline KnowledgeBaseType GetKnowledgeBaseType() const { return m_knowledgeBaseType; }
91 inline bool KnowledgeBaseTypeHasBeenSet() const { return m_knowledgeBaseTypeHasBeenSet; }
92 inline void SetKnowledgeBaseType(KnowledgeBaseType value) { m_knowledgeBaseTypeHasBeenSet = true; m_knowledgeBaseType = value; }
95
97
100 inline KnowledgeBaseStatus GetStatus() const { return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 inline void SetStatus(KnowledgeBaseStatus value) { m_statusHasBeenSet = true; m_status = value; }
103 inline KnowledgeBaseData& WithStatus(KnowledgeBaseStatus value) { SetStatus(value); return *this;}
105
107
112 inline const Aws::Utils::DateTime& GetLastContentModificationTime() const { return m_lastContentModificationTime; }
113 inline bool LastContentModificationTimeHasBeenSet() const { return m_lastContentModificationTimeHasBeenSet; }
114 template<typename LastContentModificationTimeT = Aws::Utils::DateTime>
115 void SetLastContentModificationTime(LastContentModificationTimeT&& value) { m_lastContentModificationTimeHasBeenSet = true; m_lastContentModificationTime = std::forward<LastContentModificationTimeT>(value); }
116 template<typename LastContentModificationTimeT = Aws::Utils::DateTime>
117 KnowledgeBaseData& WithLastContentModificationTime(LastContentModificationTimeT&& value) { SetLastContentModificationTime(std::forward<LastContentModificationTimeT>(value)); return *this;}
119
121
124 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const { return m_vectorIngestionConfiguration; }
125 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
126 template<typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
127 void SetVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value); }
128 template<typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
129 KnowledgeBaseData& WithVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) { SetVectorIngestionConfiguration(std::forward<VectorIngestionConfigurationT>(value)); return *this;}
131
133
136 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
137 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
138 template<typename SourceConfigurationT = SourceConfiguration>
139 void SetSourceConfiguration(SourceConfigurationT&& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = std::forward<SourceConfigurationT>(value); }
140 template<typename SourceConfigurationT = SourceConfiguration>
141 KnowledgeBaseData& WithSourceConfiguration(SourceConfigurationT&& value) { SetSourceConfiguration(std::forward<SourceConfigurationT>(value)); return *this;}
143
145
148 inline const RenderingConfiguration& GetRenderingConfiguration() const { return m_renderingConfiguration; }
149 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
150 template<typename RenderingConfigurationT = RenderingConfiguration>
151 void SetRenderingConfiguration(RenderingConfigurationT&& value) { m_renderingConfigurationHasBeenSet = true; m_renderingConfiguration = std::forward<RenderingConfigurationT>(value); }
152 template<typename RenderingConfigurationT = RenderingConfiguration>
153 KnowledgeBaseData& WithRenderingConfiguration(RenderingConfigurationT&& value) { SetRenderingConfiguration(std::forward<RenderingConfigurationT>(value)); return *this;}
155
157
168 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const { return m_serverSideEncryptionConfiguration; }
169 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
170 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
171 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value); }
172 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
173 KnowledgeBaseData& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value)); return *this;}
175
177
180 inline const Aws::String& GetDescription() const { return m_description; }
181 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
182 template<typename DescriptionT = Aws::String>
183 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
184 template<typename DescriptionT = Aws::String>
185 KnowledgeBaseData& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
187
189
192 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
193 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
195 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
196 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 KnowledgeBaseData& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
198 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
200 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
201 }
203
205
208 inline SyncStatus GetIngestionStatus() const { return m_ingestionStatus; }
209 inline bool IngestionStatusHasBeenSet() const { return m_ingestionStatusHasBeenSet; }
210 inline void SetIngestionStatus(SyncStatus value) { m_ingestionStatusHasBeenSet = true; m_ingestionStatus = value; }
213
215
218 inline const Aws::Vector<Aws::String>& GetIngestionFailureReasons() const { return m_ingestionFailureReasons; }
219 inline bool IngestionFailureReasonsHasBeenSet() const { return m_ingestionFailureReasonsHasBeenSet; }
220 template<typename IngestionFailureReasonsT = Aws::Vector<Aws::String>>
221 void SetIngestionFailureReasons(IngestionFailureReasonsT&& value) { m_ingestionFailureReasonsHasBeenSet = true; m_ingestionFailureReasons = std::forward<IngestionFailureReasonsT>(value); }
222 template<typename IngestionFailureReasonsT = Aws::Vector<Aws::String>>
223 KnowledgeBaseData& WithIngestionFailureReasons(IngestionFailureReasonsT&& value) { SetIngestionFailureReasons(std::forward<IngestionFailureReasonsT>(value)); return *this;}
224 template<typename IngestionFailureReasonsT = Aws::String>
225 KnowledgeBaseData& AddIngestionFailureReasons(IngestionFailureReasonsT&& value) { m_ingestionFailureReasonsHasBeenSet = true; m_ingestionFailureReasons.emplace_back(std::forward<IngestionFailureReasonsT>(value)); return *this; }
227 private:
228
229 Aws::String m_knowledgeBaseId;
230 bool m_knowledgeBaseIdHasBeenSet = false;
231
232 Aws::String m_knowledgeBaseArn;
233 bool m_knowledgeBaseArnHasBeenSet = false;
234
235 Aws::String m_name;
236 bool m_nameHasBeenSet = false;
237
239 bool m_knowledgeBaseTypeHasBeenSet = false;
240
242 bool m_statusHasBeenSet = false;
243
244 Aws::Utils::DateTime m_lastContentModificationTime{};
245 bool m_lastContentModificationTimeHasBeenSet = false;
246
247 VectorIngestionConfiguration m_vectorIngestionConfiguration;
248 bool m_vectorIngestionConfigurationHasBeenSet = false;
249
250 SourceConfiguration m_sourceConfiguration;
251 bool m_sourceConfigurationHasBeenSet = false;
252
253 RenderingConfiguration m_renderingConfiguration;
254 bool m_renderingConfigurationHasBeenSet = false;
255
256 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
257 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
258
259 Aws::String m_description;
260 bool m_descriptionHasBeenSet = false;
261
263 bool m_tagsHasBeenSet = false;
264
265 SyncStatus m_ingestionStatus{SyncStatus::NOT_SET};
266 bool m_ingestionStatusHasBeenSet = false;
267
268 Aws::Vector<Aws::String> m_ingestionFailureReasons;
269 bool m_ingestionFailureReasonsHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace QConnect
274} // 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