Class CommandMoveAction
java.lang.Object
co.elastic.clients.elasticsearch.cluster.reroute.CommandMoveAction
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class CommandMoveAction extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
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 -
Method Summary
Modifier and Type Method Description java.lang.StringfromNode()Required - The node to move the shard fromjava.lang.Stringindex()Required - API name:indexstatic CommandMoveActionof(java.util.function.Function<CommandMoveAction.Builder,ObjectBuilder<CommandMoveAction>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupCommandMoveActionDeserializer(ObjectDeserializer<CommandMoveAction.Builder> op)intshard()Required - API name:shardjava.lang.StringtoNode()Required - The node to move the shard tojava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCommandMoveAction
-
-
Method Details
-
of
public static CommandMoveAction of(java.util.function.Function<CommandMoveAction.Builder,ObjectBuilder<CommandMoveAction>> fn) -
index
public final java.lang.String index()Required - API name:index -
shard
public final int shard()Required - API name:shard -
fromNode
public final java.lang.String fromNode()Required - The node to move the shard fromAPI name:
from_node -
toNode
public final 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
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupCommandMoveActionDeserializer
protected static void setupCommandMoveActionDeserializer(ObjectDeserializer<CommandMoveAction.Builder> op)
-