Class GetTrainedModelsStatsRequest.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • allowNoMatch

      public final GetTrainedModelsStatsRequest.Builder allowNoMatch​(@Nullable java.lang.Boolean value)
      Specifies what to do when the request:
      • Contains wildcard expressions and there are no models that match.
      • Contains the _all string or no identifiers and there are no matches.
      • Contains wildcard expressions and there are only partial matches.

      If true, it returns an empty array when there are no matches and the subset of results when there are partial matches.

      API name: allow_no_match

    • from

      public final GetTrainedModelsStatsRequest.Builder from​(@Nullable java.lang.Integer value)
      Skips the specified number of models.

      API name: from

    • modelId

      public final GetTrainedModelsStatsRequest.Builder modelId​(@Nullable java.lang.String value)
      The unique identifier of the trained model or a model alias.

      API name: model_id

    • size

      public final GetTrainedModelsStatsRequest.Builder size​(@Nullable java.lang.Integer value)
      Specifies the maximum number of models to obtain.

      API name: size

    • build

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