Interface SearchVectorsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<SearchVectorsResponse.Builder,,SearchVectorsResponse> DynamoDbResponse.Builder,SdkBuilder<SearchVectorsResponse.Builder,,SearchVectorsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchVectorsResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault SearchVectorsResponse.BuilderconsumedCapacity(Consumer<VectorCapacity.Builder> consumedCapacity) The capacity units consumed by theSearchVectorsoperation.consumedCapacity(VectorCapacity consumedCapacity) The capacity units consumed by theSearchVectorsoperation.searchResults(Collection<SearchResultItem> searchResults) A list of items returned by the vector similarity search, sorted by similarity with the most similar item first.searchResults(Consumer<SearchResultItem.Builder>... searchResults) A list of items returned by the vector similarity search, sorted by similarity with the most similar item first.searchResults(SearchResultItem... searchResults) A list of items returned by the vector similarity search, sorted by similarity with the most similar item first.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.dynamodb.model.DynamoDbResponse.Builder
build, responseMetadata, responseMetadataMethods 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
-
consumedCapacity
The capacity units consumed by the
SearchVectorsoperation. ContainsVectorSearchRequestBytes, which represents the vector search capacity consumed.- Parameters:
consumedCapacity- The capacity units consumed by theSearchVectorsoperation. ContainsVectorSearchRequestBytes, which represents the vector search capacity consumed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
consumedCapacity
default SearchVectorsResponse.Builder consumedCapacity(Consumer<VectorCapacity.Builder> consumedCapacity) The capacity units consumed by the
This is a convenience method that creates an instance of theSearchVectorsoperation. ContainsVectorSearchRequestBytes, which represents the vector search capacity consumed.VectorCapacity.Builderavoiding the need to create one manually viaVectorCapacity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconsumedCapacity(VectorCapacity).- Parameters:
consumedCapacity- a consumer that will call methods onVectorCapacity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
searchResults
A list of items returned by the vector similarity search, sorted by similarity with the most similar item first. Each item contains the projected attributes and a similarity score.
- Parameters:
searchResults- A list of items returned by the vector similarity search, sorted by similarity with the most similar item first. Each item contains the projected attributes and a similarity score.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchResults
A list of items returned by the vector similarity search, sorted by similarity with the most similar item first. Each item contains the projected attributes and a similarity score.
- Parameters:
searchResults- A list of items returned by the vector similarity search, sorted by similarity with the most similar item first. Each item contains the projected attributes and a similarity score.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchResults
A list of items returned by the vector similarity search, sorted by similarity with the most similar item first. Each item contains the projected attributes and a similarity score.
This is a convenience method that creates an instance of theSearchResultItem.Builderavoiding the need to create one manually viaSearchResultItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosearchResults(List<SearchResultItem>).- Parameters:
searchResults- a consumer that will call methods onSearchResultItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-