AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
KnowledgeBase.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/KnowledgeBaseConfiguration.h>
9#include <aws/bedrock-agent/model/KnowledgeBaseStatus.h>
10#include <aws/bedrock-agent/model/MetadataConfiguration.h>
11#include <aws/bedrock-agent/model/StorageConfiguration.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgent {
26namespace Model {
27
34 public:
35 AWS_BEDROCKAGENT_API KnowledgeBase() = default;
36 AWS_BEDROCKAGENT_API KnowledgeBase(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKAGENT_API KnowledgeBase& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
45 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
46 template <typename KnowledgeBaseIdT = Aws::String>
47 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
48 m_knowledgeBaseIdHasBeenSet = true;
49 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
50 }
51 template <typename KnowledgeBaseIdT = Aws::String>
52 KnowledgeBase& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) {
53 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 KnowledgeBase& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
81 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
82 template <typename KnowledgeBaseArnT = Aws::String>
83 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
84 m_knowledgeBaseArnHasBeenSet = true;
85 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
86 }
87 template <typename KnowledgeBaseArnT = Aws::String>
88 KnowledgeBase& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) {
89 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
106 KnowledgeBase& WithDescription(DescriptionT&& value) {
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
118 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
119 template <typename RoleArnT = Aws::String>
120 void SetRoleArn(RoleArnT&& value) {
121 m_roleArnHasBeenSet = true;
122 m_roleArn = std::forward<RoleArnT>(value);
123 }
124 template <typename RoleArnT = Aws::String>
125 KnowledgeBase& WithRoleArn(RoleArnT&& value) {
126 SetRoleArn(std::forward<RoleArnT>(value));
127 return *this;
128 }
130
132
136 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
137 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
138 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
139 void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
140 m_knowledgeBaseConfigurationHasBeenSet = true;
141 m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value);
142 }
143 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
144 KnowledgeBase& WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
145 SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value));
146 return *this;
147 }
149
151
154 inline const StorageConfiguration& GetStorageConfiguration() const { return m_storageConfiguration; }
155 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
156 template <typename StorageConfigurationT = StorageConfiguration>
157 void SetStorageConfiguration(StorageConfigurationT&& value) {
158 m_storageConfigurationHasBeenSet = true;
159 m_storageConfiguration = std::forward<StorageConfigurationT>(value);
160 }
161 template <typename StorageConfigurationT = StorageConfiguration>
162 KnowledgeBase& WithStorageConfiguration(StorageConfigurationT&& value) {
163 SetStorageConfiguration(std::forward<StorageConfigurationT>(value));
164 return *this;
165 }
167
169
177 inline KnowledgeBaseStatus GetStatus() const { return m_status; }
178 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
179 inline void SetStatus(KnowledgeBaseStatus value) {
180 m_statusHasBeenSet = true;
181 m_status = value;
182 }
184 SetStatus(value);
185 return *this;
186 }
188
190
193 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
194 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
195 template <typename CreatedAtT = Aws::Utils::DateTime>
196 void SetCreatedAt(CreatedAtT&& value) {
197 m_createdAtHasBeenSet = true;
198 m_createdAt = std::forward<CreatedAtT>(value);
199 }
200 template <typename CreatedAtT = Aws::Utils::DateTime>
201 KnowledgeBase& WithCreatedAt(CreatedAtT&& value) {
202 SetCreatedAt(std::forward<CreatedAtT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
212 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
213 template <typename UpdatedAtT = Aws::Utils::DateTime>
214 void SetUpdatedAt(UpdatedAtT&& value) {
215 m_updatedAtHasBeenSet = true;
216 m_updatedAt = std::forward<UpdatedAtT>(value);
217 }
218 template <typename UpdatedAtT = Aws::Utils::DateTime>
219 KnowledgeBase& WithUpdatedAt(UpdatedAtT&& value) {
220 SetUpdatedAt(std::forward<UpdatedAtT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
230 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
231 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
232 void SetFailureReasons(FailureReasonsT&& value) {
233 m_failureReasonsHasBeenSet = true;
234 m_failureReasons = std::forward<FailureReasonsT>(value);
235 }
236 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
237 KnowledgeBase& WithFailureReasons(FailureReasonsT&& value) {
238 SetFailureReasons(std::forward<FailureReasonsT>(value));
239 return *this;
240 }
241 template <typename FailureReasonsT = Aws::String>
242 KnowledgeBase& AddFailureReasons(FailureReasonsT&& value) {
243 m_failureReasonsHasBeenSet = true;
244 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
245 return *this;
246 }
248
250
258 inline const Aws::Vector<MetadataConfiguration>& GetMetadataConfigurations() const { return m_metadataConfigurations; }
259 inline bool MetadataConfigurationsHasBeenSet() const { return m_metadataConfigurationsHasBeenSet; }
260 template <typename MetadataConfigurationsT = Aws::Vector<MetadataConfiguration>>
261 void SetMetadataConfigurations(MetadataConfigurationsT&& value) {
262 m_metadataConfigurationsHasBeenSet = true;
263 m_metadataConfigurations = std::forward<MetadataConfigurationsT>(value);
264 }
265 template <typename MetadataConfigurationsT = Aws::Vector<MetadataConfiguration>>
266 KnowledgeBase& WithMetadataConfigurations(MetadataConfigurationsT&& value) {
267 SetMetadataConfigurations(std::forward<MetadataConfigurationsT>(value));
268 return *this;
269 }
270 template <typename MetadataConfigurationsT = MetadataConfiguration>
271 KnowledgeBase& AddMetadataConfigurations(MetadataConfigurationsT&& value) {
272 m_metadataConfigurationsHasBeenSet = true;
273 m_metadataConfigurations.emplace_back(std::forward<MetadataConfigurationsT>(value));
274 return *this;
275 }
277 private:
278 Aws::String m_knowledgeBaseId;
279
280 Aws::String m_name;
281
282 Aws::String m_knowledgeBaseArn;
283
284 Aws::String m_description;
285
286 Aws::String m_roleArn;
287
288 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
289
290 StorageConfiguration m_storageConfiguration;
291
293
294 Aws::Utils::DateTime m_createdAt{};
295
296 Aws::Utils::DateTime m_updatedAt{};
297
298 Aws::Vector<Aws::String> m_failureReasons;
299
300 Aws::Vector<MetadataConfiguration> m_metadataConfigurations;
301 bool m_knowledgeBaseIdHasBeenSet = false;
302 bool m_nameHasBeenSet = false;
303 bool m_knowledgeBaseArnHasBeenSet = false;
304 bool m_descriptionHasBeenSet = false;
305 bool m_roleArnHasBeenSet = false;
306 bool m_knowledgeBaseConfigurationHasBeenSet = false;
307 bool m_storageConfigurationHasBeenSet = false;
308 bool m_statusHasBeenSet = false;
309 bool m_createdAtHasBeenSet = false;
310 bool m_updatedAtHasBeenSet = false;
311 bool m_failureReasonsHasBeenSet = false;
312 bool m_metadataConfigurationsHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace BedrockAgent
317} // namespace Aws
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::Vector< Aws::String > & GetFailureReasons() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKnowledgeBaseId() const
KnowledgeBase & WithStorageConfiguration(StorageConfigurationT &&value)
const Aws::String & GetName() const
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
const Aws::Vector< MetadataConfiguration > & GetMetadataConfigurations() const
KnowledgeBase & WithStatus(KnowledgeBaseStatus value)
KnowledgeBase & WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
AWS_BEDROCKAGENT_API KnowledgeBase & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMetadataConfigurations(MetadataConfigurationsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_BEDROCKAGENT_API KnowledgeBase(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API KnowledgeBase()=default
void SetDescription(DescriptionT &&value)
void SetStatus(KnowledgeBaseStatus value)
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
const StorageConfiguration & GetStorageConfiguration() const
KnowledgeBase & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetRoleArn() const
void SetCreatedAt(CreatedAtT &&value)
KnowledgeBase & AddFailureReasons(FailureReasonsT &&value)
KnowledgeBase & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBase & WithMetadataConfigurations(MetadataConfigurationsT &&value)
KnowledgeBase & WithName(NameT &&value)
void SetStorageConfiguration(StorageConfigurationT &&value)
const Aws::String & GetKnowledgeBaseArn() const
const Aws::String & GetDescription() const
KnowledgeBase & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
KnowledgeBase & AddMetadataConfigurations(MetadataConfigurationsT &&value)
KnowledgeBase & WithFailureReasons(FailureReasonsT &&value)
void SetFailureReasons(FailureReasonsT &&value)
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
KnowledgeBase & WithDescription(DescriptionT &&value)
KnowledgeBase & WithCreatedAt(CreatedAtT &&value)
KnowledgeBase & WithRoleArn(RoleArnT &&value)
KnowledgeBaseStatus GetStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue