Class CommandAllocatePrimaryAction.Builder
java.lang.Object
co.elastic.clients.elasticsearch.cluster.reroute.CommandAllocatePrimaryAction.Builder
- All Implemented Interfaces:
ObjectBuilder<CommandAllocatePrimaryAction>
- Enclosing class:
- CommandAllocatePrimaryAction
public static class CommandAllocatePrimaryAction.Builder extends java.lang.Object implements ObjectBuilder<CommandAllocatePrimaryAction>
Builder for
CommandAllocatePrimaryAction.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CommandAllocatePrimaryAction.BuilderacceptDataLoss(boolean value)If a node which has a copy of the data rejoins the cluster later on, that data will be deleted.CommandAllocatePrimaryActionbuild()Builds aCommandAllocatePrimaryAction.CommandAllocatePrimaryAction.Builderindex(java.lang.String value)API name:indexCommandAllocatePrimaryAction.Buildernode(java.lang.String value)API name:nodeCommandAllocatePrimaryAction.Buildershard(int value)API name:shardMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
API name:index -
shard
API name:shard -
node
API name:node -
acceptDataLoss
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 -
build
Builds aCommandAllocatePrimaryAction.- Specified by:
buildin interfaceObjectBuilder<CommandAllocatePrimaryAction>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-