Class CommandAllocatePrimaryAction
java.lang.Object
org.opensearch.client.opensearch.cluster.reroute.CommandAllocatePrimaryAction
- All Implemented Interfaces:
ToJsonp
public final class CommandAllocatePrimaryAction extends java.lang.Object implements ToJsonp
-
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 for CommandAllocatePrimaryAction -
Constructor Summary
Constructors Modifier Constructor Description protectedCommandAllocatePrimaryAction(CommandAllocatePrimaryAction.Builder builder) -
Method Summary
Modifier and Type Method Description java.lang.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:nodeprotected static voidsetupCommandAllocatePrimaryActionDeserializer(DelegatingDeserializer<CommandAllocatePrimaryAction.Builder> op)java.lang.Numbershard()API name:shardvoidtoJsonp(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidtoJsonpInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
Field Details
-
DESERIALIZER
Json deserializer for CommandAllocatePrimaryAction
-
-
Constructor Details
-
Method Details
-
index
public java.lang.String index()API name:index -
shard
public java.lang.Number shard()API name:shard -
node
public java.lang.String node()API name:node -
acceptDataLoss
public java.lang.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 true API name:accept_data_loss -
toJsonp
Serialize this object to JSON. -
toJsonpInternal
-
setupCommandAllocatePrimaryActionDeserializer
protected static void setupCommandAllocatePrimaryActionDeserializer(DelegatingDeserializer<CommandAllocatePrimaryAction.Builder> op)
-