Interface RerankRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,BedrockAgentRuntimeRequest.Builder
,Buildable
,CopyableBuilder<RerankRequest.Builder,RerankRequest>
,SdkBuilder<RerankRequest.Builder,RerankRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- RerankRequest
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.Builder
nextToken(String nextToken)
If the total number of results was greater than could fit in a response, a token is returned in thenextToken
field.RerankRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
RerankRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
RerankRequest.Builder
queries(Collection<RerankQuery> queries)
An array of objects, each of which contains information about a query to submit to the reranker model.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.RerankRequest.Builder
queries(RerankQuery... queries)
An array of objects, each of which contains information about a query to submit to the reranker model.default RerankRequest.Builder
rerankingConfiguration(Consumer<RerankingConfiguration.Builder> rerankingConfiguration)
Contains configurations for reranking.RerankRequest.Builder
rerankingConfiguration(RerankingConfiguration rerankingConfiguration)
Contains configurations for reranking.RerankRequest.Builder
sources(Collection<RerankSource> sources)
An array of objects, each of which contains information about the sources to rerank.RerankRequest.Builder
sources(Consumer<RerankSource.Builder>... sources)
An array of objects, each of which contains information about the sources to rerank.RerankRequest.Builder
sources(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
nextToken
field. 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 thenextToken
field. 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.Builder
avoiding the need to create one manually viaRerankQuery.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaRerankingConfiguration.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaRerankSource.builder()
.When the
Consumer
completes,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:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
RerankRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-