Interface RerankRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRuntimeRequest.Builder,Buildable,CopyableBuilder<RerankRequest.Builder,RerankRequest>,SdkBuilder<RerankRequest.Builder,RerankRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- RerankRequest
@Mutable @NotThreadSafe public static interface RerankRequest.Builder extends BedrockAgentRuntimeRequest.Builder, SdkPojo, CopyableBuilder<RerankRequest.Builder,RerankRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RerankRequest.BuildernextToken(String nextToken)If the total number of results was greater than could fit in a response, a token is returned in thenextTokenfield.RerankRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)RerankRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)RerankRequest.Builderqueries(Collection<RerankQuery> queries)An array of objects, each of which contains information about a query to submit to the reranker model.RerankRequest.Builderqueries(Consumer<RerankQuery.Builder>... queries)An array of objects, each of which contains information about a query to submit to the reranker model.RerankRequest.Builderqueries(RerankQuery... queries)An array of objects, each of which contains information about a query to submit to the reranker model.default RerankRequest.BuilderrerankingConfiguration(Consumer<RerankingConfiguration.Builder> rerankingConfiguration)Contains configurations for reranking.RerankRequest.BuilderrerankingConfiguration(RerankingConfiguration rerankingConfiguration)Contains configurations for reranking.RerankRequest.Buildersources(Collection<RerankSource> sources)An array of objects, each of which contains information about the sources to rerank.RerankRequest.Buildersources(Consumer<RerankSource.Builder>... sources)An array of objects, each of which contains information about the sources to rerank.RerankRequest.Buildersources(RerankSource... sources)An array of objects, each of which contains information about the sources to rerank.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
nextToken
RerankRequest.Builder nextToken(String nextToken)
If the total number of results was greater than could fit in a response, a token is returned in the
nextTokenfield. You can enter that token in this field to return the next batch of results.- Parameters:
nextToken- If the total number of results was greater than could fit in a response, a token is returned in thenextTokenfield. You can enter that token in this field to return the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queries
RerankRequest.Builder queries(Collection<RerankQuery> queries)
An array of objects, each of which contains information about a query to submit to the reranker model.
- Parameters:
queries- An array of objects, each of which contains information about a query to submit to the reranker model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queries
RerankRequest.Builder queries(RerankQuery... queries)
An array of objects, each of which contains information about a query to submit to the reranker model.
- Parameters:
queries- An array of objects, each of which contains information about a query to submit to the reranker model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queries
RerankRequest.Builder queries(Consumer<RerankQuery.Builder>... queries)
An array of objects, each of which contains information about a query to submit to the reranker model.
This is a convenience method that creates an instance of theRerankQuery.Builderavoiding the need to create one manually viaRerankQuery.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#queries(List.) - Parameters:
queries- a consumer that will call methods onRerankQuery.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#queries(java.util.Collection)
-
rerankingConfiguration
RerankRequest.Builder rerankingConfiguration(RerankingConfiguration rerankingConfiguration)
Contains configurations for reranking.
- Parameters:
rerankingConfiguration- Contains configurations for reranking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rerankingConfiguration
default RerankRequest.Builder rerankingConfiguration(Consumer<RerankingConfiguration.Builder> rerankingConfiguration)
Contains configurations for reranking.
This is a convenience method that creates an instance of theRerankingConfiguration.Builderavoiding the need to create one manually viaRerankingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torerankingConfiguration(RerankingConfiguration).- Parameters:
rerankingConfiguration- a consumer that will call methods onRerankingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
rerankingConfiguration(RerankingConfiguration)
-
sources
RerankRequest.Builder sources(Collection<RerankSource> sources)
An array of objects, each of which contains information about the sources to rerank.
- Parameters:
sources- An array of objects, each of which contains information about the sources to rerank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
RerankRequest.Builder sources(RerankSource... sources)
An array of objects, each of which contains information about the sources to rerank.
- Parameters:
sources- An array of objects, each of which contains information about the sources to rerank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
RerankRequest.Builder sources(Consumer<RerankSource.Builder>... sources)
An array of objects, each of which contains information about the sources to rerank.
This is a convenience method that creates an instance of theRerankSource.Builderavoiding the need to create one manually viaRerankSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sources(List.) - Parameters:
sources- a consumer that will call methods onRerankSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#sources(java.util.Collection)
-
overrideConfiguration
RerankRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
RerankRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-