Class CommandMoveAction.Builder
java.lang.Object
co.elastic.clients.elasticsearch.cluster.reroute.CommandMoveAction.Builder
- All Implemented Interfaces:
ObjectBuilder<CommandMoveAction>
- Enclosing class:
- CommandMoveAction
public static class CommandMoveAction.Builder extends java.lang.Object implements ObjectBuilder<CommandMoveAction>
Builder for
CommandMoveAction.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CommandMoveActionbuild()Builds aCommandMoveAction.CommandMoveAction.BuilderfromNode(java.lang.String value)Required - The node to move the shard fromCommandMoveAction.Builderindex(java.lang.String value)Required - API name:indexCommandMoveAction.Buildershard(int value)Required - API name:shardCommandMoveAction.BuildertoNode(java.lang.String value)Required - The node to move the shard toMethods 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:
buildin interfaceObjectBuilder<CommandMoveAction>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-