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.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.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.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
-
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 -
build
Builds aCloseJobRequest.- Specified by:
buildin interfaceObjectBuilder<CloseJobRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-