Class CfnTable.VectorIndexProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CfnTable.VectorIndexProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.VectorIndexProperty>
- Enclosing interface:
CfnTable.VectorIndexProperty
@Stability(Stable)
public static final class CfnTable.VectorIndexProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.VectorIndexProperty>
A builder for
CfnTable.VectorIndexProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensions(Number dimensions) Sets the value ofCfnTable.VectorIndexProperty.getDimensions()distanceFunction(String distanceFunction) Sets the value ofCfnTable.VectorIndexProperty.getDistanceFunction()Sets the value ofCfnTable.VectorIndexProperty.getIndexName()projection(IResolvable projection) Sets the value ofCfnTable.VectorIndexProperty.getProjection()projection(CfnTable.ProjectionProperty projection) Sets the value ofCfnTable.VectorIndexProperty.getProjection()searchSchema(List<? extends Object> searchSchema) Sets the value ofCfnTable.VectorIndexProperty.getSearchSchema()searchSchema(IResolvable searchSchema) Sets the value ofCfnTable.VectorIndexProperty.getSearchSchema()vectorAttribute(IResolvable vectorAttribute) Sets the value ofCfnTable.VectorIndexProperty.getVectorAttribute()vectorAttribute(CfnTable.VectorAttributeProperty vectorAttribute) Sets the value ofCfnTable.VectorIndexProperty.getVectorAttribute()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimensions
Sets the value ofCfnTable.VectorIndexProperty.getDimensions()- Parameters:
dimensions- the value to be set. This parameter is required.- Returns:
this
-
distanceFunction
@Stability(Stable) public CfnTable.VectorIndexProperty.Builder distanceFunction(String distanceFunction) Sets the value ofCfnTable.VectorIndexProperty.getDistanceFunction()- Parameters:
distanceFunction- the value to be set. This parameter is required.- Returns:
this
-
indexName
Sets the value ofCfnTable.VectorIndexProperty.getIndexName()- Parameters:
indexName- the value to be set. This parameter is required.- Returns:
this
-
projection
Sets the value ofCfnTable.VectorIndexProperty.getProjection()- Parameters:
projection- Represents attributes that are copied (projected) from the table into an index. This parameter is required. These are in addition to the primary key attributes and index key attributes, which are automatically projected.- Returns:
this
-
projection
@Stability(Stable) public CfnTable.VectorIndexProperty.Builder projection(CfnTable.ProjectionProperty projection) Sets the value ofCfnTable.VectorIndexProperty.getProjection()- Parameters:
projection- Represents attributes that are copied (projected) from the table into an index. This parameter is required. These are in addition to the primary key attributes and index key attributes, which are automatically projected.- Returns:
this
-
vectorAttribute
@Stability(Stable) public CfnTable.VectorIndexProperty.Builder vectorAttribute(IResolvable vectorAttribute) Sets the value ofCfnTable.VectorIndexProperty.getVectorAttribute()- Parameters:
vectorAttribute- the value to be set. This parameter is required.- Returns:
this
-
vectorAttribute
@Stability(Stable) public CfnTable.VectorIndexProperty.Builder vectorAttribute(CfnTable.VectorAttributeProperty vectorAttribute) Sets the value ofCfnTable.VectorIndexProperty.getVectorAttribute()- Parameters:
vectorAttribute- the value to be set. This parameter is required.- Returns:
this
-
searchSchema
@Stability(Stable) public CfnTable.VectorIndexProperty.Builder searchSchema(IResolvable searchSchema) Sets the value ofCfnTable.VectorIndexProperty.getSearchSchema()- Parameters:
searchSchema- the value to be set.- Returns:
this
-
searchSchema
@Stability(Stable) public CfnTable.VectorIndexProperty.Builder searchSchema(List<? extends Object> searchSchema) Sets the value ofCfnTable.VectorIndexProperty.getSearchSchema()- Parameters:
searchSchema- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTable.VectorIndexProperty>- Returns:
- a new instance of
CfnTable.VectorIndexProperty - Throws:
NullPointerException- if any required attribute was not provided
-