Class CommandAllocatePrimaryAction.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CommandAllocatePrimaryAction.Builder>
co.elastic.clients.elasticsearch.cluster.reroute.CommandAllocatePrimaryAction.Builder
- All Implemented Interfaces:
WithJson<CommandAllocatePrimaryAction.Builder>
,ObjectBuilder<CommandAllocatePrimaryAction>
- Enclosing class:
- CommandAllocatePrimaryAction
public static class CommandAllocatePrimaryAction.Builder
extends WithJsonObjectBuilderBase<CommandAllocatePrimaryAction.Builder>
implements ObjectBuilder<CommandAllocatePrimaryAction>
Builder for
CommandAllocatePrimaryAction
.-
Constructor Summary
-
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
.Required - API name:index
Required - API name:node
protected CommandAllocatePrimaryAction.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
-
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 flag accept_data_loss to be explicitly set to trueAPI name:
accept_data_loss
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<CommandAllocatePrimaryAction.Builder>
-
build
Builds aCommandAllocatePrimaryAction
.- Specified by:
build
in interfaceObjectBuilder<CommandAllocatePrimaryAction>
- Throws:
NullPointerException
- if some of the required fields are null.
-