Class CommandAllocatePrimaryAction.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.reroute.CommandAllocatePrimaryAction.Builder
-
- All Implemented Interfaces:
ObjectBuilder<CommandAllocatePrimaryAction>
- Enclosing class:
- CommandAllocatePrimaryAction
public static class CommandAllocatePrimaryAction.Builder extends ObjectBuilderBase implements ObjectBuilder<CommandAllocatePrimaryAction>
Builder forCommandAllocatePrimaryAction.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandAllocatePrimaryAction.BuilderacceptDataLoss(boolean value)Required - 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)Required - API name:indexCommandAllocatePrimaryAction.Buildernode(java.lang.String value)Required - API name:nodeCommandAllocatePrimaryAction.Buildershard(int value)Required - API name:shard-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
index
public final CommandAllocatePrimaryAction.Builder index(java.lang.String value)
Required - API name:index
-
shard
public final CommandAllocatePrimaryAction.Builder shard(int value)
Required - API name:shard
-
node
public final CommandAllocatePrimaryAction.Builder node(java.lang.String value)
Required - API name:node
-
acceptDataLoss
public final CommandAllocatePrimaryAction.Builder acceptDataLoss(boolean value)
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
-
build
public CommandAllocatePrimaryAction build()
Builds aCommandAllocatePrimaryAction.- Specified by:
buildin interfaceObjectBuilder<CommandAllocatePrimaryAction>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-