Interface IngestKnowledgeBaseDocumentsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<IngestKnowledgeBaseDocumentsRequest.Builder,,IngestKnowledgeBaseDocumentsRequest> SdkBuilder<IngestKnowledgeBaseDocumentsRequest.Builder,,IngestKnowledgeBaseDocumentsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
IngestKnowledgeBaseDocumentsRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.dataSourceId(String dataSourceId) The unique identifier of the data source connected to the knowledge base that you're adding documents to.documents(Collection<KnowledgeBaseDocument> documents) A list of objects, each of which contains information about the documents to add.documents(Consumer<KnowledgeBaseDocument.Builder>... documents) A list of objects, each of which contains information about the documents to add.documents(KnowledgeBaseDocument... documents) A list of objects, each of which contains information about the documents to add.knowledgeBaseId(String knowledgeBaseId) The unique identifier of the knowledge base to ingest the documents into.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
knowledgeBaseId
The unique identifier of the knowledge base to ingest the documents into.
- Parameters:
knowledgeBaseId- The unique identifier of the knowledge base to ingest the documents into.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceId
The unique identifier of the data source connected to the knowledge base that you're adding documents to.
- Parameters:
dataSourceId- The unique identifier of the data source connected to the knowledge base that you're adding documents to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
documents
A list of objects, each of which contains information about the documents to add.
- Parameters:
documents- A list of objects, each of which contains information about the documents to add.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
A list of objects, each of which contains information about the documents to add.
- Parameters:
documents- A list of objects, each of which contains information about the documents to add.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
IngestKnowledgeBaseDocumentsRequest.Builder documents(Consumer<KnowledgeBaseDocument.Builder>... documents) A list of objects, each of which contains information about the documents to add.
This is a convenience method that creates an instance of theKnowledgeBaseDocument.Builderavoiding the need to create one manually viaKnowledgeBaseDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocuments(List<KnowledgeBaseDocument>).- Parameters:
documents- a consumer that will call methods onKnowledgeBaseDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
IngestKnowledgeBaseDocumentsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
IngestKnowledgeBaseDocumentsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-