Class CustomRequestParams
java.lang.Object
co.elastic.clients.elasticsearch.inference.CustomRequestParams
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CustomRequestParams>
Json deserializer forCustomRequestParams
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
content()
Required - The body structure of the request.static CustomRequestParams
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forCustomRequestParams
-
-
Method Details
-
of
public static CustomRequestParams of(Function<CustomRequestParams.Builder, ObjectBuilder<CustomRequestParams>> fn) -
content
Required - The body structure of the request. It requires passing in the string-escaped result of the JSON format HTTP request body. For example:"request": "{\"input\":${input}}"
info The content string needs to be a single line except when using the Kibana console.
API name:
content
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupCustomRequestParamsDeserializer
protected static void setupCustomRequestParamsDeserializer(ObjectDeserializer<CustomRequestParams.Builder> op)
-