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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CommandAllocatePrimaryAction.BuilderacceptDataLoss(boolean value)Required - If a node which has a copy of the data rejoins the cluster later on, that data will be deleted.CommandAllocatePrimaryActionbuild()Builds aCommandAllocatePrimaryAction.CommandAllocatePrimaryAction.Builderindex(java.lang.String value)Required - API name:indexCommandAllocatePrimaryAction.Buildernode(java.lang.String value)Required - API name:nodeprotected CommandAllocatePrimaryAction.Builderself()CommandAllocatePrimaryAction.Buildershard(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, _mapPutAllMethods 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 -
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:
java.lang.NullPointerException- if some of the required fields are null.
-