Class CommandMoveAction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cluster.reroute.CommandMoveAction.Builder
- All Implemented Interfaces:
ObjectBuilder<CommandMoveAction>
- Enclosing class:
- CommandMoveAction
public static class CommandMoveAction.Builder extends ObjectBuilderBase implements ObjectBuilder<CommandMoveAction>
Builder for
CommandMoveAction
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description CommandMoveAction
build()
Builds aCommandMoveAction
.CommandMoveAction.Builder
fromNode(java.lang.String value)
Required - The node to move the shard fromCommandMoveAction.Builder
index(java.lang.String value)
Required - API name:index
CommandMoveAction.Builder
shard(int value)
Required - API name:shard
CommandMoveAction.Builder
toNode(java.lang.String value)
Required - The node to move the shard toMethods 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
-
index
Required - API name:index
-
shard
Required - API name:shard
-
fromNode
Required - The node to move the shard fromAPI name:
from_node
-
toNode
Required - The node to move the shard toAPI name:
to_node
-
build
Builds aCommandMoveAction
.- Specified by:
build
in interfaceObjectBuilder<CommandMoveAction>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-