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>
24namespace BedrockAgent {
45 template <
typename KnowledgeBaseIdT = Aws::String>
47 m_knowledgeBaseIdHasBeenSet =
true;
48 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
50 template <
typename KnowledgeBaseIdT = Aws::String>
63 template <
typename NameT = Aws::String>
65 m_nameHasBeenSet =
true;
66 m_name = std::forward<NameT>(value);
68 template <
typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
81 template <
typename KnowledgeBaseArnT = Aws::String>
83 m_knowledgeBaseArnHasBeenSet =
true;
84 m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value);
86 template <
typename KnowledgeBaseArnT = Aws::String>
99 template <
typename DescriptionT = Aws::String>
101 m_descriptionHasBeenSet =
true;
102 m_description = std::forward<DescriptionT>(value);
104 template <
typename DescriptionT = Aws::String>
118 template <
typename RoleArnT = Aws::String>
120 m_roleArnHasBeenSet =
true;
121 m_roleArn = std::forward<RoleArnT>(value);
123 template <
typename RoleArnT = Aws::String>
137 template <
typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
139 m_knowledgeBaseConfigurationHasBeenSet =
true;
140 m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value);
142 template <
typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
155 template <
typename StorageConfigurationT = StorageConfiguration>
157 m_storageConfigurationHasBeenSet =
true;
158 m_storageConfiguration = std::forward<StorageConfigurationT>(value);
160 template <
typename StorageConfigurationT = StorageConfiguration>
179 m_statusHasBeenSet =
true;
194 template <
typename CreatedAtT = Aws::Utils::DateTime>
196 m_createdAtHasBeenSet =
true;
197 m_createdAt = std::forward<CreatedAtT>(value);
199 template <
typename CreatedAtT = Aws::Utils::DateTime>
212 template <
typename UpdatedAtT = Aws::Utils::DateTime>
214 m_updatedAtHasBeenSet =
true;
215 m_updatedAt = std::forward<UpdatedAtT>(value);
217 template <
typename UpdatedAtT = Aws::Utils::DateTime>
230 template <
typename FailureReasonsT = Aws::Vector<Aws::String>>
232 m_failureReasonsHasBeenSet =
true;
233 m_failureReasons = std::forward<FailureReasonsT>(value);
235 template <
typename FailureReasonsT = Aws::Vector<Aws::String>>
240 template <
typename FailureReasonsT = Aws::String>
242 m_failureReasonsHasBeenSet =
true;
243 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
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;
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)
bool NameHasBeenSet() const
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
bool DescriptionHasBeenSet() const
bool FailureReasonsHasBeenSet() const
bool KnowledgeBaseArnHasBeenSet() const
void SetDescription(DescriptionT &&value)
void SetName(NameT &&value)
void SetStatus(KnowledgeBaseStatus value)
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
const StorageConfiguration & GetStorageConfiguration() const
bool StatusHasBeenSet() const
KnowledgeBase & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetRoleArn() const
void SetCreatedAt(CreatedAtT &&value)
KnowledgeBase & AddFailureReasons(FailureReasonsT &&value)
KnowledgeBase & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
bool UpdatedAtHasBeenSet() const
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)
bool KnowledgeBaseIdHasBeenSet() const
KnowledgeBase & WithFailureReasons(FailureReasonsT &&value)
bool RoleArnHasBeenSet() const
void SetFailureReasons(FailureReasonsT &&value)
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
bool CreatedAtHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
bool StorageConfigurationHasBeenSet() const
void SetRoleArn(RoleArnT &&value)
KnowledgeBase & WithDescription(DescriptionT &&value)
KnowledgeBase & WithCreatedAt(CreatedAtT &&value)
KnowledgeBase & WithRoleArn(RoleArnT &&value)
KnowledgeBaseStatus GetStatus() const
bool KnowledgeBaseConfigurationHasBeenSet() 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