Class CommandAllocatePrimaryAction
java.lang.Object
co.elastic.clients.elasticsearch.cluster.reroute.CommandAllocatePrimaryAction
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class CommandAllocatePrimaryAction extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommandAllocatePrimaryAction.Builder
Builder forCommandAllocatePrimaryAction
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CommandAllocatePrimaryAction>
_DESERIALIZER
Json deserializer forCommandAllocatePrimaryAction
-
Method Summary
Modifier and Type Method Description boolean
acceptDataLoss()
Required - If a node which has a copy of the data rejoins the cluster later on, that data will be deleted.java.lang.String
index()
Required - API name:index
java.lang.String
node()
Required - API name:node
static CommandAllocatePrimaryAction
of(java.util.function.Function<CommandAllocatePrimaryAction.Builder,ObjectBuilder<CommandAllocatePrimaryAction>> fn)
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)
int
shard()
Required - API name:shard
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCommandAllocatePrimaryAction
-
-
Method Details
-
of
public static CommandAllocatePrimaryAction of(java.util.function.Function<CommandAllocatePrimaryAction.Builder,ObjectBuilder<CommandAllocatePrimaryAction>> fn) -
index
public final java.lang.String index()Required - API name:index
-
shard
public final int shard()Required - API name:shard
-
node
public final java.lang.String 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
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupCommandAllocatePrimaryActionDeserializer
protected static void setupCommandAllocatePrimaryActionDeserializer(ObjectDeserializer<CommandAllocatePrimaryAction.Builder> op)
-