Interface RescoreRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<RescoreRequest.Builder,,RescoreRequest> KendraRankingRequest.Builder,SdkBuilder<RescoreRequest.Builder,,RescoreRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
RescoreRequest
public static interface RescoreRequest.Builder
extends KendraRankingRequest.Builder, SdkPojo, CopyableBuilder<RescoreRequest.Builder,RescoreRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondocuments(Collection<Document> documents) The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.documents(Consumer<Document.Builder>... documents) The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.rescoreExecutionPlanId(String rescoreExecutionPlanId) The identifier of the rescore execution plan.searchQuery(String searchQuery) The input query from the search service.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.kendraranking.model.KendraRankingRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
rescoreExecutionPlanId
The identifier of the rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
RescoreAPI.- Parameters:
rescoreExecutionPlanId- The identifier of the rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning theRescoreAPI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchQuery
The input query from the search service.
- Parameters:
searchQuery- The input query from the search service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.
- Parameters:
documents- The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.
- Parameters:
documents- The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documents
The list of documents for Amazon Kendra Intelligent Ranking to rescore or rank on.
This is a convenience method that creates an instance of theDocument.Builderavoiding the need to create one manually viaDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocuments(List<Document>).- Parameters:
documents- a consumer that will call methods onDocument.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
RescoreRequest.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.
-