Class TemplatesRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch.cat.CatRequestBase.AbstractBuilder<TemplatesRequest.Builder>
co.elastic.clients.elasticsearch.cat.TemplatesRequest.Builder
- All Implemented Interfaces:
WithJson<TemplatesRequest.Builder>
,ObjectBuilder<TemplatesRequest>
- Enclosing class:
- TemplatesRequest
public static class TemplatesRequest.Builder
extends CatRequestBase.AbstractBuilder<TemplatesRequest.Builder>
implements ObjectBuilder<TemplatesRequest>
Builder for
TemplatesRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aTemplatesRequest
.final TemplatesRequest.Builder
Iftrue
, the request computes the list of selected nodes from the local cluster state.final TemplatesRequest.Builder
masterTimeout
(Time value) Period to wait for a connection to the master node.final TemplatesRequest.Builder
Period to wait for a connection to the master node.final TemplatesRequest.Builder
The name of the template to return.protected TemplatesRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
local
Iftrue
, the request computes the list of selected nodes from the local cluster state. Iffalse
the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating node will send requests for further information to each selected node.API name:
local
-
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout
-
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout
-
name
The name of the template to return. Accepts wildcard expressions. If omitted, all templates are returned.API name:
name
-
self
- Specified by:
self
in classCatRequestBase.AbstractBuilder<TemplatesRequest.Builder>
-
build
Builds aTemplatesRequest
.- Specified by:
build
in interfaceObjectBuilder<TemplatesRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-