Class CommandMoveAction
java.lang.Object
org.opensearch.client.opensearch.cluster.reroute.CommandMoveAction
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CommandMoveAction.Builder,CommandMoveAction>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class CommandMoveAction
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<CommandMoveAction.Builder,CommandMoveAction>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CommandMoveAction> Json deserializer forCommandMoveAction -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandMoveAction.Builderbuilder()booleanfinal StringfromNode()Required - The node to move the shard frominthashCode()final Stringindex()Required - API name:indexstatic CommandMoveActionvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal intshard()Required - API name:shardCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final StringtoNode()Required - The node to move the shard toMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forCommandMoveAction
-
-
Method Details
-
of
public static CommandMoveAction of(Function<CommandMoveAction.Builder, ObjectBuilder<CommandMoveAction>> fn) -
fromNode
Required - The node to move the shard fromAPI name:
from_node -
index
Required - API name:index -
shard
public final int shard()Required - API name:shard -
toNode
Required - The node to move the shard toAPI name:
to_node -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CommandMoveAction.Builder,CommandMoveAction> - Returns:
- a new builder instance.
-
builder
-
setupCommandMoveActionDeserializer
protected static void setupCommandMoveActionDeserializer(ObjectDeserializer<CommandMoveAction.Builder> op) -
hashCode
public int hashCode() -
equals
-