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 classCommandAllocatePrimaryAction.BuilderBuilder forCommandAllocatePrimaryAction. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CommandAllocatePrimaryAction>_DESERIALIZERJson deserializer forCommandAllocatePrimaryAction -
Method Summary
Modifier and Type Method Description booleanacceptDataLoss()Required - If a node which has a copy of the data rejoins the cluster later on, that data will be deleted.java.lang.Stringindex()Required - API name:indexjava.lang.Stringnode()Required - API name:nodestatic CommandAllocatePrimaryActionof(java.util.function.Function<CommandAllocatePrimaryAction.Builder,ObjectBuilder<CommandAllocatePrimaryAction>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupCommandAllocatePrimaryActionDeserializer(ObjectDeserializer<CommandAllocatePrimaryAction.Builder> op)intshard()Required - API name:shardjava.lang.StringtoString()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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupCommandAllocatePrimaryActionDeserializer
protected static void setupCommandAllocatePrimaryActionDeserializer(ObjectDeserializer<CommandAllocatePrimaryAction.Builder> op)
-