Class GetTrainedModelsStatsRequest

All Implemented Interfaces:

public class GetTrainedModelsStatsRequest
extends java.lang.Object
implements Validatable
  • Field Details

  • Constructor Details

    • GetTrainedModelsStatsRequest

      public GetTrainedModelsStatsRequest​(java.lang.String... ids)
  • Method Details

    • getAllTrainedModelStatsRequest

      public static GetTrainedModelsStatsRequest getAllTrainedModelStatsRequest()
      Helper method to create a request that will get ALL TrainedModelStats
      new GetTrainedModelsStatsRequest object for the id "_all"
    • getIds

      public java.util.List<java.lang.String> getIds()
    • getAllowNoMatch

      public java.lang.Boolean getAllowNoMatch()
    • setAllowNoMatch

      public GetTrainedModelsStatsRequest setAllowNoMatch​(boolean allowNoMatch)
      Whether to ignore if a wildcard expression matches no trained models.
      allowNoMatch - If this is false, then an error is returned when a wildcard (or _all) does not match any trained models
    • getPageParams

      public PageParams getPageParams()
    • setPageParams

      public GetTrainedModelsStatsRequest setPageParams​(@Nullable PageParams pageParams)
    • validate

      public java.util.Optional<ValidationException> validate()
      Description copied from interface: Validatable
      Perform validation. This method does not have to be overridden in the event that no validation needs to be done, or the validation was done during object construction time. A ValidationException that is not null is assumed to contain validation errors and will be thrown.
      Specified by:
      validate in interface Validatable
      An Optional ValidationException that contains a list of validation errors.
    • equals

      public boolean equals​(java.lang.Object o)
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      hashCode in class java.lang.Object