Class DeleteJobRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<DeleteJobRequest.Builder>
co.elastic.clients.elasticsearch.ml.DeleteJobRequest.Builder
- All Implemented Interfaces:
WithJson<DeleteJobRequest.Builder>
,ObjectBuilder<DeleteJobRequest>
- Enclosing class:
- DeleteJobRequest
public static class DeleteJobRequest.Builder extends RequestBase.AbstractBuilder<DeleteJobRequest.Builder> implements ObjectBuilder<DeleteJobRequest>
Builder for
DeleteJobRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DeleteJobRequest
build()
Builds aDeleteJobRequest
.DeleteJobRequest.Builder
force(java.lang.Boolean value)
Use to forcefully delete an opened job; this method is quicker than closing and deleting the job.DeleteJobRequest.Builder
jobId(java.lang.String value)
Required - Identifier for the anomaly detection job.protected DeleteJobRequest.Builder
self()
DeleteJobRequest.Builder
waitForCompletion(java.lang.Boolean value)
Specifies whether the request should return immediately or wait until the job deletion completes.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
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
-
force
Use to forcefully delete an opened job; this method is quicker than closing and deleting the job.API name:
force
-
jobId
Required - Identifier for the anomaly detection job.API name:
job_id
-
waitForCompletion
Specifies whether the request should return immediately or wait until the job deletion completes.API name:
wait_for_completion
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<DeleteJobRequest.Builder>
-
build
Builds aDeleteJobRequest
.- Specified by:
build
in interfaceObjectBuilder<DeleteJobRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-