Class RandomScoreFunction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RandomScoreFunction.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.RandomScoreFunction.Builder
- All Implemented Interfaces:
WithJson<RandomScoreFunction.Builder>,ObjectBuilder<RandomScoreFunction>
- Enclosing class:
- RandomScoreFunction
public static class RandomScoreFunction.Builder extends WithJsonObjectBuilderBase<RandomScoreFunction.Builder> implements ObjectBuilder<RandomScoreFunction>
Builder for
RandomScoreFunction.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RandomScoreFunctionbuild()Builds aRandomScoreFunction.RandomScoreFunction.Builderfield(java.lang.String value)API name:fieldRandomScoreFunction.Builderseed(java.lang.String value)API name:seedprotected RandomScoreFunction.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
API name:field -
seed
API name:seed -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RandomScoreFunction.Builder>
-
build
Builds aRandomScoreFunction.- Specified by:
buildin interfaceObjectBuilder<RandomScoreFunction>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-