Class RenderSearchTemplateRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<RenderSearchTemplateRequest.Builder>
co.elastic.clients.elasticsearch.core.RenderSearchTemplateRequest.Builder
- All Implemented Interfaces:
- WithJson<RenderSearchTemplateRequest.Builder>,- ObjectBuilder<RenderSearchTemplateRequest>
- Enclosing class:
- RenderSearchTemplateRequest
public static class RenderSearchTemplateRequest.Builder
extends RequestBase.AbstractBuilder<RenderSearchTemplateRequest.Builder>
implements ObjectBuilder<RenderSearchTemplateRequest>
Builder for 
RenderSearchTemplateRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aRenderSearchTemplateRequest.API name:fileThe ID of the search template to render.Key-value pairs used to replace Mustache variables in the template.Key-value pairs used to replace Mustache variables in the template.protected RenderSearchTemplateRequest.Builderself()source(ScriptSource value) An inline search template.An inline search template.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
fileAPI name:file
- 
idThe ID of the search template to render. If nosourceis specified, this or the<template-id>request path parameter is required. If you specify both this parameter and the<template-id>parameter, the API uses only<template-id>.API name: id
- 
paramsKey-value pairs used to replace Mustache variables in the template. The key is the variable name. The value is the variable value.API name: paramsAdds all entries of maptoparams.
- 
paramsKey-value pairs used to replace Mustache variables in the template. The key is the variable name. The value is the variable value.API name: paramsAdds an entry to params.
- 
sourceAn inline search template. It supports the same parameters as the search API's request body. These parameters also support Mustache variables. If noidor<templated-id>is specified, this parameter is required.API name: source
- 
sourcepublic final RenderSearchTemplateRequest.Builder source(Function<ScriptSource.Builder, ObjectBuilder<ScriptSource>> fn) An inline search template. It supports the same parameters as the search API's request body. These parameters also support Mustache variables. If noidor<templated-id>is specified, this parameter is required.API name: source
- 
self- Specified by:
- selfin class- RequestBase.AbstractBuilder<RenderSearchTemplateRequest.Builder>
 
- 
buildBuilds aRenderSearchTemplateRequest.- Specified by:
- buildin interface- ObjectBuilder<RenderSearchTemplateRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-