Class RerouteRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<RerouteRequest.Builder>
co.elastic.clients.elasticsearch.cluster.RerouteRequest.Builder
- All Implemented Interfaces:
WithJson<RerouteRequest.Builder>,ObjectBuilder<RerouteRequest>
- Enclosing class:
- RerouteRequest
public static class RerouteRequest.Builder
extends RequestBase.AbstractBuilder<RerouteRequest.Builder>
implements ObjectBuilder<RerouteRequest>
Builder for
RerouteRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRerouteRequest.final RerouteRequest.BuilderDefines the commands to perform.final RerouteRequest.BuilderDefines the commands to perform.final RerouteRequest.BuilderDefines the commands to perform.final RerouteRequest.BuilderIf true, then the request simulates the operation.final RerouteRequest.BuilderIf true, then the response contains an explanation of why the commands can or cannot run.final RerouteRequest.BuildermasterTimeout(Time value) Period to wait for a connection to the master node.final RerouteRequest.BuilderPeriod to wait for a connection to the master node.final RerouteRequest.BuilderLimits the information returned to the specified metrics.final RerouteRequest.BuilderLimits the information returned to the specified metrics.final RerouteRequest.BuilderretryFailed(Boolean value) If true, then retries allocation of shards that are blocked due to too many subsequent allocation failures.protected RerouteRequest.Builderself()final RerouteRequest.BuilderPeriod to wait for a response.final RerouteRequest.BuilderPeriod to wait for a response.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
-
commands
Defines the commands to perform.API name:
commandsAdds all elements of
listtocommands. -
commands
Defines the commands to perform.API name:
commandsAdds one or more values to
commands. -
commands
Defines the commands to perform.API name:
commandsAdds a value to
commandsusing a builder lambda. -
dryRun
If true, then the request simulates the operation. It will calculate the result of applying the commands to the current cluster state and return the resulting cluster state after the commands (and rebalancing) have been applied; it will not actually perform the requested changes.API name:
dry_run -
explain
If true, then the response contains an explanation of why the commands can or cannot run.API name:
explain -
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
metric
Limits the information returned to the specified metrics.API name:
metricAdds all elements of
listtometric. -
metric
Limits the information returned to the specified metrics.API name:
metricAdds one or more values to
metric. -
retryFailed
If true, then retries allocation of shards that are blocked due to too many subsequent allocation failures.API name:
retry_failed -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<RerouteRequest.Builder>
-
build
Builds aRerouteRequest.- Specified by:
buildin interfaceObjectBuilder<RerouteRequest>- Throws:
NullPointerException- if some of the required fields are null.
-