AWS SDK for C++

AWS SDK for C++ Version 1.11.745

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/wisdom/ConnectWisdomService_EXPORTS.h>
10#include <aws/wisdom/model/KnowledgeBaseStatus.h>
11#include <aws/wisdom/model/KnowledgeBaseType.h>
12#include <aws/wisdom/model/RenderingConfiguration.h>
13#include <aws/wisdom/model/ServerSideEncryptionConfiguration.h>
14#include <aws/wisdom/model/SourceConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ConnectWisdomService {
26namespace Model {
27
34 public:
35 AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseSummary() = default;
36 AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetDescription() const { return m_description; }
45 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
46 template <typename DescriptionT = Aws::String>
47 void SetDescription(DescriptionT&& value) {
48 m_descriptionHasBeenSet = true;
49 m_description = std::forward<DescriptionT>(value);
50 }
51 template <typename DescriptionT = Aws::String>
52 KnowledgeBaseSummary& WithDescription(DescriptionT&& value) {
53 SetDescription(std::forward<DescriptionT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
63 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
64 template <typename KnowledgeBaseArnT = Aws::String>
65 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
66 m_knowledgeBaseArnHasBeenSet = true;
67 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
68 }
69 template <typename KnowledgeBaseArnT = Aws::String>
70 KnowledgeBaseSummary& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
71 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
82 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
83 template <typename KnowledgeBaseIdT = Aws::String>
84 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
85 m_knowledgeBaseIdHasBeenSet = true;
86 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
87 }
88 template <typename KnowledgeBaseIdT = Aws::String>
89 KnowledgeBaseSummary& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
90 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(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 const Aws::String& GetName() const { return m_name; }
116 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
117 template <typename NameT = Aws::String>
118 void SetName(NameT&& value) {
119 m_nameHasBeenSet = true;
120 m_name = std::forward<NameT>(value);
121 }
122 template <typename NameT = Aws::String>
124 SetName(std::forward<NameT>(value));
125 return *this;
126 }
128
130
133 inline const RenderingConfiguration& GetRenderingConfiguration() const { return m_renderingConfiguration; }
134 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
135 template <typename RenderingConfigurationT = RenderingConfiguration>
136 void SetRenderingConfiguration(RenderingConfigurationT&& value) {
137 m_renderingConfigurationHasBeenSet = true;
138 m_renderingConfiguration = std::forward<RenderingConfigurationT>(value);
139 }
140 template <typename RenderingConfigurationT = RenderingConfiguration>
141 KnowledgeBaseSummary& WithRenderingConfiguration(RenderingConfigurationT&& value) {
142 SetRenderingConfiguration(std::forward<RenderingConfigurationT>(value));
143 return *this;
144 }
146
148
159 return m_serverSideEncryptionConfiguration;
160 }
161 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
162 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
163 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
164 m_serverSideEncryptionConfigurationHasBeenSet = true;
165 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
166 }
167 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
168 KnowledgeBaseSummary& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
169 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
170 return *this;
171 }
173
175
178 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
179 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
180 template <typename SourceConfigurationT = SourceConfiguration>
181 void SetSourceConfiguration(SourceConfigurationT&& value) {
182 m_sourceConfigurationHasBeenSet = true;
183 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
184 }
185 template <typename SourceConfigurationT = SourceConfiguration>
186 KnowledgeBaseSummary& WithSourceConfiguration(SourceConfigurationT&& value) {
187 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
188 return *this;
189 }
191
193
196 inline KnowledgeBaseStatus GetStatus() const { return m_status; }
197 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
198 inline void SetStatus(KnowledgeBaseStatus value) {
199 m_statusHasBeenSet = true;
200 m_status = value;
201 }
203 SetStatus(value);
204 return *this;
205 }
207
209
212 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
213 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
214 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
215 void SetTags(TagsT&& value) {
216 m_tagsHasBeenSet = true;
217 m_tags = std::forward<TagsT>(value);
218 }
219 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
221 SetTags(std::forward<TagsT>(value));
222 return *this;
223 }
224 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
225 KnowledgeBaseSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
226 m_tagsHasBeenSet = true;
227 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_description;
233
234 Aws::String m_knowledgeBaseArn;
235
236 Aws::String m_knowledgeBaseId;
237
239
240 Aws::String m_name;
241
242 RenderingConfiguration m_renderingConfiguration;
243
244 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
245
246 SourceConfiguration m_sourceConfiguration;
247
249
251 bool m_descriptionHasBeenSet = false;
252 bool m_knowledgeBaseArnHasBeenSet = false;
253 bool m_knowledgeBaseIdHasBeenSet = false;
254 bool m_knowledgeBaseTypeHasBeenSet = false;
255 bool m_nameHasBeenSet = false;
256 bool m_renderingConfigurationHasBeenSet = false;
257 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
258 bool m_sourceConfigurationHasBeenSet = false;
259 bool m_statusHasBeenSet = false;
260 bool m_tagsHasBeenSet = false;
261};
262
263} // namespace Model
264} // namespace ConnectWisdomService
265} // namespace Aws
AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseSummary(Aws::Utils::Json::JsonView jsonValue)
KnowledgeBaseSummary & WithStatus(KnowledgeBaseStatus value)
KnowledgeBaseSummary & WithKnowledgeBaseType(KnowledgeBaseType value)
KnowledgeBaseSummary & WithSourceConfiguration(SourceConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
KnowledgeBaseSummary & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
KnowledgeBaseSummary & WithDescription(DescriptionT &&value)
AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRenderingConfiguration(RenderingConfigurationT &&value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
KnowledgeBaseSummary & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
KnowledgeBaseSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBaseSummary & WithRenderingConfiguration(RenderingConfigurationT &&value)
KnowledgeBaseSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseSummary()=default
const RenderingConfiguration & GetRenderingConfiguration() 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