Class CommandMoveAction.Builder
java.lang.Object
org.opensearch.client.opensearch.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CommandMoveActionbuild()Builds aCommandMoveAction.CommandMoveAction.BuilderfromNode(java.lang.String value)The node to move the shard from API name:from_nodeCommandMoveAction.Builderindex(java.lang.String value)API name:indexCommandMoveAction.Buildershard(java.lang.Number value)API name:shardCommandMoveAction.BuildertoNode(java.lang.String value)The node to move the shard to API name:to_node
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
API name:index -
shard
API name:shard -
fromNode
The node to move the shard from API name:from_node -
toNode
The node to move the shard to API name:to_node -
build
Builds aCommandMoveAction.- Specified by:
buildin interfaceObjectBuilder<CommandMoveAction>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-