Class CommandAllocateReplicaAction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cluster.reroute.CommandAllocateReplicaAction.Builder
- All Implemented Interfaces:
ObjectBuilder<CommandAllocateReplicaAction>
- Enclosing class:
- CommandAllocateReplicaAction
public static class CommandAllocateReplicaAction.Builder extends ObjectBuilderBase implements ObjectBuilder<CommandAllocateReplicaAction>
Builder for
CommandAllocateReplicaAction
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description CommandAllocateReplicaAction
build()
Builds aCommandAllocateReplicaAction
.CommandAllocateReplicaAction.Builder
index(java.lang.String value)
Required - API name:index
CommandAllocateReplicaAction.Builder
node(java.lang.String value)
Required - API name:node
CommandAllocateReplicaAction.Builder
shard(int value)
Required - API name:shard
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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
Required - API name:index
-
shard
Required - API name:shard
-
node
Required - API name:node
-
build
Builds aCommandAllocateReplicaAction
.- Specified by:
build
in interfaceObjectBuilder<CommandAllocateReplicaAction>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-