Class RerouteRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.RerouteRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<RerouteRequest>
- Enclosing class:
- RerouteRequest
public static class RerouteRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<RerouteRequest>
Builder forRerouteRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RerouteRequestbuild()Builds aRerouteRequest.RerouteRequest.BuilderclusterManagerTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a connection to the cluster-manager node.RerouteRequest.BuilderclusterManagerTimeout(Time value)Period to wait for a connection to the cluster-manager node.RerouteRequest.Buildercommands(java.util.function.Function<Command.Builder,ObjectBuilder<Command>> fn)Defines the commands to perform.RerouteRequest.Buildercommands(java.util.List<Command> list)Defines the commands to perform.RerouteRequest.Buildercommands(Command value, Command... values)Defines the commands to perform.RerouteRequest.BuilderdryRun(java.lang.Boolean value)If true, then the request simulates the operation only and returns the resulting state.RerouteRequest.Builderexplain(java.lang.Boolean value)If true, then the response contains an explanation of why the commands can or cannot be executed.RerouteRequest.BuildermasterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Deprecated.RerouteRequest.BuildermasterTimeout(Time value)Deprecated.RerouteRequest.Buildermetric(java.lang.String value, java.lang.String... values)Limits the information returned to the specified metrics.RerouteRequest.Buildermetric(java.util.List<java.lang.String> list)Limits the information returned to the specified metrics.RerouteRequest.BuilderretryFailed(java.lang.Boolean value)If true, then retries allocation of shards that are blocked due to too many subsequent allocation failures.RerouteRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a response.RerouteRequest.Buildertimeout(Time value)Period to wait for a response.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
commands
public final RerouteRequest.Builder commands(java.util.List<Command> list)
Defines the commands to perform.API name:
commandsAdds all elements of
listtocommands.
-
commands
public final RerouteRequest.Builder commands(Command value, Command... values)
Defines the commands to perform.API name:
commandsAdds one or more values to
commands.
-
commands
public final RerouteRequest.Builder commands(java.util.function.Function<Command.Builder,ObjectBuilder<Command>> fn)
Defines the commands to perform.API name:
commandsAdds a value to
commandsusing a builder lambda.
-
dryRun
public final RerouteRequest.Builder dryRun(@Nullable java.lang.Boolean value)
If true, then the request simulates the operation only and returns the resulting state.API name:
dry_run
-
explain
public final RerouteRequest.Builder explain(@Nullable java.lang.Boolean value)
If true, then the response contains an explanation of why the commands can or cannot be executed.API name:
explain
-
masterTimeout
@Deprecated public final RerouteRequest.Builder masterTimeout(@Nullable Time value)
Deprecated.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
@Deprecated public final RerouteRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Deprecated.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
-
clusterManagerTimeout
public final RerouteRequest.Builder clusterManagerTimeout(@Nullable Time value)
Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
cluster_manager_timeout
-
clusterManagerTimeout
public final RerouteRequest.Builder clusterManagerTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
cluster_manager_timeout
-
metric
public final RerouteRequest.Builder metric(java.util.List<java.lang.String> list)
Limits the information returned to the specified metrics.API name:
metricAdds all elements of
listtometric.
-
metric
public final RerouteRequest.Builder metric(java.lang.String value, java.lang.String... values)
Limits the information returned to the specified metrics.API name:
metricAdds one or more values to
metric.
-
retryFailed
public final RerouteRequest.Builder retryFailed(@Nullable java.lang.Boolean value)
If true, then retries allocation of shards that are blocked due to too many subsequent allocation failures.API name:
retry_failed
-
timeout
public final RerouteRequest.Builder timeout(@Nullable Time value)
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
public final RerouteRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
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
-
build
public RerouteRequest build()
Builds aRerouteRequest.- Specified by:
buildin interfaceObjectBuilder<RerouteRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-