Interface CreateIndexRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateIndexRequest.Builder,
,CreateIndexRequest> S3VectorsRequest.Builder
,SdkBuilder<CreateIndexRequest.Builder,
,CreateIndexRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateIndexRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe data type of the vectors to be inserted into the vector index.The data type of the vectors to be inserted into the vector index.The dimensions of the vectors to be 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 name of the vector index to create.default CreateIndexRequest.Builder
metadataConfiguration
(Consumer<MetadataConfiguration.Builder> metadataConfiguration) The metadata configuration for the vector index.metadataConfiguration
(MetadataConfiguration metadataConfiguration) The metadata configuration for the vector index.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.vectorBucketArn
(String vectorBucketArn) The Amazon Resource Name (ARN) of the vector bucket to create the vector index in.vectorBucketName
(String vectorBucketName) The name of the vector bucket to create the vector index in.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.s3vectors.model.S3VectorsRequest.Builder
build
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 to create the vector index in.
- Parameters:
vectorBucketName
- The name of the vector bucket to create the vector index in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectorBucketArn
The Amazon Resource Name (ARN) of the vector bucket to create the vector index in.
- Parameters:
vectorBucketArn
- The Amazon Resource Name (ARN) of the vector bucket to create the vector index in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexName
The name of the vector index to create.
- Parameters:
indexName
- The name of the vector index to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataType
The data type of the vectors to be inserted into the vector index.
- Parameters:
dataType
- The data type of the vectors to be 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 to be inserted into the vector index.
- Parameters:
dataType
- The data type of the vectors to be inserted into the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dimension
The dimensions of the vectors to be inserted into the vector index.
- Parameters:
dimension
- The dimensions of the vectors to be 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 CreateIndexRequest.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:
-
overrideConfiguration
CreateIndexRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateIndexRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-