Interface GetKnowledgeBaseDocumentsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<GetKnowledgeBaseDocumentsRequest.Builder,,GetKnowledgeBaseDocumentsRequest> SdkBuilder<GetKnowledgeBaseDocumentsRequest.Builder,,GetKnowledgeBaseDocumentsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
GetKnowledgeBaseDocumentsRequest
@Mutable
@NotThreadSafe
public static interface GetKnowledgeBaseDocumentsRequest.Builder
extends BedrockAgentRequest.Builder, SdkPojo, CopyableBuilder<GetKnowledgeBaseDocumentsRequest.Builder,GetKnowledgeBaseDocumentsRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondataSourceId(String dataSourceId) The unique identifier of the data source that contains the documents.documentIdentifiers(Collection<DocumentIdentifier> documentIdentifiers) A list of objects, each of which contains information to identify a document for which to retrieve information.documentIdentifiers(Consumer<DocumentIdentifier.Builder>... documentIdentifiers) A list of objects, each of which contains information to identify a document for which to retrieve information.documentIdentifiers(DocumentIdentifier... documentIdentifiers) A list of objects, each of which contains information to identify a document for which to retrieve information.knowledgeBaseId(String knowledgeBaseId) The unique identifier of the knowledge base that is connected to the data source.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 that is connected to the data source.
- Parameters:
knowledgeBaseId- The unique identifier of the knowledge base that is connected to the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceId
The unique identifier of the data source that contains the documents.
- Parameters:
dataSourceId- The unique identifier of the data source that contains the documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentIdentifiers
GetKnowledgeBaseDocumentsRequest.Builder documentIdentifiers(Collection<DocumentIdentifier> documentIdentifiers) A list of objects, each of which contains information to identify a document for which to retrieve information.
- Parameters:
documentIdentifiers- A list of objects, each of which contains information to identify a document for which to retrieve information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentIdentifiers
GetKnowledgeBaseDocumentsRequest.Builder documentIdentifiers(DocumentIdentifier... documentIdentifiers) A list of objects, each of which contains information to identify a document for which to retrieve information.
- Parameters:
documentIdentifiers- A list of objects, each of which contains information to identify a document for which to retrieve information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentIdentifiers
GetKnowledgeBaseDocumentsRequest.Builder documentIdentifiers(Consumer<DocumentIdentifier.Builder>... documentIdentifiers) A list of objects, each of which contains information to identify a document for which to retrieve information.
This is a convenience method that creates an instance of theDocumentIdentifier.Builderavoiding the need to create one manually viaDocumentIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentIdentifiers(List<DocumentIdentifier>).- Parameters:
documentIdentifiers- a consumer that will call methods onDocumentIdentifier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
GetKnowledgeBaseDocumentsRequest.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
GetKnowledgeBaseDocumentsRequest.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.
-