Class CloseJobRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.CloseJobRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<CloseJobRequest>
- Enclosing class:
- CloseJobRequest
public static class CloseJobRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<CloseJobRequest>
Builder for
CloseJobRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description CloseJobRequest.Builder
allowNoJobs(java.lang.Boolean value)
Deprecated.CloseJobRequest.Builder
allowNoMatch(java.lang.Boolean value)
Refer to the description for theallow_no_match
query parameter.CloseJobRequest
build()
Builds aCloseJobRequest
.CloseJobRequest.Builder
force(java.lang.Boolean value)
Refer to the descriptiion for theforce
query parameter.CloseJobRequest.Builder
jobId(java.lang.String value)
Required - Identifier for the anomaly detection job.CloseJobRequest.Builder
timeout(Time value)
Refer to the description for thetimeout
query parameter.CloseJobRequest.Builder
timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Refer to the description for thetimeout
query parameter.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowNoJobs
Deprecated.7.10.0 Useallow_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
Refer to the description for theallow_no_match
query parameter.API name:
allow_no_match
-
force
Refer to the descriptiion for theforce
query parameter.API name:
force
-
jobId
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
Refer to the description for thetimeout
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 thetimeout
query parameter.API name:
timeout
-
build
Builds aCloseJobRequest
.- Specified by:
build
in interfaceObjectBuilder<CloseJobRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
allow_no_match
instead.