Interface RerankRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRuntimeRequest.Builder,Buildable,CopyableBuilder<RerankRequest.Builder,,RerankRequest> SdkBuilder<RerankRequest.Builder,,RerankRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
RerankRequest
-
Method Summary
Modifier and TypeMethodDescriptionIf the total number of results was greater than could fit in a response, a token is returned in thenextTokenfield.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.queries(Collection<RerankQuery> queries) An array of objects, each of which contains information about a query to submit to the reranker model.queries(Consumer<RerankQuery.Builder>... queries) An array of objects, each of which contains information about a query to submit to the reranker model.queries(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.rerankingConfiguration(RerankingConfiguration rerankingConfiguration) Contains configurations for reranking.sources(Collection<RerankSource> sources) An array of objects, each of which contains information about the sources to rerank.sources(Consumer<RerankSource.Builder>... sources) An array of objects, each of which contains information about the sources to rerank.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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeRequest.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
-
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
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
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 toqueries(List<RerankQuery>).- 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:
-
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
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
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 tosources(List<RerankSource>).- 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:
-
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:
-
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.
-
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
RerankRequest.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.
-