Interface QueryVectorsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<QueryVectorsResponse.Builder,
,QueryVectorsResponse> S3VectorsResponse.Builder
,SdkBuilder<QueryVectorsResponse.Builder,
,QueryVectorsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
QueryVectorsResponse
@Mutable
@NotThreadSafe
public static interface QueryVectorsResponse.Builder
extends S3VectorsResponse.Builder, SdkPojo, CopyableBuilder<QueryVectorsResponse.Builder,QueryVectorsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionvectors
(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
copy
Methods inherited from interface software.amazon.awssdk.services.s3vectors.model.S3VectorsResponse.Builder
build, responseMetadata, responseMetadata
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 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.Builder
avoiding the need to create one manually viaQueryOutputVector.builder()
.When the
Consumer
completes,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:
-