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.default CreateIndexRequest.BuilderencryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration) The encryption configuration for a vector index.encryptionConfiguration(EncryptionConfiguration encryptionConfiguration) The encryption configuration for a vector index.The name of the vector index to create.default CreateIndexRequest.BuildermetadataConfiguration(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.An array of user-defined tags that you would like to apply to the vector index that you are creating.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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.s3vectors.model.S3VectorsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaMetadataConfiguration.builder().When the
Consumercompletes,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:
-
encryptionConfiguration
The encryption configuration for a vector index. By default, if you don't specify, all new vectors in the vector index will use the encryption configuration of the vector bucket.
- Parameters:
encryptionConfiguration- The encryption configuration for a vector index. By default, if you don't specify, all new vectors in the vector index will use the encryption configuration of the vector bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfiguration
default CreateIndexRequest.Builder encryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration) The encryption configuration for a vector index. By default, if you don't specify, all new vectors in the vector index will use the encryption configuration of the vector bucket.
This is a convenience method that creates an instance of theEncryptionConfiguration.Builderavoiding the need to create one manually viaEncryptionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toencryptionConfiguration(EncryptionConfiguration).- Parameters:
encryptionConfiguration- a consumer that will call methods onEncryptionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
An array of user-defined tags that you would like to apply to the vector index that you are creating. A tag is a key-value pair that you apply to your resources. Tags can help you organize, track costs, and control access to resources. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).
You must have the
s3vectors:TagResourcepermission in addition tos3vectors:CreateIndexpermission to create a vector index with tags.- Parameters:
tags- An array of user-defined tags that you would like to apply to the vector index that you are creating. A tag is a key-value pair that you apply to your resources. Tags can help you organize, track costs, and control access to resources. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).You must have the
s3vectors:TagResourcepermission in addition tos3vectors:CreateIndexpermission to create a vector index with tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateIndexRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-