Class CommandAllocateReplicaAction.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cluster.reroute.CommandAllocateReplicaAction.Builder
- All Implemented Interfaces:
CopyableBuilder<CommandAllocateReplicaAction.Builder,,CommandAllocateReplicaAction> MutableBuilder<CommandAllocateReplicaAction.Builder,,CommandAllocateReplicaAction> ObjectBuilder<CommandAllocateReplicaAction>
- Enclosing class:
CommandAllocateReplicaAction
public static class CommandAllocateReplicaAction.Builder
extends ObjectBuilderBase
implements CopyableBuilder<CommandAllocateReplicaAction.Builder,CommandAllocateReplicaAction>
Builder for
CommandAllocateReplicaAction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCommandAllocateReplicaAction.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<CommandAllocateReplicaAction.Builder,CommandAllocateReplicaAction> - Returns:
- a new builder instance.
-
index
Required - API name:index -
node
Required - API name:node -
shard
Required - API name:shard -
build
Builds aCommandAllocateReplicaAction.- Specified by:
buildin interfaceObjectBuilder<CommandAllocateReplicaAction>- Throws:
NullPointerException- if some of the required fields are null.
-