Interface RetrieveRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRuntimeRequest.Builder,Buildable,CopyableBuilder<RetrieveRequest.Builder,RetrieveRequest>,SdkBuilder<RetrieveRequest.Builder,RetrieveRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- RetrieveRequest
public static interface RetrieveRequest.Builder extends BedrockAgentRuntimeRequest.Builder, SdkPojo, CopyableBuilder<RetrieveRequest.Builder,RetrieveRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RetrieveRequest.BuilderknowledgeBaseId(String knowledgeBaseId)The unique identifier of the knowledge base to query.RetrieveRequest.BuildernextToken(String nextToken)If there are more results than can fit in the response, the response returns anextToken.RetrieveRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)RetrieveRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default RetrieveRequest.BuilderretrievalConfiguration(Consumer<KnowledgeBaseRetrievalConfiguration.Builder> retrievalConfiguration)Contains configurations for the knowledge base query and retrieval process.RetrieveRequest.BuilderretrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration)Contains configurations for the knowledge base query and retrieval process.default RetrieveRequest.BuilderretrievalQuery(Consumer<KnowledgeBaseQuery.Builder> retrievalQuery)Contains the query to send the knowledge base.RetrieveRequest.BuilderretrievalQuery(KnowledgeBaseQuery retrievalQuery)Contains the query to send the knowledge base.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeRequest.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
-
knowledgeBaseId
RetrieveRequest.Builder knowledgeBaseId(String knowledgeBaseId)
The unique identifier of the knowledge base to query.
- Parameters:
knowledgeBaseId- The unique identifier of the knowledge base to query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
RetrieveRequest.Builder nextToken(String nextToken)
If there are more results than can fit in the response, the response returns a
nextToken. Use this token in thenextTokenfield of another request to retrieve the next batch of results.- Parameters:
nextToken- If there are more results than can fit in the response, the response returns anextToken. Use this token in thenextTokenfield of another request to retrieve the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievalConfiguration
RetrieveRequest.Builder retrievalConfiguration(KnowledgeBaseRetrievalConfiguration retrievalConfiguration)
Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.
- Parameters:
retrievalConfiguration- Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievalConfiguration
default RetrieveRequest.Builder retrievalConfiguration(Consumer<KnowledgeBaseRetrievalConfiguration.Builder> retrievalConfiguration)
Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.
This is a convenience method that creates an instance of theKnowledgeBaseRetrievalConfiguration.Builderavoiding the need to create one manually viaKnowledgeBaseRetrievalConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretrievalConfiguration(KnowledgeBaseRetrievalConfiguration).- Parameters:
retrievalConfiguration- a consumer that will call methods onKnowledgeBaseRetrievalConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retrievalConfiguration(KnowledgeBaseRetrievalConfiguration)
-
retrievalQuery
RetrieveRequest.Builder retrievalQuery(KnowledgeBaseQuery retrievalQuery)
Contains the query to send the knowledge base.
- Parameters:
retrievalQuery- Contains the query to send the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievalQuery
default RetrieveRequest.Builder retrievalQuery(Consumer<KnowledgeBaseQuery.Builder> retrievalQuery)
Contains the query to send the knowledge base.
This is a convenience method that creates an instance of theKnowledgeBaseQuery.Builderavoiding the need to create one manually viaKnowledgeBaseQuery.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretrievalQuery(KnowledgeBaseQuery).- Parameters:
retrievalQuery- a consumer that will call methods onKnowledgeBaseQuery.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retrievalQuery(KnowledgeBaseQuery)
-
overrideConfiguration
RetrieveRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
RetrieveRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-