7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/DataDeletionPolicy.h>
9#include <aws/bedrock-agent/model/DataSourceConfiguration.h>
10#include <aws/bedrock-agent/model/DataSourceStatus.h>
11#include <aws/bedrock-agent/model/ServerSideEncryptionConfiguration.h>
12#include <aws/bedrock-agent/model/VectorIngestionConfiguration.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
26namespace BedrockAgent {
48 template <
typename KnowledgeBaseIdT = Aws::String>
50 m_knowledgeBaseIdHasBeenSet =
true;
51 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
53 template <
typename KnowledgeBaseIdT = Aws::String>
66 template <
typename DataSourceIdT = Aws::String>
68 m_dataSourceIdHasBeenSet =
true;
69 m_dataSourceId = std::forward<DataSourceIdT>(value);
71 template <
typename DataSourceIdT = Aws::String>
84 template <
typename NameT = Aws::String>
86 m_nameHasBeenSet =
true;
87 m_name = std::forward<NameT>(value);
89 template <
typename NameT = Aws::String>
91 SetName(std::forward<NameT>(value));
106 m_statusHasBeenSet =
true;
121 template <
typename DescriptionT = Aws::String>
123 m_descriptionHasBeenSet =
true;
124 m_description = std::forward<DescriptionT>(value);
126 template <
typename DescriptionT = Aws::String>
139 template <
typename DataSourceConfigurationT = DataSourceConfiguration>
141 m_dataSourceConfigurationHasBeenSet =
true;
142 m_dataSourceConfiguration = std::forward<DataSourceConfigurationT>(value);
144 template <
typename DataSourceConfigurationT = DataSourceConfiguration>
156 return m_serverSideEncryptionConfiguration;
159 template <
typename ServerS
ideEncryptionConfigurationT = ServerS
ideEncryptionConfiguration>
161 m_serverSideEncryptionConfigurationHasBeenSet =
true;
162 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
164 template <
typename ServerS
ideEncryptionConfigurationT = ServerS
ideEncryptionConfiguration>
177 template <
typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
179 m_vectorIngestionConfigurationHasBeenSet =
true;
180 m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value);
182 template <
typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
196 m_dataDeletionPolicyHasBeenSet =
true;
197 m_dataDeletionPolicy = value;
211 template <
typename CreatedAtT = Aws::Utils::DateTime>
213 m_createdAtHasBeenSet =
true;
214 m_createdAt = std::forward<CreatedAtT>(value);
216 template <
typename CreatedAtT = Aws::Utils::DateTime>
229 template <
typename UpdatedAtT = Aws::Utils::DateTime>
231 m_updatedAtHasBeenSet =
true;
232 m_updatedAt = std::forward<UpdatedAtT>(value);
234 template <
typename UpdatedAtT = Aws::Utils::DateTime>
247 template <
typename FailureReasonsT = Aws::Vector<Aws::String>>
249 m_failureReasonsHasBeenSet =
true;
250 m_failureReasons = std::forward<FailureReasonsT>(value);
252 template <
typename FailureReasonsT = Aws::Vector<Aws::String>>
257 template <
typename FailureReasonsT = Aws::String>
259 m_failureReasonsHasBeenSet =
true;
260 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
275 DataSourceConfiguration m_dataSourceConfiguration;
277 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
279 VectorIngestionConfiguration m_vectorIngestionConfiguration;
288 bool m_knowledgeBaseIdHasBeenSet =
false;
289 bool m_dataSourceIdHasBeenSet =
false;
290 bool m_nameHasBeenSet =
false;
291 bool m_statusHasBeenSet =
false;
292 bool m_descriptionHasBeenSet =
false;
293 bool m_dataSourceConfigurationHasBeenSet =
false;
294 bool m_serverSideEncryptionConfigurationHasBeenSet =
false;
295 bool m_vectorIngestionConfigurationHasBeenSet =
false;
296 bool m_dataDeletionPolicyHasBeenSet =
false;
297 bool m_createdAtHasBeenSet =
false;
298 bool m_updatedAtHasBeenSet =
false;
299 bool m_failureReasonsHasBeenSet =
false;
DataSource & WithStatus(DataSourceStatus value)
bool VectorIngestionConfigurationHasBeenSet() const
const Aws::Utils::DateTime & GetUpdatedAt() const
bool KnowledgeBaseIdHasBeenSet() const
bool DescriptionHasBeenSet() const
void SetDescription(DescriptionT &&value)
DataSource & WithDataSourceId(DataSourceIdT &&value)
bool FailureReasonsHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
DataSource & WithFailureReasons(FailureReasonsT &&value)
AWS_BEDROCKAGENT_API DataSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDataSourceId(DataSourceIdT &&value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
DataSource & WithDataDeletionPolicy(DataDeletionPolicy value)
DataSource & AddFailureReasons(FailureReasonsT &&value)
void SetDataSourceConfiguration(DataSourceConfigurationT &&value)
void SetFailureReasons(FailureReasonsT &&value)
DataDeletionPolicy GetDataDeletionPolicy() const
AWS_BEDROCKAGENT_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceStatus GetStatus() const
const Aws::String & GetDataSourceId() const
DataSource & WithVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
bool StatusHasBeenSet() const
const Aws::Vector< Aws::String > & GetFailureReasons() const
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
const Aws::String & GetKnowledgeBaseId() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
DataSource & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
DataSource & WithDescription(DescriptionT &&value)
DataSource & WithCreatedAt(CreatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
const DataSourceConfiguration & GetDataSourceConfiguration() const
void SetStatus(DataSourceStatus value)
DataSource & WithDataSourceConfiguration(DataSourceConfigurationT &&value)
bool NameHasBeenSet() const
bool ServerSideEncryptionConfigurationHasBeenSet() const
void SetVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
bool UpdatedAtHasBeenSet() const
DataSource & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
DataSource & WithName(NameT &&value)
bool CreatedAtHasBeenSet() const
void SetDataDeletionPolicy(DataDeletionPolicy value)
DataSource & WithUpdatedAt(UpdatedAtT &&value)
bool DataSourceConfigurationHasBeenSet() const
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
bool DataDeletionPolicyHasBeenSet() const
AWS_BEDROCKAGENT_API DataSource()=default
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
const Aws::String & GetDescription() const
bool DataSourceIdHasBeenSet() const
const Aws::String & GetName() const
void SetName(NameT &&value)
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