Class StopJobRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.rollup.StopJobRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<StopJobRequest>
- Enclosing class:
- StopJobRequest
public static class StopJobRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<StopJobRequest>
Builder for
StopJobRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description StopJobRequest
build()
Builds aStopJobRequest
.StopJobRequest.Builder
id(java.lang.String value)
Required - The ID of the job to stopStopJobRequest.Builder
timeout(Time value)
Block for (at maximum) the specified duration while waiting for the job to stop.StopJobRequest.Builder
timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Block for (at maximum) the specified duration while waiting for the job to stop.StopJobRequest.Builder
waitForCompletion(java.lang.Boolean value)
True if the API should block until the job has fully stopped, false if should be executed async.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
-
id
Required - The ID of the job to stopAPI name:
id
-
timeout
Block for (at maximum) the specified duration while waiting for the job to stop. Defaults to 30s.API name:
timeout
-
timeout
public final StopJobRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Block for (at maximum) the specified duration while waiting for the job to stop. Defaults to 30s.API name:
timeout
-
waitForCompletion
True if the API should block until the job has fully stopped, false if should be executed async. Defaults to false.API name:
wait_for_completion
-
build
Builds aStopJobRequest
.- Specified by:
build
in interfaceObjectBuilder<StopJobRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-