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