Class CommandMoveAction
- java.lang.Object
-
- org.opensearch.client.opensearch.cluster.reroute.CommandMoveAction
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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 to
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<CommandMoveAction> _DESERIALIZER
Json deserializer forCommandMoveAction
-
-
Method Detail
-
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
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupCommandMoveActionDeserializer
protected static void setupCommandMoveActionDeserializer(ObjectDeserializer<CommandMoveAction.Builder> op)
-
-