Class GetJobsRequest.Builder

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

public static class GetJobsRequest.Builder
extends java.lang.Object
implements ObjectBuilder<GetJobsRequest>
Builder for GetJobsRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • jobId

      public GetJobsRequest.Builder jobId​(@Nullable java.util.List<java.lang.String> value)
      The ID of the jobs to fetch

      API name: job_id

    • jobId

      public GetJobsRequest.Builder jobId​(java.lang.String... value)
      The ID of the jobs to fetch

      API name: job_id

    • addJobId

      public GetJobsRequest.Builder addJobId​(java.lang.String value)
      Add a value to jobId(List), creating the list if needed.
    • allowNoMatch

      public GetJobsRequest.Builder allowNoMatch​(@Nullable java.lang.Boolean value)
      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_match

    • allowNoJobs

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

    • excludeGenerated

      public GetJobsRequest.Builder excludeGenerated​(@Nullable java.lang.Boolean value)
      Omits fields that are illegal to set on job PUT

      API name: exclude_generated

    • build

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