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.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.protected CloseJobRequest.Builder
self()
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.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
-
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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<CloseJobRequest.Builder>
-
build
Builds aCloseJobRequest
.- Specified by:
build
in interfaceObjectBuilder<CloseJobRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-