Class RoleTemplateInlineScript.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.ScriptBase.AbstractBuilder<RoleTemplateInlineScript.Builder>
co.elastic.clients.elasticsearch.security.RoleTemplateInlineScript.Builder
- All Implemented Interfaces:
WithJson<RoleTemplateInlineScript.Builder>,ObjectBuilder<RoleTemplateInlineScript>
- Enclosing class:
- RoleTemplateInlineScript
public static class RoleTemplateInlineScript.Builder extends ScriptBase.AbstractBuilder<RoleTemplateInlineScript.Builder> implements ObjectBuilder<RoleTemplateInlineScript>
Builder for
RoleTemplateInlineScript.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RoleTemplateInlineScriptbuild()Builds aRoleTemplateInlineScript.RoleTemplateInlineScript.Builderlang(ScriptLanguage value)API name:langRoleTemplateInlineScript.Builderlang(java.lang.String value)API name:langRoleTemplateInlineScript.Builderoptions(java.lang.String key, java.lang.String value)API name:optionsRoleTemplateInlineScript.Builderoptions(java.util.Map<java.lang.String,java.lang.String> map)API name:optionsprotected RoleTemplateInlineScript.Builderself()RoleTemplateInlineScript.Buildersource(RoleTemplateInlineQuery value)Required - API name:sourceRoleTemplateInlineScript.Buildersource(java.util.function.Function<RoleTemplateInlineQuery.Builder,ObjectBuilder<RoleTemplateInlineQuery>> fn)Required - API name:sourceMethods inherited from class co.elastic.clients.elasticsearch._types.ScriptBase.AbstractBuilder
params, paramsMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lang
API name:lang -
lang
API name:lang -
options
public final RoleTemplateInlineScript.Builder options(java.util.Map<java.lang.String,java.lang.String> map)API name:optionsAdds all entries of
maptooptions. -
options
public final RoleTemplateInlineScript.Builder options(java.lang.String key, java.lang.String value)API name:optionsAdds an entry to
options. -
source
Required - API name:source -
source
public final RoleTemplateInlineScript.Builder source(java.util.function.Function<RoleTemplateInlineQuery.Builder,ObjectBuilder<RoleTemplateInlineQuery>> fn)Required - API name:source -
self
- Specified by:
selfin classScriptBase.AbstractBuilder<RoleTemplateInlineScript.Builder>
-
build
Builds aRoleTemplateInlineScript.- Specified by:
buildin interfaceObjectBuilder<RoleTemplateInlineScript>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-