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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CommandAllocatePrimaryAction>Json deserializer forCommandAllocatePrimaryAction
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanRequired - If a node which has a copy of the data rejoins the cluster later on, that data will be deleted.final Stringindex()Required - API name:indexfinal Stringnode()Required - API name:nodestatic CommandAllocatePrimaryActionvoidserialize(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) final intshard()Required - API name:shardtoString()
- 
Field Details- 
_DESERIALIZERJson deserializer forCommandAllocatePrimaryAction
 
- 
- 
Method Details- 
of
- 
indexRequired - API name:index
- 
shardpublic final int shard()Required - API name:shard
- 
nodeRequired - API name:node
- 
acceptDataLosspublic 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
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
toString
- 
setupCommandAllocatePrimaryActionDeserializerprotected static void setupCommandAllocatePrimaryActionDeserializer(ObjectDeserializer<CommandAllocatePrimaryAction.Builder> op) 
 
-