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.requestsPerSecond(Float value) The throttle for this request in sub-requests per second.protected ReindexRethrottleRequest.Builderself()Required - The task identifier, which can be found by using the tasks API.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
-
requestsPerSecond
The throttle for this request in sub-requests per second. 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, which can be found by using the tasks API.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.
-