Class CloseJobRequest.Builder

All Implemented Interfaces:
Enclosing class:

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

    • Builder

      public Builder()
  • Method Details

    • allowNoJobs

      @Deprecated public final CloseJobRequest.Builder allowNoJobs​(@Nullable java.lang.Boolean value)
      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 CloseJobRequest.Builder allowNoMatch​(@Nullable java.lang.Boolean value)
      Refer to the description for the allow_no_match query parameter.

      API name: allow_no_match

    • force

      public final CloseJobRequest.Builder force​(@Nullable java.lang.Boolean value)
      Refer to the descriptiion for the force query parameter.

      API name: force

    • jobId

      public final CloseJobRequest.Builder jobId​(java.lang.String value)
      Required - Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. You can close multiple anomaly detection jobs in a single API request by using a group name, a comma-separated list of jobs, or a wildcard expression. You can close all jobs by using _all or by specifying * as the job identifier.

      API name: job_id

    • timeout

      public final CloseJobRequest.Builder timeout​(@Nullable Time value)
      Refer to the description for the timeout query parameter.

      API name: timeout

    • timeout

      public final CloseJobRequest.Builder timeout​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      Refer to the description for the timeout query parameter.

      API name: timeout

    • build

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