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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RerankResponse.BuildernextToken(String 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.RerankResponse.Builderresults(Collection<RerankResult> results)An array of objects, each of which contains information about the results of reranking.RerankResponse.Builderresults(Consumer<RerankResult.Builder>... results)An array of objects, each of which contains information about the results of reranking.RerankResponse.Builderresults(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, responseMetadata
-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
nextToken
RerankResponse.Builder nextToken(String 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.
-
results
RerankResponse.Builder results(Collection<RerankResult> 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
RerankResponse.Builder results(RerankResult... 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
RerankResponse.Builder results(Consumer<RerankResult.Builder>... 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 to#results(List.) - 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:
#results(java.util.Collection)
-
-