Class CommandAllocatePrimaryAction.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cluster.reroute.CommandAllocatePrimaryAction.Builder
- All Implemented Interfaces:
CopyableBuilder<CommandAllocatePrimaryAction.Builder,,CommandAllocatePrimaryAction> MutableBuilder<CommandAllocatePrimaryAction.Builder,,CommandAllocatePrimaryAction> ObjectBuilder<CommandAllocatePrimaryAction>
- Enclosing class:
CommandAllocatePrimaryAction
public static class CommandAllocatePrimaryAction.Builder
extends ObjectBuilderBase
implements CopyableBuilder<CommandAllocatePrimaryAction.Builder,CommandAllocatePrimaryAction>
Builder for
CommandAllocatePrimaryAction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptDataLoss(boolean value) Required - If a node which has a copy of the data rejoins the cluster later on, that data will be deleted.build()Builds aCommandAllocatePrimaryAction.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - API name:indexRequired - API name:nodeshard(int value) Required - API name:shardMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<CommandAllocatePrimaryAction.Builder,CommandAllocatePrimaryAction> - Returns:
- a new builder instance.
-
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
Required - API name:shard -
build
Builds aCommandAllocatePrimaryAction.- Specified by:
buildin interfaceObjectBuilder<CommandAllocatePrimaryAction>- Throws:
NullPointerException- if some of the required fields are null.
-