Class GetComponentTemplateRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetComponentTemplateRequest.Builder>
co.elastic.clients.elasticsearch.cluster.GetComponentTemplateRequest.Builder
- All Implemented Interfaces:
WithJson<GetComponentTemplateRequest.Builder>
,ObjectBuilder<GetComponentTemplateRequest>
- Enclosing class:
- GetComponentTemplateRequest
public static class GetComponentTemplateRequest.Builder
extends RequestBase.AbstractBuilder<GetComponentTemplateRequest.Builder>
implements ObjectBuilder<GetComponentTemplateRequest>
Builder for
GetComponentTemplateRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetComponentTemplateRequest
.flatSettings
(Boolean value) Iftrue
, returns settings in flat format.includeDefaults
(Boolean value) Return all default configurations for the component template (default: false)Iftrue
, the request retrieves information from the local node only.masterTimeout
(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.Comma-separated list of component template names used to limit the request.protected GetComponentTemplateRequest.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
Iftrue
, returns settings in flat format.API name:
flat_settings
-
includeDefaults
Return all default configurations for the component template (default: false)API name:
include_defaults
-
local
Iftrue
, the request retrieves information from the local node only. Iffalse
, information is retrieved from the master node.API name:
local
-
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
masterTimeout
public final GetComponentTemplateRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
name
Comma-separated list of component template names used to limit the request. Wildcard (*
) expressions are supported.API name:
name
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<GetComponentTemplateRequest.Builder>
-
build
Builds aGetComponentTemplateRequest
.- Specified by:
build
in interfaceObjectBuilder<GetComponentTemplateRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-