Class ReindexRethrottleRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ReindexRethrottleRequest.Builder>
co.elastic.clients.elasticsearch.core.ReindexRethrottleRequest.Builder
- All Implemented Interfaces:
WithJson<ReindexRethrottleRequest.Builder>,ObjectBuilder<ReindexRethrottleRequest>
- Enclosing class:
- ReindexRethrottleRequest
public static class ReindexRethrottleRequest.Builder
extends RequestBase.AbstractBuilder<ReindexRethrottleRequest.Builder>
implements ObjectBuilder<ReindexRethrottleRequest>
Builder for
ReindexRethrottleRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aReindexRethrottleRequest.The way to group the tasks in the response.requestsPerSecond(float value) Required - The maximum number of documents to index per second, across the entire reindex operation (including slices).protected ReindexRethrottleRequest.Builderself()Required - The task identifier, returned when creating a reindex task, or by listing tasks viaGET /_reindexorGET /_tasks.Methods 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
-
groupBy
The way to group the tasks in the response. We recommend setting this tonone, which provides the cleanest response format.API name:
group_by -
requestsPerSecond
Required - The maximum number of documents to index per second, across the entire reindex operation (including slices). It can be either-1to turn off throttling or any decimal number like1.7or12to throttle to that level.API name:
requests_per_second -
taskId
Required - The task identifier, returned when creating a reindex task, or by listing tasks viaGET /_reindexorGET /_tasks. In stack, can be either the original task ID or the task ID of the relocated task.API name:
task_id -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ReindexRethrottleRequest.Builder>
-
build
Builds aReindexRethrottleRequest.- Specified by:
buildin interfaceObjectBuilder<ReindexRethrottleRequest>- Throws:
NullPointerException- if some of the required fields are null.
-