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 SummaryConstructors
- 
Method SummaryModifier 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.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
indexRequired - API name:index
- 
shardRequired - API name:shard
- 
nodeRequired - API name:node
- 
acceptDataLossRequired - 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 class- WithJsonObjectBuilderBase<CommandAllocatePrimaryAction.Builder>
 
- 
buildBuilds aCommandAllocatePrimaryAction.- Specified by:
- buildin interface- ObjectBuilder<CommandAllocatePrimaryAction>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-