Class ScoreRankerCombination.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.search_pipeline.ScoreRankerCombination.Builder
-
- All Implemented Interfaces:
CopyableBuilder<ScoreRankerCombination.Builder,ScoreRankerCombination>,MutableBuilder<ScoreRankerCombination.Builder,ScoreRankerCombination>,ObjectBuilder<ScoreRankerCombination>
- Enclosing class:
- ScoreRankerCombination
public static class ScoreRankerCombination.Builder extends ObjectBuilderBase implements CopyableBuilder<ScoreRankerCombination.Builder,ScoreRankerCombination>
Builder forScoreRankerCombination.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScoreRankerCombinationbuild()Builds aScoreRankerCombination.ScoreRankerCombination.Buildercopy()Create a new builderCopyableBuilderthat is a copy of this one.ScoreRankerCombination.BuilderrankConstant(java.lang.Integer value)API name:rank_constantScoreRankerCombination.Buildertechnique(ScoreRankerCombinationTechnique value)Required - API name:technique-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
-
-
-
Method Detail
-
copy
@Nonnull public ScoreRankerCombination.Builder copy()
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<ScoreRankerCombination.Builder,ScoreRankerCombination>- Returns:
- a new builder instance.
-
rankConstant
@Nonnull public final ScoreRankerCombination.Builder rankConstant(@Nullable java.lang.Integer value)
API name:rank_constant
-
technique
@Nonnull public final ScoreRankerCombination.Builder technique(ScoreRankerCombinationTechnique value)
Required - API name:technique
-
build
@Nonnull public ScoreRankerCombination build()
Builds aScoreRankerCombination.- Specified by:
buildin interfaceObjectBuilder<ScoreRankerCombination>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-