Class StopWatcherRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<StopWatcherRequest.Builder>
co.elastic.clients.elasticsearch.watcher.StopWatcherRequest.Builder
- All Implemented Interfaces:
WithJson<StopWatcherRequest.Builder>
,ObjectBuilder<StopWatcherRequest>
- Enclosing class:
- StopWatcherRequest
public static class StopWatcherRequest.Builder
extends RequestBase.AbstractBuilder<StopWatcherRequest.Builder>
implements ObjectBuilder<StopWatcherRequest>
Builder for
StopWatcherRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aStopWatcherRequest
.masterTimeout
(Time value) The period to wait for the master node.The period to wait for the master node.protected StopWatcherRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
masterTimeout
The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1
.API name:
master_timeout
-
masterTimeout
public final StopWatcherRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1
.API name:
master_timeout
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<StopWatcherRequest.Builder>
-
build
Builds aStopWatcherRequest
.- Specified by:
build
in interfaceObjectBuilder<StopWatcherRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-