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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCommandMoveAction.Required - The node to move the shard fromRequired - API name:indexprotected CommandMoveAction.Builderself()shard(int value) Required - API name:shardRequired - 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, _mapPutAll
-
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:
NullPointerException- if some of the required fields are null.
-