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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aRandomScoreFunction
.API name:field
API name:seed
protected RandomScoreFunction.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
API name:field
-
seed
API name:seed
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<RandomScoreFunction.Builder>
-
build
Builds aRandomScoreFunction
.- Specified by:
build
in interfaceObjectBuilder<RandomScoreFunction>
- Throws:
NullPointerException
- if some of the required fields are null.
-