Class DeleteNodeRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<DeleteNodeRequest.Builder>
co.elastic.clients.elasticsearch.shutdown.DeleteNodeRequest.Builder
- All Implemented Interfaces:
WithJson<DeleteNodeRequest.Builder>
,ObjectBuilder<DeleteNodeRequest>
- Enclosing class:
- DeleteNodeRequest
public static class DeleteNodeRequest.Builder extends RequestBase.AbstractBuilder<DeleteNodeRequest.Builder> implements ObjectBuilder<DeleteNodeRequest>
Builder for
DeleteNodeRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description DeleteNodeRequest
build()
Builds aDeleteNodeRequest
.DeleteNodeRequest.Builder
masterTimeout(TimeUnit value)
Period to wait for a connection to the master node.DeleteNodeRequest.Builder
nodeId(java.lang.String value)
Required - The node id of node to be removed from the shutdown stateprotected DeleteNodeRequest.Builder
self()
DeleteNodeRequest.Builder
timeout(TimeUnit value)
Period to wait for a response.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
-
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
nodeId
Required - The node id of node to be removed from the shutdown stateAPI name:
node_id
-
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<DeleteNodeRequest.Builder>
-
build
Builds aDeleteNodeRequest
.- Specified by:
build
in interfaceObjectBuilder<DeleteNodeRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-