Class CommandAllocatePrimaryAction
java.lang.Object
co.elastic.clients.elasticsearch.cluster.reroute.CommandAllocatePrimaryAction
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class CommandAllocatePrimaryAction extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandAllocatePrimaryAction.BuilderBuilder forCommandAllocatePrimaryAction. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CommandAllocatePrimaryAction>_DESERIALIZERJson deserializer forCommandAllocatePrimaryAction -
Constructor Summary
Constructors Constructor Description CommandAllocatePrimaryAction(CommandAllocatePrimaryAction.Builder builder)CommandAllocatePrimaryAction(java.util.function.Function<CommandAllocatePrimaryAction.Builder,CommandAllocatePrimaryAction.Builder> fn) -
Method Summary
Modifier and Type Method Description booleanacceptDataLoss()If a node which has a copy of the data rejoins the cluster later on, that data will be deleted.java.lang.Stringindex()API name:indexjava.lang.Stringnode()API name:nodevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupCommandAllocatePrimaryActionDeserializer(DelegatingDeserializer<CommandAllocatePrimaryAction.Builder> op)intshard()API name:shardMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCommandAllocatePrimaryAction
-
-
Constructor Details
-
CommandAllocatePrimaryAction
-
CommandAllocatePrimaryAction
public CommandAllocatePrimaryAction(java.util.function.Function<CommandAllocatePrimaryAction.Builder,CommandAllocatePrimaryAction.Builder> fn)
-
-
Method Details
-
index
public java.lang.String index()API name:index -
shard
public int shard()API name:shard -
node
public java.lang.String node()API name:node -
acceptDataLoss
public boolean acceptDataLoss()If a node which has a copy of the data rejoins the cluster later on, that data will be deleted. To ensure that these implications are well-understood, this command requires the flag accept_data_loss to be explicitly set to trueAPI name:
accept_data_loss -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupCommandAllocatePrimaryActionDeserializer
protected static void setupCommandAllocatePrimaryActionDeserializer(DelegatingDeserializer<CommandAllocatePrimaryAction.Builder> op)
-