Class MlJobsRequest.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • allowNoJobs

      @Deprecated public final MlJobsRequest.Builder allowNoJobs​(@Nullable java.lang.Boolean value)
      Deprecated.
      7.10.0 Use allow_no_match instead.
      Whether to ignore if a wildcard expression matches no jobs. (This includes _all string or when no jobs have been specified)

      API name: allow_no_jobs

    • allowNoMatch

      public final MlJobsRequest.Builder allowNoMatch​(@Nullable java.lang.Boolean value)
      Specifies what to do when the request:
      • Contains wildcard expressions and there are no jobs 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, the API returns an empty jobs array when there are no matches and the subset of results when there are partial matches. If false, the API returns a 404 status code when there are no matches or only partial matches.

      API name: allow_no_match

    • bytes

      public final MlJobsRequest.Builder bytes​(@Nullable Bytes value)
      The unit used to display byte values.

      API name: bytes

    • format

      public final MlJobsRequest.Builder format​(@Nullable java.lang.String value)
      Short version of the HTTP accept header. Valid values include JSON, YAML, for example.

      API name: format

    • h

      public final MlJobsRequest.Builder h​(java.util.List<CatAnomalyDetectorColumn> list)
      Comma-separated list of column names to display.

      API name: h

      Adds all elements of list to h.

    • h

      Comma-separated list of column names to display.

      API name: h

      Adds one or more values to h.

    • help

      public final MlJobsRequest.Builder help​(@Nullable java.lang.Boolean value)
      If true, the response includes help information.

      API name: help

    • jobId

      public final MlJobsRequest.Builder jobId​(@Nullable java.lang.String value)
      Identifier for the anomaly detection job.

      API name: job_id

    • s

      public final MlJobsRequest.Builder s​(java.util.List<CatAnomalyDetectorColumn> list)
      Comma-separated list of column names or column aliases used to sort the response.

      API name: s

      Adds all elements of list to s.

    • s

      Comma-separated list of column names or column aliases used to sort the response.

      API name: s

      Adds one or more values to s.

    • time

      public final MlJobsRequest.Builder time​(@Nullable TimeUnit value)
      The unit used to display time values.

      API name: time

    • v

      public final MlJobsRequest.Builder v​(@Nullable java.lang.Boolean value)
      If true, the response includes column headings.

      API name: v

    • build

      public MlJobsRequest build()
      Builds a MlJobsRequest.
      Specified by:
      build in interface ObjectBuilder<MlJobsRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.