Class UpdateInferenceRequest
- All Implemented Interfaces:
- JsonpSerializable
 Modify task_settings, secrets (within
 service_settings), or num_allocations for an
 inference endpoint, depending on the specific endpoint service and
 task_type.
 
IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<UpdateInferenceRequest>static final Endpoint<UpdateInferenceRequest,UpdateInferenceResponse, ErrorResponse> Endpoint "inference.update".
- 
Method SummaryModifier and TypeMethodDescriptionprotected static JsonpDeserializer<UpdateInferenceRequest>final InferenceEndpointRequired - Request body.final StringRequired - The unique identifier of the inference endpoint.static UpdateInferenceRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.final TaskTypetaskType()The type of inference task that the model performs.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZER
- 
_ENDPOINTpublic static final Endpoint<UpdateInferenceRequest,UpdateInferenceResponse, _ENDPOINTErrorResponse> Endpoint "inference.update".
 
- 
- 
Method Details- 
ofpublic static UpdateInferenceRequest of(Function<UpdateInferenceRequest.Builder, ObjectBuilder<UpdateInferenceRequest>> fn) 
- 
inferenceIdRequired - The unique identifier of the inference endpoint.API name: inference_id
- 
taskTypeThe type of inference task that the model performs.API name: task_type
- 
inferenceConfigRequired - Request body.
- 
serializeSerialize this value to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
createUpdateInferenceRequestDeserializerprotected static JsonpDeserializer<UpdateInferenceRequest> createUpdateInferenceRequestDeserializer()
 
-