AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/wisdom/ConnectWisdomService_EXPORTS.h>
11#include <aws/wisdom/model/KnowledgeBaseStatus.h>
12#include <aws/wisdom/model/KnowledgeBaseType.h>
13#include <aws/wisdom/model/RenderingConfiguration.h>
14#include <aws/wisdom/model/ServerSideEncryptionConfiguration.h>
15#include <aws/wisdom/model/SourceConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ConnectWisdomService {
27namespace Model {
28
35 public:
36 AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseData() = default;
37 AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseData(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseData& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetDescription() const { return m_description; }
46 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
47 template <typename DescriptionT = Aws::String>
48 void SetDescription(DescriptionT&& value) {
49 m_descriptionHasBeenSet = true;
50 m_description = std::forward<DescriptionT>(value);
51 }
52 template <typename DescriptionT = Aws::String>
53 KnowledgeBaseData& WithDescription(DescriptionT&& value) {
54 SetDescription(std::forward<DescriptionT>(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>
66 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
67 m_knowledgeBaseArnHasBeenSet = true;
68 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
69 }
70 template <typename KnowledgeBaseArnT = Aws::String>
71 KnowledgeBaseData& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
72 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
83 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
84 template <typename KnowledgeBaseIdT = Aws::String>
85 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
86 m_knowledgeBaseIdHasBeenSet = true;
87 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
88 }
89 template <typename KnowledgeBaseIdT = Aws::String>
90 KnowledgeBaseData& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
91 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(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
118 inline const Aws::Utils::DateTime& GetLastContentModificationTime() const { return m_lastContentModificationTime; }
119 inline bool LastContentModificationTimeHasBeenSet() const { return m_lastContentModificationTimeHasBeenSet; }
120 template <typename LastContentModificationTimeT = Aws::Utils::DateTime>
121 void SetLastContentModificationTime(LastContentModificationTimeT&& value) {
122 m_lastContentModificationTimeHasBeenSet = true;
123 m_lastContentModificationTime = std::forward<LastContentModificationTimeT>(value);
124 }
125 template <typename LastContentModificationTimeT = Aws::Utils::DateTime>
126 KnowledgeBaseData& WithLastContentModificationTime(LastContentModificationTimeT&& value) {
127 SetLastContentModificationTime(std::forward<LastContentModificationTimeT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetName() const { return m_name; }
137 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
138 template <typename NameT = Aws::String>
139 void SetName(NameT&& value) {
140 m_nameHasBeenSet = true;
141 m_name = std::forward<NameT>(value);
142 }
143 template <typename NameT = Aws::String>
144 KnowledgeBaseData& WithName(NameT&& value) {
145 SetName(std::forward<NameT>(value));
146 return *this;
147 }
149
151
154 inline const RenderingConfiguration& GetRenderingConfiguration() const { return m_renderingConfiguration; }
155 inline bool RenderingConfigurationHasBeenSet() const { return m_renderingConfigurationHasBeenSet; }
156 template <typename RenderingConfigurationT = RenderingConfiguration>
157 void SetRenderingConfiguration(RenderingConfigurationT&& value) {
158 m_renderingConfigurationHasBeenSet = true;
159 m_renderingConfiguration = std::forward<RenderingConfigurationT>(value);
160 }
161 template <typename RenderingConfigurationT = RenderingConfiguration>
162 KnowledgeBaseData& WithRenderingConfiguration(RenderingConfigurationT&& value) {
163 SetRenderingConfiguration(std::forward<RenderingConfigurationT>(value));
164 return *this;
165 }
167
169
180 return m_serverSideEncryptionConfiguration;
181 }
182 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
183 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
184 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
185 m_serverSideEncryptionConfigurationHasBeenSet = true;
186 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
187 }
188 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
189 KnowledgeBaseData& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) {
190 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
191 return *this;
192 }
194
196
199 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
200 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
201 template <typename SourceConfigurationT = SourceConfiguration>
202 void SetSourceConfiguration(SourceConfigurationT&& value) {
203 m_sourceConfigurationHasBeenSet = true;
204 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
205 }
206 template <typename SourceConfigurationT = SourceConfiguration>
207 KnowledgeBaseData& WithSourceConfiguration(SourceConfigurationT&& value) {
208 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
209 return *this;
210 }
212
214
217 inline KnowledgeBaseStatus GetStatus() const { return m_status; }
218 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
219 inline void SetStatus(KnowledgeBaseStatus value) {
220 m_statusHasBeenSet = true;
221 m_status = value;
222 }
224 SetStatus(value);
225 return *this;
226 }
228
230
233 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
234 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
235 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
236 void SetTags(TagsT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags = std::forward<TagsT>(value);
239 }
240 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
241 KnowledgeBaseData& WithTags(TagsT&& value) {
242 SetTags(std::forward<TagsT>(value));
243 return *this;
244 }
245 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
246 KnowledgeBaseData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
247 m_tagsHasBeenSet = true;
248 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_description;
254
255 Aws::String m_knowledgeBaseArn;
256
257 Aws::String m_knowledgeBaseId;
258
260
261 Aws::Utils::DateTime m_lastContentModificationTime{};
262
263 Aws::String m_name;
264
265 RenderingConfiguration m_renderingConfiguration;
266
267 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
268
269 SourceConfiguration m_sourceConfiguration;
270
272
274 bool m_descriptionHasBeenSet = false;
275 bool m_knowledgeBaseArnHasBeenSet = false;
276 bool m_knowledgeBaseIdHasBeenSet = false;
277 bool m_knowledgeBaseTypeHasBeenSet = false;
278 bool m_lastContentModificationTimeHasBeenSet = false;
279 bool m_nameHasBeenSet = false;
280 bool m_renderingConfigurationHasBeenSet = false;
281 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
282 bool m_sourceConfigurationHasBeenSet = false;
283 bool m_statusHasBeenSet = false;
284 bool m_tagsHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace ConnectWisdomService
289} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetRenderingConfiguration(RenderingConfigurationT &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
KnowledgeBaseData & WithRenderingConfiguration(RenderingConfigurationT &&value)
KnowledgeBaseData & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
KnowledgeBaseData & WithSourceConfiguration(SourceConfigurationT &&value)
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseData(Aws::Utils::Json::JsonView jsonValue)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
const Aws::Utils::DateTime & GetLastContentModificationTime() const
const RenderingConfiguration & GetRenderingConfiguration() const
KnowledgeBaseData & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetSourceConfiguration(SourceConfigurationT &&value)
void SetLastContentModificationTime(LastContentModificationTimeT &&value)
KnowledgeBaseData & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBaseData & WithStatus(KnowledgeBaseStatus value)
KnowledgeBaseData & WithLastContentModificationTime(LastContentModificationTimeT &&value)
const SourceConfiguration & GetSourceConfiguration() const
KnowledgeBaseData & WithKnowledgeBaseType(KnowledgeBaseType value)
AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseData()=default
KnowledgeBaseData & WithDescription(DescriptionT &&value)
KnowledgeBaseData & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
AWS_CONNECTWISDOMSERVICE_API KnowledgeBaseData & operator=(Aws::Utils::Json::JsonView jsonValue)
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