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