Class Script.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Script.Builder>
co.elastic.clients.elasticsearch._types.Script.Builder
- All Implemented Interfaces:
WithJson<Script.Builder>,ObjectBuilder<Script>
- Enclosing class:
- Script
public static class Script.Builder
extends WithJsonObjectBuilderBase<Script.Builder>
implements ObjectBuilder<Script>
Builder for
Script.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aScript.final Script.BuilderTheidfor a stored script.final Script.Builderlang(ScriptLanguage value) Specifies the language the script is written in.final Script.BuilderSpecifies the language the script is written in.final Script.BuilderAPI name:optionsfinal Script.BuilderAPI name:optionsfinal Script.BuilderSpecifies any named parameters that are passed into the script as variables.final Script.BuilderSpecifies any named parameters that are passed into the script as variables.protected Script.Builderself()final Script.BuilderThe script source.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
source
The script source.API name:
source -
id
Theidfor a stored script.API name:
id -
params
Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time.API name:
paramsAdds all entries of
maptoparams. -
params
Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time.API name:
paramsAdds an entry to
params. -
lang
Specifies the language the script is written in.API name:
lang -
lang
Specifies the language the script is written in.API name:
lang -
options
API name:optionsAdds all entries of
maptooptions. -
options
API name:optionsAdds an entry to
options. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Script.Builder>
-
build
Builds aScript.- Specified by:
buildin interfaceObjectBuilder<Script>- Throws:
NullPointerException- if some of the required fields are null.
-