Class CommandMoveAction.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.reroute.CommandMoveAction.Builder
-
- All Implemented Interfaces:
ObjectBuilder<CommandMoveAction>
- Enclosing class:
- CommandMoveAction
public static class CommandMoveAction.Builder extends ObjectBuilderBase implements ObjectBuilder<CommandMoveAction>
Builder forCommandMoveAction.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods 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 to-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
index
public final CommandMoveAction.Builder index(java.lang.String value)
Required - API name:index
-
shard
public final CommandMoveAction.Builder shard(int value)
Required - API name:shard
-
fromNode
public final CommandMoveAction.Builder fromNode(java.lang.String value)
Required - The node to move the shard fromAPI name:
from_node
-
toNode
public final CommandMoveAction.Builder toNode(java.lang.String value)
Required - The node to move the shard toAPI name:
to_node
-
build
public CommandMoveAction build()
Builds aCommandMoveAction.- Specified by:
buildin interfaceObjectBuilder<CommandMoveAction>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-