Class CfnIndex.IndexProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchserverless.CfnIndex.IndexProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndex.IndexProperty>
- Enclosing interface:
CfnIndex.IndexProperty
@Stability(Stable)
public static final class CfnIndex.IndexProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndex.IndexProperty>
A builder for
CfnIndex.IndexProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnIndex.IndexProperty.getKnn()
knn
(IResolvable knn) Sets the value ofCfnIndex.IndexProperty.getKnn()
knnAlgoParamEfSearch
(Number knnAlgoParamEfSearch) Sets the value ofCfnIndex.IndexProperty.getKnnAlgoParamEfSearch()
refreshInterval
(String refreshInterval) Sets the value ofCfnIndex.IndexProperty.getRefreshInterval()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
knn
Sets the value ofCfnIndex.IndexProperty.getKnn()
- Parameters:
knn
- Enable or disable k-nearest neighbor search capability.- Returns:
this
-
knn
Sets the value ofCfnIndex.IndexProperty.getKnn()
- Parameters:
knn
- Enable or disable k-nearest neighbor search capability.- Returns:
this
-
knnAlgoParamEfSearch
@Stability(Stable) public CfnIndex.IndexProperty.Builder knnAlgoParamEfSearch(Number knnAlgoParamEfSearch) Sets the value ofCfnIndex.IndexProperty.getKnnAlgoParamEfSearch()
- Parameters:
knnAlgoParamEfSearch
- The size of the dynamic list for the nearest neighbors.- Returns:
this
-
refreshInterval
Sets the value ofCfnIndex.IndexProperty.getRefreshInterval()
- Parameters:
refreshInterval
- How often to perform a refresh operation. For example, 1s or 5s.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIndex.IndexProperty>
- Returns:
- a new instance of
CfnIndex.IndexProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-