Class GetScriptRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.GetScriptRequest
Get a script or search template. Retrieves a stored script or search
template.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<GetScriptRequest,
GetScriptResponse, ErrorResponse> Endpoint "get_script
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
id()
Required - The identifier for the stored script or search template.final Time
The period to wait for the master node.static GetScriptRequest
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "get_script
".
-
-
Method Details
-
of
public static GetScriptRequest of(Function<GetScriptRequest.Builder, ObjectBuilder<GetScriptRequest>> fn) -
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
-