Class RandomScoreFunction.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.RandomScoreFunction.Builder
- All Implemented Interfaces:
CopyableBuilder<RandomScoreFunction.Builder,,RandomScoreFunction> MutableBuilder<RandomScoreFunction.Builder,,RandomScoreFunction> ObjectBuilder<RandomScoreFunction>
- Enclosing class:
RandomScoreFunction
public static class RandomScoreFunction.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RandomScoreFunction.Builder,RandomScoreFunction>
Builder for
RandomScoreFunction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRandomScoreFunction.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:fieldAPI name:seedMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<RandomScoreFunction.Builder,RandomScoreFunction> - Returns:
- a new builder instance.
-
field
API name:field -
seed
API name:seed -
build
Builds aRandomScoreFunction.- Specified by:
buildin interfaceObjectBuilder<RandomScoreFunction>- Throws:
NullPointerException- if some of the required fields are null.
-