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
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.Required - API name:indexRequired - API name:nodeprotected CommandAllocatePrimaryAction.Builderself()shard(int value) Required - API name:shardMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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:
selfin classWithJsonObjectBuilderBase<CommandAllocatePrimaryAction.Builder>
-
build
Builds aCommandAllocatePrimaryAction.- Specified by:
buildin interfaceObjectBuilder<CommandAllocatePrimaryAction>- Throws:
NullPointerException- if some of the required fields are null.
-