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 Summary
Constructors -
Method Summary
Modifier 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()An inline search template.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
-
file
API name:file -
id
The 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 -
params
Key-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. -
params
Key-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. -
source
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 classRequestBase.AbstractBuilder<RenderSearchTemplateRequest.Builder>
-
build
Builds aRenderSearchTemplateRequest.- Specified by:
buildin interfaceObjectBuilder<RenderSearchTemplateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-