Class CommandMoveAction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CommandMoveAction.Builder>
co.elastic.clients.elasticsearch.cluster.reroute.CommandMoveAction.Builder
- All Implemented Interfaces:
WithJson<CommandMoveAction.Builder>,ObjectBuilder<CommandMoveAction>
- Enclosing class:
- CommandMoveAction
public static class CommandMoveAction.Builder extends WithJsonObjectBuilderBase<CommandMoveAction.Builder> 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:indexprotected CommandMoveAction.Builderself()CommandMoveAction.Buildershard(int value)Required - API name:shardCommandMoveAction.BuildertoNode(java.lang.String value)Required - The node to move the shard toMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CommandMoveAction.Builder>
-
build
Builds aCommandMoveAction.- Specified by:
buildin interfaceObjectBuilder<CommandMoveAction>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-