AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
KnowledgeBaseSummary.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/qconnect/QConnect_EXPORTS.h>
11#include <aws/qconnect/model/KnowledgeBaseStatus.h>
12#include <aws/qconnect/model/KnowledgeBaseType.h>
13#include <aws/qconnect/model/RenderingConfiguration.h>
14#include <aws/qconnect/model/ServerSideEncryptionConfiguration.h>
15#include <aws/qconnect/model/SourceConfiguration.h>
16#include <aws/qconnect/model/VectorIngestionConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace QConnect {
28namespace Model {
29
36 public:
37 AWS_QCONNECT_API KnowledgeBaseSummary() = default;
40 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
47 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
48 template <typename KnowledgeBaseIdT = Aws::String>
49 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
50 m_knowledgeBaseIdHasBeenSet = true;
51 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
52 }
53 template <typename KnowledgeBaseIdT = Aws::String>
54 KnowledgeBaseSummary& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
55 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
65 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
66 template <typename KnowledgeBaseArnT = Aws::String>
67 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
68 m_knowledgeBaseArnHasBeenSet = true;
69 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
70 }
71 template <typename KnowledgeBaseArnT = Aws::String>
72 KnowledgeBaseSummary& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
73 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template <typename NameT = Aws::String>
85 void SetName(NameT&& value) {
86 m_nameHasBeenSet = true;
87 m_name = std::forward<NameT>(value);
88 }
89 template <typename NameT = Aws::String>
91 SetName(std::forward<NameT>(value));
92 return *this;
93 }
95
97
100 inline KnowledgeBaseType GetKnowledgeBaseType() const { return m_knowledgeBaseType; }
101 inline bool KnowledgeBaseTypeHasBeenSet() const { return m_knowledgeBaseTypeHasBeenSet; }
103 m_knowledgeBaseTypeHasBeenSet = true;
104 m_knowledgeBaseType = value;
105 }
108 return *this;
109 }
111
113
116 inline KnowledgeBaseStatus GetStatus() const { return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 inline void SetStatus(KnowledgeBaseStatus value) {
119 m_statusHasBeenSet = true;
120 m_status = value;
121 }
123 SetStatus(value);
124 return *this;
125 }
127
129
132 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
133 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
134 template <typename SourceConfigurationT = SourceConfiguration>
135 void SetSourceConfiguration(SourceConfigurationT&& value) {
136 m_sourceConfigurationHasBeenSet = true;
137 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
138 }
139 template <typename SourceConfigurationT = SourceConfiguration>
140 KnowledgeBaseSummary& WithSourceConfiguration(SourceConfigurationT&& value) {
141 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
142 return *this;
143 }
145
147
150 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const { return m_vectorIngestionConfiguration; }
151 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
152 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
153 void SetVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) {
154 m_vectorIngestionConfigurationHasBeenSet = true;
155 m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value);
156 }
157 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
158 KnowledgeBaseSummary& WithVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) {
159 SetVectorIngestionConfiguration(std::forward<VectorIngestionConfigurationT>(value));
160 return *this;
161 }
163
165
168 inline const RenderingConfiguration& GetRenderingConfiguration() const { return m_renderingConfiguration; }
169 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
170 template <typename RenderingConfigurationT = RenderingConfiguration>
171 void SetRenderingConfiguration(RenderingConfigurationT&& value) {
172 m_renderingConfigurationHasBeenSet = true;
173 m_renderingConfiguration = std::forward<RenderingConfigurationT>(value);
174 }
175 template <typename RenderingConfigurationT = RenderingConfiguration>
176 KnowledgeBaseSummary& WithRenderingConfiguration(RenderingConfigurationT&& value) {
177 SetRenderingConfiguration(std::forward<RenderingConfigurationT>(value));
178 return *this;
179 }
181
183
195 return m_serverSideEncryptionConfiguration;
196 }
197 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
198 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
199 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
200 m_serverSideEncryptionConfigurationHasBeenSet = true;
201 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
202 }
203 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
204 KnowledgeBaseSummary& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
205 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetDescription() const { return m_description; }
215 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
216 template <typename DescriptionT = Aws::String>
217 void SetDescription(DescriptionT&& value) {
218 m_descriptionHasBeenSet = true;
219 m_description = std::forward<DescriptionT>(value);
220 }
221 template <typename DescriptionT = Aws::String>
222 KnowledgeBaseSummary& WithDescription(DescriptionT&& value) {
223 SetDescription(std::forward<DescriptionT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
233 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
234 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
235 void SetTags(TagsT&& value) {
236 m_tagsHasBeenSet = true;
237 m_tags = std::forward<TagsT>(value);
238 }
239 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
241 SetTags(std::forward<TagsT>(value));
242 return *this;
243 }
244 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
245 KnowledgeBaseSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
246 m_tagsHasBeenSet = true;
247 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
257 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
258 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
259 void SetLastModifiedTime(LastModifiedTimeT&& value) {
260 m_lastModifiedTimeHasBeenSet = true;
261 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
262 }
263 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
264 KnowledgeBaseSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
265 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
266 return *this;
267 }
269
271
275 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
276 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
277 template <typename LastModifiedRegionT = Aws::String>
278 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
279 m_lastModifiedRegionHasBeenSet = true;
280 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
281 }
282 template <typename LastModifiedRegionT = Aws::String>
283 KnowledgeBaseSummary& WithLastModifiedRegion(LastModifiedRegionT&& value) {
284 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
285 return *this;
286 }
288 private:
289 Aws::String m_knowledgeBaseId;
290
291 Aws::String m_knowledgeBaseArn;
292
293 Aws::String m_name;
294
296
298
299 SourceConfiguration m_sourceConfiguration;
300
301 VectorIngestionConfiguration m_vectorIngestionConfiguration;
302
303 RenderingConfiguration m_renderingConfiguration;
304
305 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
306
307 Aws::String m_description;
308
310
311 Aws::Utils::DateTime m_lastModifiedTime{};
312
313 Aws::String m_lastModifiedRegion;
314 bool m_knowledgeBaseIdHasBeenSet = false;
315 bool m_knowledgeBaseArnHasBeenSet = false;
316 bool m_nameHasBeenSet = false;
317 bool m_knowledgeBaseTypeHasBeenSet = false;
318 bool m_statusHasBeenSet = false;
319 bool m_sourceConfigurationHasBeenSet = false;
320 bool m_vectorIngestionConfigurationHasBeenSet = false;
321 bool m_renderingConfigurationHasBeenSet = false;
322 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
323 bool m_descriptionHasBeenSet = false;
324 bool m_tagsHasBeenSet = false;
325 bool m_lastModifiedTimeHasBeenSet = false;
326 bool m_lastModifiedRegionHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace QConnect
331} // namespace Aws
AWS_QCONNECT_API KnowledgeBaseSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseSummary & WithStatus(KnowledgeBaseStatus value)
void SetLastModifiedRegion(LastModifiedRegionT &&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)
const Aws::Utils::DateTime & GetLastModifiedTime() const
KnowledgeBaseSummary & WithKnowledgeBaseType(KnowledgeBaseType value)
KnowledgeBaseSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
KnowledgeBaseSummary & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
void SetKnowledgeBaseType(KnowledgeBaseType value)
KnowledgeBaseSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
KnowledgeBaseSummary & WithLastModifiedRegion(LastModifiedRegionT &&value)
KnowledgeBaseSummary & WithTags(TagsT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&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::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