Class StopTrainedModelDeploymentRequest.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.StopTrainedModelDeploymentRequest.Builder
All Implemented Interfaces:
ObjectBuilder<StopTrainedModelDeploymentRequest>
Enclosing class:
StopTrainedModelDeploymentRequest

public static class StopTrainedModelDeploymentRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<StopTrainedModelDeploymentRequest>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • allowNoMatch

      public final StopTrainedModelDeploymentRequest.Builder allowNoMatch​(@Nullable java.lang.Boolean value)
      Specifies what to do when the request: contains wildcard expressions and there are no deployments that match; contains the _all string 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. If false, the request returns a 404 status code when there are no matches or only partial matches.

      API name: allow_no_match

    • force

      public final StopTrainedModelDeploymentRequest.Builder force​(@Nullable java.lang.Boolean value)
      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

    • modelId

      public final StopTrainedModelDeploymentRequest.Builder modelId​(java.lang.String value)
      Required - The unique identifier of the trained model.

      API name: model_id

    • build

      Specified by:
      build in interface ObjectBuilder<StopTrainedModelDeploymentRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.