Interface RescoreRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<RescoreRequest.Builder,
,RescoreRequest> KendraRankingRequest.Builder
,SdkBuilder<RescoreRequest.Builder,
,RescoreRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
RescoreRequest
@Mutable
@NotThreadSafe
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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.kendraranking.model.KendraRankingRequest.Builder
build
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 Details
-
rescoreExecutionPlanId
The identifier of the rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning the
Rescore
API.- Parameters:
rescoreExecutionPlanId
- The identifier of the rescore execution plan. A rescore execution plan is an Amazon Kendra Intelligent Ranking resource used for provisioning theRescore
API.- 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.Builder
avoiding the need to create one manually viaDocument.builder()
.When the
Consumer
completes,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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-