Interface DataSource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DataSource.Builder,
,DataSource> SdkBuilder<DataSource.Builder,
,DataSource> SdkPojo
- Enclosing class:
DataSource
-
Method Summary
Modifier and TypeMethodDescriptionThe time at which the data source was created.dataDeletionPolicy
(String dataDeletionPolicy) The data deletion policy for the data source.dataDeletionPolicy
(DataDeletionPolicy dataDeletionPolicy) The data deletion policy for the data source.default DataSource.Builder
dataSourceConfiguration
(Consumer<DataSourceConfiguration.Builder> dataSourceConfiguration) The connection configuration for the data source.dataSourceConfiguration
(DataSourceConfiguration dataSourceConfiguration) The connection configuration for the data source.dataSourceId
(String dataSourceId) The unique identifier of the data source.description
(String description) The description of the data source.failureReasons
(String... failureReasons) The detailed reasons on the failure to delete a data source.failureReasons
(Collection<String> failureReasons) The detailed reasons on the failure to delete a data source.knowledgeBaseId
(String knowledgeBaseId) The unique identifier of the knowledge base to which the data source belongs.The name of the data source.default DataSource.Builder
serverSideEncryptionConfiguration
(Consumer<ServerSideEncryptionConfiguration.Builder> serverSideEncryptionConfiguration) Contains details about the configuration of the server-side encryption.serverSideEncryptionConfiguration
(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration) Contains details about the configuration of the server-side encryption.The status of the data source.status
(DataSourceStatus status) The status of the data source.The time at which the data source was last updated.default DataSource.Builder
vectorIngestionConfiguration
(Consumer<VectorIngestionConfiguration.Builder> vectorIngestionConfiguration) Contains details about how to ingest the documents in the data source.vectorIngestionConfiguration
(VectorIngestionConfiguration vectorIngestionConfiguration) Contains details about how to ingest the documents in the data source.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
createdAt
The time at which the data source was created.
- Parameters:
createdAt
- The time at which the data source was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataDeletionPolicy
The data deletion policy for the data source.
- Parameters:
dataDeletionPolicy
- The data deletion policy for the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataDeletionPolicy
The data deletion policy for the data source.
- Parameters:
dataDeletionPolicy
- The data deletion policy for the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataSourceConfiguration
The connection configuration for the data source.
- Parameters:
dataSourceConfiguration
- The connection configuration for the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceConfiguration
default DataSource.Builder dataSourceConfiguration(Consumer<DataSourceConfiguration.Builder> dataSourceConfiguration) The connection configuration for the data source.
This is a convenience method that creates an instance of theDataSourceConfiguration.Builder
avoiding the need to create one manually viaDataSourceConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todataSourceConfiguration(DataSourceConfiguration)
.- Parameters:
dataSourceConfiguration
- a consumer that will call methods onDataSourceConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataSourceId
The unique identifier of the data source.
- Parameters:
dataSourceId
- The unique identifier of the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the data source.
- Parameters:
description
- The description of the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReasons
The detailed reasons on the failure to delete a data source.
- Parameters:
failureReasons
- The detailed reasons on the failure to delete a data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReasons
The detailed reasons on the failure to delete a data source.
- Parameters:
failureReasons
- The detailed reasons on the failure to delete a data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseId
The unique identifier of the knowledge base to which the data source belongs.
- Parameters:
knowledgeBaseId
- The unique identifier of the knowledge base to which the data source belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the data source.
- Parameters:
name
- The name of the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverSideEncryptionConfiguration
DataSource.Builder serverSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration) Contains details about the configuration of the server-side encryption.
- Parameters:
serverSideEncryptionConfiguration
- Contains details about the configuration of the server-side encryption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverSideEncryptionConfiguration
default DataSource.Builder serverSideEncryptionConfiguration(Consumer<ServerSideEncryptionConfiguration.Builder> serverSideEncryptionConfiguration) Contains details about the configuration of the server-side encryption.
This is a convenience method that creates an instance of theServerSideEncryptionConfiguration.Builder
avoiding the need to create one manually viaServerSideEncryptionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserverSideEncryptionConfiguration(ServerSideEncryptionConfiguration)
.- Parameters:
serverSideEncryptionConfiguration
- a consumer that will call methods onServerSideEncryptionConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the data source. The following statuses are possible:
-
Available – The data source has been created and is ready for ingestion into the knowledge base.
-
Deleting – The data source is being deleted.
- Parameters:
status
- The status of the data source. The following statuses are possible:-
Available – The data source has been created and is ready for ingestion into the knowledge base.
-
Deleting – The data source is being deleted.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
status
The status of the data source. The following statuses are possible:
-
Available – The data source has been created and is ready for ingestion into the knowledge base.
-
Deleting – The data source is being deleted.
- Parameters:
status
- The status of the data source. The following statuses are possible:-
Available – The data source has been created and is ready for ingestion into the knowledge base.
-
Deleting – The data source is being deleted.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
updatedAt
The time at which the data source was last updated.
- Parameters:
updatedAt
- The time at which the data source was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectorIngestionConfiguration
DataSource.Builder vectorIngestionConfiguration(VectorIngestionConfiguration vectorIngestionConfiguration) Contains details about how to ingest the documents in the data source.
- Parameters:
vectorIngestionConfiguration
- Contains details about how to ingest the documents in the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectorIngestionConfiguration
default DataSource.Builder vectorIngestionConfiguration(Consumer<VectorIngestionConfiguration.Builder> vectorIngestionConfiguration) Contains details about how to ingest the documents in the data source.
This is a convenience method that creates an instance of theVectorIngestionConfiguration.Builder
avoiding the need to create one manually viaVectorIngestionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovectorIngestionConfiguration(VectorIngestionConfiguration)
.- Parameters:
vectorIngestionConfiguration
- a consumer that will call methods onVectorIngestionConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-