Class CfnIndexPropsMixin.MethodProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.opensearchserverless.CfnIndexPropsMixin.MethodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndexPropsMixin.MethodProperty>
- Enclosing interface:
CfnIndexPropsMixin.MethodProperty
@Stability(Stable)
public static final class CfnIndexPropsMixin.MethodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndexPropsMixin.MethodProperty>
A builder for
CfnIndexPropsMixin.MethodProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnIndexPropsMixin.MethodProperty.getEngine()Sets the value ofCfnIndexPropsMixin.MethodProperty.getName()parameters(CfnIndexPropsMixin.ParametersProperty parameters) Sets the value ofCfnIndexPropsMixin.MethodProperty.getParameters()parameters(IResolvable parameters) Sets the value ofCfnIndexPropsMixin.MethodProperty.getParameters()Sets the value ofCfnIndexPropsMixin.MethodProperty.getSpaceType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
engine
Sets the value ofCfnIndexPropsMixin.MethodProperty.getEngine()- Parameters:
engine- The k-NN search engine to use.- Returns:
this
-
name
Sets the value ofCfnIndexPropsMixin.MethodProperty.getName()- Parameters:
name- The algorithm name for k-NN search.- Returns:
this
-
parameters
@Stability(Stable) public CfnIndexPropsMixin.MethodProperty.Builder parameters(IResolvable parameters) Sets the value ofCfnIndexPropsMixin.MethodProperty.getParameters()- Parameters:
parameters- Additional parameters for the k-NN algorithm.- Returns:
this
-
parameters
@Stability(Stable) public CfnIndexPropsMixin.MethodProperty.Builder parameters(CfnIndexPropsMixin.ParametersProperty parameters) Sets the value ofCfnIndexPropsMixin.MethodProperty.getParameters()- Parameters:
parameters- Additional parameters for the k-NN algorithm.- Returns:
this
-
spaceType
Sets the value ofCfnIndexPropsMixin.MethodProperty.getSpaceType()- Parameters:
spaceType- The distance function used for k-NN search.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIndexPropsMixin.MethodProperty>- Returns:
- a new instance of
CfnIndexPropsMixin.MethodProperty - Throws:
NullPointerException- if any required attribute was not provided
-