AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/StorageConfiguration.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgent {
25namespace Model {
26
33 public:
34 AWS_BEDROCKAGENT_API KnowledgeBase() = default;
37 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
44 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
45 template <typename KnowledgeBaseIdT = Aws::String>
47 m_knowledgeBaseIdHasBeenSet = true;
48 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
49 }
50 template <typename KnowledgeBaseIdT = Aws::String>
52 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
80 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
81 template <typename KnowledgeBaseArnT = Aws::String>
83 m_knowledgeBaseArnHasBeenSet = true;
84 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
85 }
86 template <typename KnowledgeBaseArnT = Aws::String>
88 SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
117 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
118 template <typename RoleArnT = Aws::String>
119 void SetRoleArn(RoleArnT&& value) {
120 m_roleArnHasBeenSet = true;
121 m_roleArn = std::forward<RoleArnT>(value);
122 }
123 template <typename RoleArnT = Aws::String>
125 SetRoleArn(std::forward<RoleArnT>(value));
126 return *this;
127 }
129
131
135 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
136 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
137 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
139 m_knowledgeBaseConfigurationHasBeenSet = true;
140 m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value);
141 }
142 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
144 SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value));
145 return *this;
146 }
148
150
153 inline const StorageConfiguration& GetStorageConfiguration() const { return m_storageConfiguration; }
154 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
155 template <typename StorageConfigurationT = StorageConfiguration>
157 m_storageConfigurationHasBeenSet = true;
158 m_storageConfiguration = std::forward<StorageConfigurationT>(value);
159 }
160 template <typename StorageConfigurationT = StorageConfiguration>
162 SetStorageConfiguration(std::forward<StorageConfigurationT>(value));
163 return *this;
164 }
166
168
176 inline KnowledgeBaseStatus GetStatus() const { return m_status; }
177 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
178 inline void SetStatus(KnowledgeBaseStatus value) {
179 m_statusHasBeenSet = true;
180 m_status = value;
181 }
183 SetStatus(value);
184 return *this;
185 }
187
189
192 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
193 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
194 template <typename CreatedAtT = Aws::Utils::DateTime>
195 void SetCreatedAt(CreatedAtT&& value) {
196 m_createdAtHasBeenSet = true;
197 m_createdAt = std::forward<CreatedAtT>(value);
198 }
199 template <typename CreatedAtT = Aws::Utils::DateTime>
201 SetCreatedAt(std::forward<CreatedAtT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
211 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
212 template <typename UpdatedAtT = Aws::Utils::DateTime>
213 void SetUpdatedAt(UpdatedAtT&& value) {
214 m_updatedAtHasBeenSet = true;
215 m_updatedAt = std::forward<UpdatedAtT>(value);
216 }
217 template <typename UpdatedAtT = Aws::Utils::DateTime>
219 SetUpdatedAt(std::forward<UpdatedAtT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
229 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
230 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
232 m_failureReasonsHasBeenSet = true;
233 m_failureReasons = std::forward<FailureReasonsT>(value);
234 }
235 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
237 SetFailureReasons(std::forward<FailureReasonsT>(value));
238 return *this;
239 }
240 template <typename FailureReasonsT = Aws::String>
242 m_failureReasonsHasBeenSet = true;
243 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
244 return *this;
245 }
247 private:
248 Aws::String m_knowledgeBaseId;
249
250 Aws::String m_name;
251
252 Aws::String m_knowledgeBaseArn;
253
254 Aws::String m_description;
255
256 Aws::String m_roleArn;
257
258 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
259
260 StorageConfiguration m_storageConfiguration;
261
263
264 Aws::Utils::DateTime m_createdAt{};
265
266 Aws::Utils::DateTime m_updatedAt{};
267
268 Aws::Vector<Aws::String> m_failureReasons;
269 bool m_knowledgeBaseIdHasBeenSet = false;
270 bool m_nameHasBeenSet = false;
271 bool m_knowledgeBaseArnHasBeenSet = false;
272 bool m_descriptionHasBeenSet = false;
273 bool m_roleArnHasBeenSet = false;
274 bool m_knowledgeBaseConfigurationHasBeenSet = false;
275 bool m_storageConfigurationHasBeenSet = false;
276 bool m_statusHasBeenSet = false;
277 bool m_createdAtHasBeenSet = false;
278 bool m_updatedAtHasBeenSet = false;
279 bool m_failureReasonsHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace BedrockAgent
284} // 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)
KnowledgeBase & WithStatus(KnowledgeBaseStatus value)
KnowledgeBase & WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
AWS_BEDROCKAGENT_API KnowledgeBase & operator=(Aws::Utils::Json::JsonView jsonValue)
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 & 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 & 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue