Class CommandAllocatePrimaryAction
java.lang.Object
org.opensearch.client.opensearch.cluster.reroute.CommandAllocatePrimaryAction
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CommandAllocatePrimaryAction.Builder,CommandAllocatePrimaryAction>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class CommandAllocatePrimaryAction
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<CommandAllocatePrimaryAction.Builder,CommandAllocatePrimaryAction>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CommandAllocatePrimaryAction> Json deserializer forCommandAllocatePrimaryAction -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanRequired - If a node which has a copy of the data rejoins the cluster later on, that data will be deleted.builder()booleaninthashCode()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:shardCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forCommandAllocatePrimaryAction
-
-
Method Details
-
of
-
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 flagaccept_data_lossto be explicitly set totrue.API name:
accept_data_loss -
index
Required - API name:index -
node
Required - API name:node -
shard
public final int shard()Required - API name:shard -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CommandAllocatePrimaryAction.Builder,CommandAllocatePrimaryAction> - Returns:
- a new builder instance.
-
builder
-
setupCommandAllocatePrimaryActionDeserializer
protected static void setupCommandAllocatePrimaryActionDeserializer(ObjectDeserializer<CommandAllocatePrimaryAction.Builder> op) -
hashCode
public int hashCode() -
equals
-