Class CfnIndexProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3vectors.CfnIndexProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndexProps>
- Enclosing interface:
CfnIndexProps
@Stability(Stable)
public static final class CfnIndexProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndexProps>
A builder for
CfnIndexProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnIndexProps.getDataType()Sets the value ofCfnIndexProps.getDimension()distanceMetric(String distanceMetric) Sets the value ofCfnIndexProps.getDistanceMetric()Sets the value ofCfnIndexProps.getIndexName()metadataConfiguration(IResolvable metadataConfiguration) Sets the value ofCfnIndexProps.getMetadataConfiguration()metadataConfiguration(CfnIndex.MetadataConfigurationProperty metadataConfiguration) Sets the value ofCfnIndexProps.getMetadataConfiguration()vectorBucketArn(String vectorBucketArn) Sets the value ofCfnIndexProps.getVectorBucketArn()vectorBucketName(String vectorBucketName) Sets the value ofCfnIndexProps.getVectorBucketName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataType
Sets the value ofCfnIndexProps.getDataType()- Parameters:
dataType- The data type of the vectors to be inserted into the vector index. This parameter is required.- Returns:
this
-
dimension
Sets the value ofCfnIndexProps.getDimension()- Parameters:
dimension- The dimensions of the vectors to be inserted into the vector index. This parameter is required.- Returns:
this
-
distanceMetric
Sets the value ofCfnIndexProps.getDistanceMetric()- Parameters:
distanceMetric- The distance metric to be used for similarity search. This parameter is required.- Returns:
this
-
indexName
Sets the value ofCfnIndexProps.getIndexName()- Parameters:
indexName- The name of the vector index to create.- Returns:
this
-
metadataConfiguration
@Stability(Stable) public CfnIndexProps.Builder metadataConfiguration(IResolvable metadataConfiguration) Sets the value ofCfnIndexProps.getMetadataConfiguration()- Parameters:
metadataConfiguration- The metadata configuration for the vector index.- Returns:
this
-
metadataConfiguration
@Stability(Stable) public CfnIndexProps.Builder metadataConfiguration(CfnIndex.MetadataConfigurationProperty metadataConfiguration) Sets the value ofCfnIndexProps.getMetadataConfiguration()- Parameters:
metadataConfiguration- The metadata configuration for the vector index.- Returns:
this
-
vectorBucketArn
Sets the value ofCfnIndexProps.getVectorBucketArn()- Parameters:
vectorBucketArn- The Amazon Resource Name (ARN) of the vector bucket.- Returns:
this
-
vectorBucketName
Sets the value ofCfnIndexProps.getVectorBucketName()- Parameters:
vectorBucketName- The name of the vector bucket that contains the vector index.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIndexProps>- Returns:
- a new instance of
CfnIndexProps - Throws:
NullPointerException- if any required attribute was not provided
-