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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aCommandMoveAction
.Required - The node to move the shard fromRequired - API name:index
protected CommandMoveAction.Builder
self()
shard
(int value) Required - API name:shard
Required - The node to move the shard toMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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:
self
in classWithJsonObjectBuilderBase<CommandMoveAction.Builder>
-
build
Builds aCommandMoveAction
.- Specified by:
build
in interfaceObjectBuilder<CommandMoveAction>
- Throws:
NullPointerException
- if some of the required fields are null.
-