AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
KnowledgeBaseSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/KnowledgeBaseStatus.h>
11#include <aws/qconnect/model/KnowledgeBaseType.h>
12#include <aws/qconnect/model/RenderingConfiguration.h>
13#include <aws/qconnect/model/ServerSideEncryptionConfiguration.h>
14#include <aws/qconnect/model/SourceConfiguration.h>
15#include <aws/qconnect/model/VectorIngestionConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace QConnect {
27namespace Model {
28
35 public:
36 AWS_QCONNECT_API KnowledgeBaseSummary() = default;
39 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
46 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
47 template <typename KnowledgeBaseIdT = Aws::String>
49 m_knowledgeBaseIdHasBeenSet = true;
50 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
51 }
52 template <typename KnowledgeBaseIdT = Aws::String>
54 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
64 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
65 template <typename KnowledgeBaseArnT = Aws::String>
67 m_knowledgeBaseArnHasBeenSet = true;
68 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
69 }
70 template <typename KnowledgeBaseArnT = Aws::String>
72 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(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>
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
99 inline KnowledgeBaseType GetKnowledgeBaseType() const { return m_knowledgeBaseType; }
100 inline bool KnowledgeBaseTypeHasBeenSet() const { return m_knowledgeBaseTypeHasBeenSet; }
102 m_knowledgeBaseTypeHasBeenSet = true;
103 m_knowledgeBaseType = value;
104 }
107 return *this;
108 }
110
112
115 inline KnowledgeBaseStatus GetStatus() const { return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(KnowledgeBaseStatus value) {
118 m_statusHasBeenSet = true;
119 m_status = value;
120 }
122 SetStatus(value);
123 return *this;
124 }
126
128
131 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
132 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
133 template <typename SourceConfigurationT = SourceConfiguration>
135 m_sourceConfigurationHasBeenSet = true;
136 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
137 }
138 template <typename SourceConfigurationT = SourceConfiguration>
140 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
141 return *this;
142 }
144
146
149 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const { return m_vectorIngestionConfiguration; }
150 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
151 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
153 m_vectorIngestionConfigurationHasBeenSet = true;
154 m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value);
155 }
156 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
158 SetVectorIngestionConfiguration(std::forward<VectorIngestionConfigurationT>(value));
159 return *this;
160 }
162
164
167 inline const RenderingConfiguration& GetRenderingConfiguration() const { return m_renderingConfiguration; }
168 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
169 template <typename RenderingConfigurationT = RenderingConfiguration>
171 m_renderingConfigurationHasBeenSet = true;
172 m_renderingConfiguration = std::forward<RenderingConfigurationT>(value);
173 }
174 template <typename RenderingConfigurationT = RenderingConfiguration>
176 SetRenderingConfiguration(std::forward<RenderingConfigurationT>(value));
177 return *this;
178 }
180
182
194 return m_serverSideEncryptionConfiguration;
195 }
196 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
197 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
199 m_serverSideEncryptionConfigurationHasBeenSet = true;
200 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
201 }
202 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
204 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetDescription() const { return m_description; }
214 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
215 template <typename DescriptionT = Aws::String>
217 m_descriptionHasBeenSet = true;
218 m_description = std::forward<DescriptionT>(value);
219 }
220 template <typename DescriptionT = Aws::String>
222 SetDescription(std::forward<DescriptionT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
232 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
233 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
234 void SetTags(TagsT&& value) {
235 m_tagsHasBeenSet = true;
236 m_tags = std::forward<TagsT>(value);
237 }
238 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
240 SetTags(std::forward<TagsT>(value));
241 return *this;
242 }
243 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
245 m_tagsHasBeenSet = true;
246 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
247 return *this;
248 }
250 private:
251 Aws::String m_knowledgeBaseId;
252
253 Aws::String m_knowledgeBaseArn;
254
255 Aws::String m_name;
256
258
260
261 SourceConfiguration m_sourceConfiguration;
262
263 VectorIngestionConfiguration m_vectorIngestionConfiguration;
264
265 RenderingConfiguration m_renderingConfiguration;
266
267 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
268
269 Aws::String m_description;
270
272 bool m_knowledgeBaseIdHasBeenSet = false;
273 bool m_knowledgeBaseArnHasBeenSet = false;
274 bool m_nameHasBeenSet = false;
275 bool m_knowledgeBaseTypeHasBeenSet = false;
276 bool m_statusHasBeenSet = false;
277 bool m_sourceConfigurationHasBeenSet = false;
278 bool m_vectorIngestionConfigurationHasBeenSet = false;
279 bool m_renderingConfigurationHasBeenSet = false;
280 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
281 bool m_descriptionHasBeenSet = false;
282 bool m_tagsHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace QConnect
287} // namespace Aws
AWS_QCONNECT_API KnowledgeBaseSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseSummary & WithStatus(KnowledgeBaseStatus value)
KnowledgeBaseSummary & WithDescription(DescriptionT &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
void SetRenderingConfiguration(RenderingConfigurationT &&value)
AWS_QCONNECT_API KnowledgeBaseSummary()=default
KnowledgeBaseSummary & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
KnowledgeBaseSummary & WithName(NameT &&value)
void SetVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
KnowledgeBaseSummary & WithSourceConfiguration(SourceConfigurationT &&value)
KnowledgeBaseSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBaseSummary & WithKnowledgeBaseType(KnowledgeBaseType value)
KnowledgeBaseSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
KnowledgeBaseSummary & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
void SetKnowledgeBaseType(KnowledgeBaseType value)
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
KnowledgeBaseSummary & WithTags(TagsT &&value)
KnowledgeBaseSummary & WithVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
KnowledgeBaseSummary & WithRenderingConfiguration(RenderingConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_QCONNECT_API KnowledgeBaseSummary(Aws::Utils::Json::JsonView jsonValue)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
const SourceConfiguration & GetSourceConfiguration() const
void SetSourceConfiguration(SourceConfigurationT &&value)
const RenderingConfiguration & GetRenderingConfiguration() const
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
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
Aws::Utils::Json::JsonValue JsonValue