Class CommandAllocatePrimaryAction
java.lang.Object
co.elastic.clients.elasticsearch.cluster.reroute.CommandAllocatePrimaryAction
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class CommandAllocatePrimaryAction
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<CommandAllocatePrimaryAction>
Json deserializer forCommandAllocatePrimaryAction
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Required - If a node which has a copy of the data rejoins the cluster later on, that data will be deleted.final String
index()
Required - API name:index
final String
node()
Required - API name:node
static CommandAllocatePrimaryAction
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupCommandAllocatePrimaryActionDeserializer
(ObjectDeserializer<CommandAllocatePrimaryAction.Builder> op) final int
shard()
Required - API name:shard
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forCommandAllocatePrimaryAction
-
-
Method Details
-
of
-
index
Required - API name:index
-
shard
public final int shard()Required - API name:shard
-
node
Required - API name:node
-
acceptDataLoss
public final boolean acceptDataLoss()Required - 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupCommandAllocatePrimaryActionDeserializer
protected static void setupCommandAllocatePrimaryActionDeserializer(ObjectDeserializer<CommandAllocatePrimaryAction.Builder> op)
-