Class ExistsTemplateRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ExistsTemplateRequest.Builder>
co.elastic.clients.elasticsearch.indices.ExistsTemplateRequest.Builder
- All Implemented Interfaces:
WithJson<ExistsTemplateRequest.Builder>
,ObjectBuilder<ExistsTemplateRequest>
- Enclosing class:
- ExistsTemplateRequest
public static class ExistsTemplateRequest.Builder
extends RequestBase.AbstractBuilder<ExistsTemplateRequest.Builder>
implements ObjectBuilder<ExistsTemplateRequest>
Builder for
ExistsTemplateRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aExistsTemplateRequest
.flatSettings
(Boolean value) Indicates whether to use a flat format for the response.Indicates whether to get information from the local node only.masterTimeout
(Time value) The period to wait for the master node.The period to wait for the master node.Required - A comma-separated list of index template names used to limit the request.Required - A comma-separated list of index template names used to limit the request.protected ExistsTemplateRequest.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
-
flatSettings
Indicates whether to use a flat format for the response.API name:
flat_settings
-
local
Indicates whether to get information from the local node only.API name:
local
-
masterTimeout
The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1
.API name:
master_timeout
-
masterTimeout
public final ExistsTemplateRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1
.API name:
master_timeout
-
name
Required - A comma-separated list of index template names used to limit the request. Wildcard (*
) expressions are supported.API name:
name
Adds all elements of
list
toname
. -
name
Required - A comma-separated list of index template names used to limit the request. Wildcard (*
) expressions are supported.API name:
name
Adds one or more values to
name
. -
self
- Specified by:
self
in classRequestBase.AbstractBuilder<ExistsTemplateRequest.Builder>
-
build
Builds aExistsTemplateRequest
.- Specified by:
build
in interfaceObjectBuilder<ExistsTemplateRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-