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 classCommandMoveAction.BuilderBuilder forCommandMoveAction. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CommandMoveAction>_DESERIALIZERJson 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.StringfromNode()Required - The node to move the shard fromjava.lang.Stringindex()Required - API name:indexvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupCommandMoveActionDeserializer(DelegatingDeserializer<CommandMoveAction.Builder> op)intshard()Required - API name:shardjava.lang.StringtoNode()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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupCommandMoveActionDeserializer
protected static void setupCommandMoveActionDeserializer(DelegatingDeserializer<CommandMoveAction.Builder> op)
-