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