Class SettingsSimilarityScripted.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SettingsSimilarityScripted.Builder>
co.elastic.clients.elasticsearch.indices.SettingsSimilarityScripted.Builder
- All Implemented Interfaces:
WithJson<SettingsSimilarityScripted.Builder>
,ObjectBuilder<SettingsSimilarityScripted>
- Enclosing class:
- SettingsSimilarityScripted
public static class SettingsSimilarityScripted.Builder
extends WithJsonObjectBuilderBase<SettingsSimilarityScripted.Builder>
implements ObjectBuilder<SettingsSimilarityScripted>
Builder for
SettingsSimilarityScripted
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSettingsSimilarityScripted
.Required - API name:script
Required - API name:script
protected SettingsSimilarityScripted.Builder
self()
weightScript
(Script value) API name:weight_script
API name:weight_script
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
-
script
Required - API name:script
-
script
public final SettingsSimilarityScripted.Builder script(Function<Script.Builder, ObjectBuilder<Script>> fn) Required - API name:script
-
weightScript
API name:weight_script
-
weightScript
public final SettingsSimilarityScripted.Builder weightScript(Function<Script.Builder, ObjectBuilder<Script>> fn) API name:weight_script
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SettingsSimilarityScripted.Builder>
-
build
Builds aSettingsSimilarityScripted
.- Specified by:
build
in interfaceObjectBuilder<SettingsSimilarityScripted>
- Throws:
NullPointerException
- if some of the required fields are null.
-