Class CommandMoveAction.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cluster.reroute.CommandMoveAction.Builder
- All Implemented Interfaces:
CopyableBuilder<CommandMoveAction.Builder,,CommandMoveAction> MutableBuilder<CommandMoveAction.Builder,,CommandMoveAction> ObjectBuilder<CommandMoveAction>
- Enclosing class:
CommandMoveAction
public static class CommandMoveAction.Builder
extends ObjectBuilderBase
implements CopyableBuilder<CommandMoveAction.Builder,CommandMoveAction>
Builder for
CommandMoveAction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCommandMoveAction.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - The node to move the shard fromRequired - API name:indexshard(int value) Required - API name:shardRequired - The node to move the shard toMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<CommandMoveAction.Builder,CommandMoveAction> - Returns:
- a new builder instance.
-
fromNode
Required - The node to move the shard fromAPI name:
from_node -
index
Required - API name:index -
shard
Required - API name:shard -
toNode
Required - The node to move the shard toAPI name:
to_node -
build
Builds aCommandMoveAction.- Specified by:
buildin interfaceObjectBuilder<CommandMoveAction>- Throws:
NullPointerException- if some of the required fields are null.
-