Interface IngestKnowledgeBaseDocumentsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<IngestKnowledgeBaseDocumentsRequest.Builder,IngestKnowledgeBaseDocumentsRequest>,SdkBuilder<IngestKnowledgeBaseDocumentsRequest.Builder,IngestKnowledgeBaseDocumentsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- IngestKnowledgeBaseDocumentsRequest
@Mutable @NotThreadSafe public static interface IngestKnowledgeBaseDocumentsRequest.Builder extends BedrockAgentRequest.Builder, SdkPojo, CopyableBuilder<IngestKnowledgeBaseDocumentsRequest.Builder,IngestKnowledgeBaseDocumentsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IngestKnowledgeBaseDocumentsRequest.BuilderclientToken(String clientToken)A unique, case-sensitive identifier to ensure that the API request completes no more than one time.IngestKnowledgeBaseDocumentsRequest.BuilderdataSourceId(String dataSourceId)The unique identifier of the data source connected to the knowledge base that you're adding documents to.IngestKnowledgeBaseDocumentsRequest.Builderdocuments(Collection<KnowledgeBaseDocument> documents)A list of objects, each of which contains information about the documents to add.IngestKnowledgeBaseDocumentsRequest.Builderdocuments(Consumer<KnowledgeBaseDocument.Builder>... documents)A list of objects, each of which contains information about the documents to add.IngestKnowledgeBaseDocumentsRequest.Builderdocuments(KnowledgeBaseDocument... documents)A list of objects, each of which contains information about the documents to add.IngestKnowledgeBaseDocumentsRequest.BuilderknowledgeBaseId(String knowledgeBaseId)The unique identifier of the knowledge base to ingest the documents into.IngestKnowledgeBaseDocumentsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)IngestKnowledgeBaseDocumentsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
knowledgeBaseId
IngestKnowledgeBaseDocumentsRequest.Builder knowledgeBaseId(String 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
IngestKnowledgeBaseDocumentsRequest.Builder dataSourceId(String 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
IngestKnowledgeBaseDocumentsRequest.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.
-
documents
IngestKnowledgeBaseDocumentsRequest.Builder documents(Collection<KnowledgeBaseDocument> 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(KnowledgeBaseDocument... 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 to#documents(List.) - 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:
#documents(java.util.Collection)
-
overrideConfiguration
IngestKnowledgeBaseDocumentsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
IngestKnowledgeBaseDocumentsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-