Class RerouteExplanation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cluster.reroute.RerouteExplanation.Builder
- All Implemented Interfaces:
ObjectBuilder<RerouteExplanation>
- Enclosing class:
- RerouteExplanation
public static class RerouteExplanation.Builder extends ObjectBuilderBase implements ObjectBuilder<RerouteExplanation>
Builder for
RerouteExplanation.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RerouteExplanationbuild()Builds aRerouteExplanation.RerouteExplanation.Buildercommand(java.lang.String value)Required - API name:commandRerouteExplanation.Builderdecisions(RerouteDecision value, RerouteDecision... values)Required - API name:decisionsRerouteExplanation.Builderdecisions(java.util.function.Function<RerouteDecision.Builder,ObjectBuilder<RerouteDecision>> fn)Required - API name:decisionsRerouteExplanation.Builderdecisions(java.util.List<RerouteDecision> list)Required - API name:decisionsRerouteExplanation.Builderparameters(RerouteParameters value)Required - API name:parametersRerouteExplanation.Builderparameters(java.util.function.Function<RerouteParameters.Builder,ObjectBuilder<RerouteParameters>> fn)Required - API name:parametersMethods 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
-
command
Required - API name:command -
decisions
Required - API name:decisionsAdds all elements of
listtodecisions. -
decisions
public final RerouteExplanation.Builder decisions(RerouteDecision value, RerouteDecision... values)Required - API name:decisionsAdds one or more values to
decisions. -
decisions
public final RerouteExplanation.Builder decisions(java.util.function.Function<RerouteDecision.Builder,ObjectBuilder<RerouteDecision>> fn)Required - API name:decisionsAdds a value to
decisionsusing a builder lambda. -
parameters
Required - API name:parameters -
parameters
public final RerouteExplanation.Builder parameters(java.util.function.Function<RerouteParameters.Builder,ObjectBuilder<RerouteParameters>> fn)Required - API name:parameters -
build
Builds aRerouteExplanation.- Specified by:
buildin interfaceObjectBuilder<RerouteExplanation>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-