Class PutScriptRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.PutScriptRequest
- All Implemented Interfaces:
JsonpSerializable
Creates or updates 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 JsonpDeserializer<PutScriptRequest>Json deserializer forPutScriptRequeststatic final Endpoint<PutScriptRequest,PutScriptResponse, ErrorResponse> Endpoint "put_script". -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringcontext()Context in which the script or search template should run.final Stringid()Required - Identifier for the stored script or search template.final TimePeriod to wait for a connection to the master node.static PutScriptRequestfinal StoredScriptscript()Required - Contains the script or search template, its parameters, and its language.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Timetimeout()Period to wait for a response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutScriptRequest -
_ENDPOINT
Endpoint "put_script".
-
-
Method Details
-
of
public static PutScriptRequest of(Function<PutScriptRequest.Builder, ObjectBuilder<PutScriptRequest>> fn) -
context
Context in which the script or search template should run. To prevent errors, the API immediately compiles the script or template in this context.API name:
context -
id
Required - Identifier for the stored script or search template. Must be unique within the cluster.API name:
id -
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 -
script
Required - Contains the script or search template, its parameters, and its language.API name:
script -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPutScriptRequestDeserializer
protected static void setupPutScriptRequestDeserializer(ObjectDeserializer<PutScriptRequest.Builder> op)
-