Class GetScriptRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<GetScriptRequest.Builder>
co.elastic.clients.elasticsearch.core.GetScriptRequest.Builder
- All Implemented Interfaces:
WithJson<GetScriptRequest.Builder>
,ObjectBuilder<GetScriptRequest>
- Enclosing class:
- GetScriptRequest
public static class GetScriptRequest.Builder
extends RequestBase.AbstractBuilder<GetScriptRequest.Builder>
implements ObjectBuilder<GetScriptRequest>
Builder for
GetScriptRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aGetScriptRequest
.final GetScriptRequest.Builder
Required - The identifier for the stored script or search template.final GetScriptRequest.Builder
masterTimeout
(Time value) The period to wait for the master node.final GetScriptRequest.Builder
The period to wait for the master node.protected GetScriptRequest.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
-
id
Required - The identifier for the stored script or search template.API name:
id
-
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. It can also be set to-1
to indicate that the request should never timeout.API name:
master_timeout
-
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. It can also be set to-1
to indicate that the request should never timeout.API name:
master_timeout
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<GetScriptRequest.Builder>
-
build
Builds aGetScriptRequest
.- Specified by:
build
in interfaceObjectBuilder<GetScriptRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-