Class CommandAllocatePrimaryAction.Builder
java.lang.Object
org.opensearch.client.opensearch.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CommandAllocatePrimaryAction.BuilderacceptDataLoss(java.lang.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(java.lang.Number value)API name:shard
-
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 true API name:accept_data_loss -
build
Builds aCommandAllocatePrimaryAction.- Specified by:
buildin interfaceObjectBuilder<CommandAllocatePrimaryAction>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-