7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock-agent/model/KnowledgeBaseConfiguration.h>
12#include <aws/bedrock-agent/model/KnowledgeBaseStatus.h>
13#include <aws/bedrock-agent/model/StorageConfiguration.h>
51 template<
typename CreatedAtT = Aws::Utils::DateTime>
52 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
53 template<
typename CreatedAtT = Aws::Utils::DateTime>
63 template<
typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
65 template<
typename DescriptionT = Aws::String>
75 template<
typename FailureReasonsT = Aws::Vector<Aws::String>>
76 void SetFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet =
true; m_failureReasons = std::forward<FailureReasonsT>(value); }
77 template<
typename FailureReasonsT = Aws::Vector<Aws::String>>
79 template<
typename FailureReasonsT = Aws::String>
80 KnowledgeBase&
AddFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet =
true; m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
return *
this; }
89 template<
typename KnowledgeBaseArnT = Aws::String>
90 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet =
true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
91 template<
typename KnowledgeBaseArnT = Aws::String>
102 template<
typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
103 void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) { m_knowledgeBaseConfigurationHasBeenSet =
true; m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value); }
104 template<
typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
114 template<
typename KnowledgeBaseIdT = Aws::String>
115 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet =
true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
116 template<
typename KnowledgeBaseIdT = Aws::String>
126 template<
typename NameT = Aws::String>
127 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
128 template<
typename NameT = Aws::String>
139 template<
typename RoleArnT = Aws::String>
140 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet =
true; m_roleArn = std::forward<RoleArnT>(value); }
141 template<
typename RoleArnT = Aws::String>
166 template<
typename StorageConfigurationT = StorageConfiguration>
167 void SetStorageConfiguration(StorageConfigurationT&& value) { m_storageConfigurationHasBeenSet =
true; m_storageConfiguration = std::forward<StorageConfigurationT>(value); }
168 template<
typename StorageConfigurationT = StorageConfiguration>
178 template<
typename UpdatedAtT = Aws::Utils::DateTime>
179 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
180 template<
typename UpdatedAtT = Aws::Utils::DateTime>
186 bool m_createdAtHasBeenSet =
false;
189 bool m_descriptionHasBeenSet =
false;
192 bool m_failureReasonsHasBeenSet =
false;
195 bool m_knowledgeBaseArnHasBeenSet =
false;
197 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
198 bool m_knowledgeBaseConfigurationHasBeenSet =
false;
201 bool m_knowledgeBaseIdHasBeenSet =
false;
204 bool m_nameHasBeenSet =
false;
207 bool m_roleArnHasBeenSet =
false;
210 bool m_statusHasBeenSet =
false;
212 StorageConfiguration m_storageConfiguration;
213 bool m_storageConfigurationHasBeenSet =
false;
216 bool m_updatedAtHasBeenSet =
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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue