Interface CreateDataSourceRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>,SdkBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateDataSourceRequest
public static interface CreateDataSourceRequest.Builder extends BedrockAgentRequest.Builder, SdkPojo, CopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateDataSourceRequest.BuilderclientToken(String clientToken)A unique, case-sensitive identifier to ensure that the API request completes no more than one time.CreateDataSourceRequest.BuilderdataDeletionPolicy(String dataDeletionPolicy)The data deletion policy for the data source.CreateDataSourceRequest.BuilderdataDeletionPolicy(DataDeletionPolicy dataDeletionPolicy)The data deletion policy for the data source.default CreateDataSourceRequest.BuilderdataSourceConfiguration(Consumer<DataSourceConfiguration.Builder> dataSourceConfiguration)The connection configuration for the data source.CreateDataSourceRequest.BuilderdataSourceConfiguration(DataSourceConfiguration dataSourceConfiguration)The connection configuration for the data source.CreateDataSourceRequest.Builderdescription(String description)A description of the data source.CreateDataSourceRequest.BuilderknowledgeBaseId(String knowledgeBaseId)The unique identifier of the knowledge base to which to add the data source.CreateDataSourceRequest.Buildername(String name)The name of the data source.CreateDataSourceRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateDataSourceRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateDataSourceRequest.BuilderserverSideEncryptionConfiguration(Consumer<ServerSideEncryptionConfiguration.Builder> serverSideEncryptionConfiguration)Contains details about the server-side encryption for the data source.CreateDataSourceRequest.BuilderserverSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)Contains details about the server-side encryption for the data source.default CreateDataSourceRequest.BuildervectorIngestionConfiguration(Consumer<VectorIngestionConfiguration.Builder> vectorIngestionConfiguration)Contains details about how to ingest the documents in the data source.CreateDataSourceRequest.BuildervectorIngestionConfiguration(VectorIngestionConfiguration vectorIngestionConfiguration)Contains details about how to ingest the documents in the data source.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentRequest.Builder
build
-
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
-
clientToken
CreateDataSourceRequest.Builder clientToken(String clientToken)
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataDeletionPolicy
CreateDataSourceRequest.Builder dataDeletionPolicy(String dataDeletionPolicy)
The data deletion policy for the data source.
You can set the data deletion policy to:
-
DELETE: Deletes all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted, only the data. This flag is ignored if an Amazon Web Services account is deleted.
-
RETAIN: Retains all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted if you delete a knowledge base or data source resource.
- Parameters:
dataDeletionPolicy- The data deletion policy for the data source.You can set the data deletion policy to:
-
DELETE: Deletes all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted, only the data. This flag is ignored if an Amazon Web Services account is deleted.
-
RETAIN: Retains all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted if you delete a knowledge base or data source resource.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DataDeletionPolicy,DataDeletionPolicy
-
-
dataDeletionPolicy
CreateDataSourceRequest.Builder dataDeletionPolicy(DataDeletionPolicy dataDeletionPolicy)
The data deletion policy for the data source.
You can set the data deletion policy to:
-
DELETE: Deletes all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted, only the data. This flag is ignored if an Amazon Web Services account is deleted.
-
RETAIN: Retains all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted if you delete a knowledge base or data source resource.
- Parameters:
dataDeletionPolicy- The data deletion policy for the data source.You can set the data deletion policy to:
-
DELETE: Deletes all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted, only the data. This flag is ignored if an Amazon Web Services account is deleted.
-
RETAIN: Retains all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted if you delete a knowledge base or data source resource.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DataDeletionPolicy,DataDeletionPolicy
-
-
dataSourceConfiguration
CreateDataSourceRequest.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 CreateDataSourceRequest.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)
-
description
CreateDataSourceRequest.Builder description(String description)
A description of the data source.
- Parameters:
description- A description of the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseId
CreateDataSourceRequest.Builder knowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base to which to add the data source.
- Parameters:
knowledgeBaseId- The unique identifier of the knowledge base to which to add the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateDataSourceRequest.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
CreateDataSourceRequest.Builder serverSideEncryptionConfiguration(ServerSideEncryptionConfiguration serverSideEncryptionConfiguration)
Contains details about the server-side encryption for the data source.
- Parameters:
serverSideEncryptionConfiguration- Contains details about the server-side encryption for the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverSideEncryptionConfiguration
default CreateDataSourceRequest.Builder serverSideEncryptionConfiguration(Consumer<ServerSideEncryptionConfiguration.Builder> serverSideEncryptionConfiguration)
Contains details about the server-side encryption for the data source.
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)
-
vectorIngestionConfiguration
CreateDataSourceRequest.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 CreateDataSourceRequest.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)
-
overrideConfiguration
CreateDataSourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateDataSourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-