Interface Index.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Index.Builder,
,Index> SdkBuilder<Index.Builder,
,Index> SdkPojo
- Enclosing class:
Index
-
Method Summary
Modifier and TypeMethodDescriptioncreationTime
(Instant creationTime) Date and time when the vector index was created.The data type of the vectors inserted into the vector index.The data type of the vectors inserted into the vector index.The number of values in the vectors that are inserted into the vector index.distanceMetric
(String distanceMetric) The distance metric to be used for similarity search.distanceMetric
(DistanceMetric distanceMetric) The distance metric to be used for similarity search.The Amazon Resource Name (ARN) of the vector index.The name of the vector index.default Index.Builder
metadataConfiguration
(Consumer<MetadataConfiguration.Builder> metadataConfiguration) The metadata configuration for the vector index.metadataConfiguration
(MetadataConfiguration metadataConfiguration) The metadata configuration for the vector index.vectorBucketName
(String vectorBucketName) The name of the vector bucket that contains the vector index.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
-
vectorBucketName
The name of the vector bucket that contains the vector index.
- Parameters:
vectorBucketName
- The name of the vector bucket that contains the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexName
The name of the vector index.
- Parameters:
indexName
- The name of the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexArn
The Amazon Resource Name (ARN) of the vector index.
- Parameters:
indexArn
- The Amazon Resource Name (ARN) of the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
Date and time when the vector index was created.
- Parameters:
creationTime
- Date and time when the vector index was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataType
The data type of the vectors inserted into the vector index.
- Parameters:
dataType
- The data type of the vectors inserted into the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataType
The data type of the vectors inserted into the vector index.
- Parameters:
dataType
- The data type of the vectors inserted into the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dimension
The number of values in the vectors that are inserted into the vector index.
- Parameters:
dimension
- The number of values in the vectors that are inserted into the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distanceMetric
The distance metric to be used for similarity search.
- Parameters:
distanceMetric
- The distance metric to be used for similarity search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
distanceMetric
The distance metric to be used for similarity search.
- Parameters:
distanceMetric
- The distance metric to be used for similarity search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadataConfiguration
The metadata configuration for the vector index.
- Parameters:
metadataConfiguration
- The metadata configuration for the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataConfiguration
default Index.Builder metadataConfiguration(Consumer<MetadataConfiguration.Builder> metadataConfiguration) The metadata configuration for the vector index.
This is a convenience method that creates an instance of theMetadataConfiguration.Builder
avoiding the need to create one manually viaMetadataConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadataConfiguration(MetadataConfiguration)
.- Parameters:
metadataConfiguration
- a consumer that will call methods onMetadataConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-