Interface DataSource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DataSource.Builder,DataSource>,SdkBuilder<DataSource.Builder,DataSource>,SdkPojo
- Enclosing class:
- DataSource
public static interface DataSource.Builder extends SdkPojo, CopyableBuilder<DataSource.Builder,DataSource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DataSource.BuildercreatedAt(Instant createdAt)The time at which the data source was created.DataSource.BuilderdataDeletionPolicy(String dataDeletionPolicy)The data deletion policy for the data source.DataSource.BuilderdataDeletionPolicy(DataDeletionPolicy dataDeletionPolicy)The data deletion policy for the data source.default DataSource.BuilderdataSourceConfiguration(Consumer<DataSourceConfiguration.Builder> dataSourceConfiguration)The connection configuration for the data source.DataSource.BuilderdataSourceConfiguration(DataSourceConfiguration dataSourceConfiguration)The connection configuration for the data source.DataSource.BuilderdataSourceId(String dataSourceId)The unique identifier of the data source.DataSource.Builderdescription(String description)The description of the data source.DataSource.BuilderfailureReasons(String... failureReasons)The detailed reasons on the failure to delete a data source.DataSource.BuilderfailureReasons(Collection<String> failureReasons)The detailed reasons on the failure to delete a data source.DataSource.BuilderknowledgeBaseId(String knowledgeBaseId)The unique identifier of the knowledge base to which the data source belongs.DataSource.Buildername(String name)The name of the data source.default DataSource.BuilderserverSideEncryptionConfiguration(Consumer<ServerSideEncryptionConfiguration.Builder> serverSideEncryptionConfiguration)Contains details about the configuration of the server-side encryption.DataSource.BuilderserverSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)Contains details about the configuration of the server-side encryption.DataSource.Builderstatus(String status)The status of the data source.DataSource.Builderstatus(DataSourceStatus status)The status of the data source.DataSource.BuilderupdatedAt(Instant updatedAt)The time at which the data source was last updated.default DataSource.BuildervectorIngestionConfiguration(Consumer<VectorIngestionConfiguration.Builder> vectorIngestionConfiguration)Contains details about how to ingest the documents in the data source.DataSource.BuildervectorIngestionConfiguration(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, sdkFields
-
-
-
-
Method Detail
-
createdAt
DataSource.Builder createdAt(Instant 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
DataSource.Builder dataDeletionPolicy(String 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,DataDeletionPolicy
-
dataDeletionPolicy
DataSource.Builder dataDeletionPolicy(DataDeletionPolicy 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,DataDeletionPolicy
-
dataSourceConfiguration
DataSource.Builder dataSourceConfiguration(DataSourceConfiguration 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.Builderavoiding the need to create one manually viaDataSourceConfiguration.builder().When the
Consumercompletes,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:
dataSourceConfiguration(DataSourceConfiguration)
-
dataSourceId
DataSource.Builder dataSourceId(String 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
DataSource.Builder description(String 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
DataSource.Builder failureReasons(Collection<String> 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
DataSource.Builder failureReasons(String... 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
DataSource.Builder knowledgeBaseId(String 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
DataSource.Builder name(String 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.Builderavoiding the need to create one manually viaServerSideEncryptionConfiguration.builder().When the
Consumercompletes,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:
serverSideEncryptionConfiguration(ServerSideEncryptionConfiguration)
-
status
DataSource.Builder status(String 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:
DataSourceStatus,DataSourceStatus
-
-
status
DataSource.Builder status(DataSourceStatus 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:
DataSourceStatus,DataSourceStatus
-
-
updatedAt
DataSource.Builder updatedAt(Instant 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.Builderavoiding the need to create one manually viaVectorIngestionConfiguration.builder().When the
Consumercompletes,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:
vectorIngestionConfiguration(VectorIngestionConfiguration)
-
-