Class CloseJobRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CloseJobRequest.Builder>
co.elastic.clients.elasticsearch.ml.CloseJobRequest.Builder
- All Implemented Interfaces:
WithJson<CloseJobRequest.Builder>,ObjectBuilder<CloseJobRequest>
- Enclosing class:
- CloseJobRequest
public static class CloseJobRequest.Builder extends WithJsonObjectBuilderBase<CloseJobRequest.Builder> implements ObjectBuilder<CloseJobRequest>
Builder for
CloseJobRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CloseJobRequest.BuilderallowNoJobs(java.lang.Boolean value)Deprecated.CloseJobRequest.BuilderallowNoMatch(java.lang.Boolean value)Refer to the description for theallow_no_matchquery parameter.CloseJobRequestbuild()Builds aCloseJobRequest.CloseJobRequest.Builderforce(java.lang.Boolean value)Refer to the descriptiion for theforcequery parameter.CloseJobRequest.BuilderjobId(java.lang.String value)Required - Identifier for the anomaly detection job.protected CloseJobRequest.Builderself()CloseJobRequest.Buildertimeout(Time value)Refer to the description for thetimeoutquery parameter.CloseJobRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Refer to the description for thetimeoutquery parameter.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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_matchinstead.Whether to ignore if a wildcard expression matches no jobs. (This includes_allstring or when no jobs have been specified)API name:
allow_no_jobs -
allowNoMatch
Refer to the description for theallow_no_matchquery parameter.API name:
allow_no_match -
force
Refer to the descriptiion for theforcequery 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_allor by specifying*as the job identifier.API name:
job_id -
timeout
Refer to the description for thetimeoutquery parameter.API name:
timeout -
timeout
public final CloseJobRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Refer to the description for thetimeoutquery parameter.API name:
timeout -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CloseJobRequest.Builder>
-
build
Builds aCloseJobRequest.- Specified by:
buildin interfaceObjectBuilder<CloseJobRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
allow_no_matchinstead.