Interface QueryOutputVector.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<QueryOutputVector.Builder,
,QueryOutputVector> SdkBuilder<QueryOutputVector.Builder,
,QueryOutputVector> SdkPojo
- Enclosing class:
QueryOutputVector
@Mutable
@NotThreadSafe
public static interface QueryOutputVector.Builder
extends SdkPojo, CopyableBuilder<QueryOutputVector.Builder,QueryOutputVector>
-
Method Summary
Modifier and TypeMethodDescriptiondefault QueryOutputVector.Builder
data
(Consumer<VectorData.Builder> data) The vector data associated with the vector, if requested.data
(VectorData data) The vector data associated with the vector, if requested.The measure of similarity between the vector in the response and the query vector.The key of the vector in the approximate nearest neighbor search.The metadata associated with the vector, if requested.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
-
Method Details
-
key
The key of the vector in the approximate nearest neighbor search.
- Parameters:
key
- The key of the vector in the approximate nearest neighbor search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
data
The vector data associated with the vector, if requested.
- Parameters:
data
- The vector data associated with the vector, if requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
data
The vector data associated with the vector, if requested.
This is a convenience method that creates an instance of theVectorData.Builder
avoiding the need to create one manually viaVectorData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todata(VectorData)
.- Parameters:
data
- a consumer that will call methods onVectorData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
The metadata associated with the vector, if requested.
- Parameters:
metadata
- The metadata associated with the vector, if requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distance
The measure of similarity between the vector in the response and the query vector.
- Parameters:
distance
- The measure of similarity between the vector in the response and the query vector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-