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