Interface QueryVectorsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<QueryVectorsResponse.Builder,,QueryVectorsResponse> S3VectorsResponse.Builder,SdkBuilder<QueryVectorsResponse.Builder,,QueryVectorsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
QueryVectorsResponse
-
Method Summary
Modifier and TypeMethodDescriptiondistanceMetric(String distanceMetric) The distance metric that was used for the similarity search calculation.distanceMetric(DistanceMetric distanceMetric) The distance metric that was used for the similarity search calculation.Pagination token to be used in the subsequent page request.vectors(Collection<QueryOutputVector> vectors) The vectors in the approximate nearest neighbor search.vectors(Consumer<QueryOutputVector.Builder>... vectors) The vectors in the approximate nearest neighbor search.vectors(QueryOutputVector... vectors) The vectors in the approximate nearest neighbor search.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.s3vectors.model.S3VectorsResponse.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
-
vectors
The vectors in the approximate nearest neighbor search.
- Parameters:
vectors- The vectors in the approximate nearest neighbor search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectors
The vectors in the approximate nearest neighbor search.
- Parameters:
vectors- The vectors in the approximate nearest neighbor search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectors
The vectors in the approximate nearest neighbor search.
This is a convenience method that creates an instance of theQueryOutputVector.Builderavoiding the need to create one manually viaQueryOutputVector.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovectors(List<QueryOutputVector>).- Parameters:
vectors- a consumer that will call methods onQueryOutputVector.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
distanceMetric
The distance metric that was used for the similarity search calculation. This is the same distance metric that was configured for the vector index when it was created.
- Parameters:
distanceMetric- The distance metric that was used for the similarity search calculation. This is the same distance metric that was configured for the vector index when it was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
distanceMetric
The distance metric that was used for the similarity search calculation. This is the same distance metric that was configured for the vector index when it was created.
- Parameters:
distanceMetric- The distance metric that was used for the similarity search calculation. This is the same distance metric that was configured for the vector index when it was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Pagination token to be used in the subsequent page request. The field is empty if no further pagination is required.
- Parameters:
nextToken- Pagination token to be used in the subsequent page request. The field is empty if no further pagination is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-