Class RoleTemplateScript.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RoleTemplateScript.Builder>
co.elastic.clients.elasticsearch.security.RoleTemplateScript.Builder
- All Implemented Interfaces:
WithJson<RoleTemplateScript.Builder>,ObjectBuilder<RoleTemplateScript>
- Enclosing class:
- RoleTemplateScript
public static class RoleTemplateScript.Builder
extends WithJsonObjectBuilderBase<RoleTemplateScript.Builder>
implements ObjectBuilder<RoleTemplateScript>
Builder for
RoleTemplateScript.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRoleTemplateScript.Theidfor a stored script.lang(ScriptLanguage value) Specifies the language the script is written in.Specifies the language the script is written in.API name:optionsAPI name:optionsSpecifies any named parameters that are passed into the script as variables.Specifies any named parameters that are passed into the script as variables.protected RoleTemplateScript.Builderself()source(RoleTemplateInlineQuery value) API name:sourceAPI name:sourceMethods 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
API name:source -
source
public final RoleTemplateScript.Builder source(Function<RoleTemplateInlineQuery.Builder, ObjectBuilder<RoleTemplateInlineQuery>> fn) 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<RoleTemplateScript.Builder>
-
build
Builds aRoleTemplateScript.- Specified by:
buildin interfaceObjectBuilder<RoleTemplateScript>- Throws:
NullPointerException- if some of the required fields are null.
-