Class CommandMoveAction
java.lang.Object
co.elastic.clients.elasticsearch.cluster.reroute.CommandMoveAction
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class CommandMoveAction extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommandMoveAction.Builder
Builder forCommandMoveAction
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CommandMoveAction>
_DESERIALIZER
Json deserializer forCommandMoveAction
-
Constructor Summary
Constructors Constructor Description CommandMoveAction(CommandMoveAction.Builder builder)
CommandMoveAction(java.util.function.Function<CommandMoveAction.Builder,CommandMoveAction.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.String
fromNode()
Required - The node to move the shard fromjava.lang.String
index()
Required - API name:index
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupCommandMoveActionDeserializer(DelegatingDeserializer<CommandMoveAction.Builder> op)
int
shard()
Required - API name:shard
java.lang.String
toNode()
Required - The node to move the shard toMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCommandMoveAction
-
-
Constructor Details
-
CommandMoveAction
-
CommandMoveAction
public CommandMoveAction(java.util.function.Function<CommandMoveAction.Builder,CommandMoveAction.Builder> fn)
-
-
Method Details
-
index
public java.lang.String index()Required - API name:index
-
shard
public int shard()Required - API name:shard
-
fromNode
public java.lang.String fromNode()Required - The node to move the shard fromAPI name:
from_node
-
toNode
public java.lang.String toNode()Required - The node to move the shard toAPI name:
to_node
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupCommandMoveActionDeserializer
protected static void setupCommandMoveActionDeserializer(DelegatingDeserializer<CommandMoveAction.Builder> op)
-