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