Class SmoothingModel.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SmoothingModel.Builder>
co.elastic.clients.elasticsearch.core.search.SmoothingModel.Builder
- All Implemented Interfaces:
WithJson<SmoothingModel.Builder>
,ObjectBuilder<SmoothingModel>
- Enclosing class:
- SmoothingModel
public static class SmoothingModel.Builder
extends WithJsonObjectBuilderBase<SmoothingModel.Builder>
implements ObjectBuilder<SmoothingModel>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
linearInterpolation
(Function<LinearInterpolationSmoothingModel.Builder, ObjectBuilder<LinearInterpolationSmoothingModel>> fn) protected SmoothingModel.Builder
self()
stupidBackoff
(Function<StupidBackoffSmoothingModel.Builder, ObjectBuilder<StupidBackoffSmoothingModel>> fn) 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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SmoothingModel.Builder>
-
laplace
-
laplace
public ObjectBuilder<SmoothingModel> laplace(Function<LaplaceSmoothingModel.Builder, ObjectBuilder<LaplaceSmoothingModel>> fn) -
linearInterpolation
-
linearInterpolation
public ObjectBuilder<SmoothingModel> linearInterpolation(Function<LinearInterpolationSmoothingModel.Builder, ObjectBuilder<LinearInterpolationSmoothingModel>> fn) -
stupidBackoff
-
stupidBackoff
public ObjectBuilder<SmoothingModel> stupidBackoff(Function<StupidBackoffSmoothingModel.Builder, ObjectBuilder<StupidBackoffSmoothingModel>> fn) -
build
- Specified by:
build
in interfaceObjectBuilder<SmoothingModel>
-