Interface RerankResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentRuntimeResponse.Builder,Buildable,CopyableBuilder<RerankResponse.Builder,,RerankResponse> SdkBuilder<RerankResponse.Builder,,RerankResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
RerankResponse
@Mutable
@NotThreadSafe
public static interface RerankResponse.Builder
extends BedrockAgentRuntimeResponse.Builder, SdkPojo, CopyableBuilder<RerankResponse.Builder,RerankResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIf the total number of results is greater than can fit in the response, use this token in thenextTokenfield when making another request to return the next batch of results.results(Collection<RerankResult> results) An array of objects, each of which contains information about the results of reranking.results(Consumer<RerankResult.Builder>... results) An array of objects, each of which contains information about the results of reranking.results(RerankResult... results) An array of objects, each of which contains information about the results of reranking.Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
results
An array of objects, each of which contains information about the results of reranking.
- Parameters:
results- An array of objects, each of which contains information about the results of reranking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
An array of objects, each of which contains information about the results of reranking.
- Parameters:
results- An array of objects, each of which contains information about the results of reranking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
An array of objects, each of which contains information about the results of reranking.
This is a convenience method that creates an instance of theRerankResult.Builderavoiding the need to create one manually viaRerankResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresults(List<RerankResult>).- Parameters:
results- a consumer that will call methods onRerankResult.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 is greater than can fit in the response, use this token in the
nextTokenfield when making another request to return the next batch of results.- Parameters:
nextToken- If the total number of results is greater than can fit in the response, use this token in thenextTokenfield when making another request to return the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-