Class StopTrainedModelDeploymentRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.StopTrainedModelDeploymentRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class StopTrainedModelDeploymentRequest
extends RequestBase
implements JsonpSerializable
Stop a trained model deployment.
- 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<StopTrainedModelDeploymentRequest>Json deserializer forStopTrainedModelDeploymentRequeststatic final Endpoint<StopTrainedModelDeploymentRequest,StopTrainedModelDeploymentResponse, ErrorResponse> Endpoint "ml.stop_trained_model_deployment". -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanSpecifies what to do when the request: contains wildcard expressions and there are no deployments that match; contains the_allstring or no identifiers and there are no matches; or contains wildcard expressions and there are only partial matches.final Booleanforce()Forcefully stops the deployment, even if it is used by ingest pipelines.final Stringid()If provided, must be the same identifier as in the path.final StringmodelId()Required - The unique identifier of the trained model.of(Function<StopTrainedModelDeploymentRequest.Builder, ObjectBuilder<StopTrainedModelDeploymentRequest>> fn) rebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupStopTrainedModelDeploymentRequestDeserializer(ObjectDeserializer<StopTrainedModelDeploymentRequest.Builder> op) Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forStopTrainedModelDeploymentRequest -
_ENDPOINT
public static final Endpoint<StopTrainedModelDeploymentRequest,StopTrainedModelDeploymentResponse, _ENDPOINTErrorResponse> Endpoint "ml.stop_trained_model_deployment".
-
-
Method Details
-
of
-
allowNoMatch
Specifies what to do when the request: contains wildcard expressions and there are no deployments that match; contains the_allstring or no identifiers and there are no matches; or contains wildcard expressions and there are only partial matches. By default, it returns an empty array when there are no matches and the subset of results when there are partial matches. Iffalse, the request returns a 404 status code when there are no matches or only partial matches.API name:
allow_no_match -
force
Forcefully stops the deployment, even if it is used by ingest pipelines. You can't use these pipelines until you restart the model deployment.API name:
force -
id
If provided, must be the same identifier as in the path.API name:
id -
modelId
Required - The unique identifier of the trained model.API name:
model_id -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
rebuild
- Returns:
- New
StopTrainedModelDeploymentRequest.Builderinitialized with field values of this instance
-
setupStopTrainedModelDeploymentRequestDeserializer
protected static void setupStopTrainedModelDeploymentRequestDeserializer(ObjectDeserializer<StopTrainedModelDeploymentRequest.Builder> op)
-