Class RerouteResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.cluster.RerouteResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<RerouteResponse>
- Enclosing class:
- RerouteResponse
public static class RerouteResponse.Builder extends java.lang.Object implements ObjectBuilder<RerouteResponse>
Builder for
RerouteResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RerouteResponse.BuilderaddExplanations(RerouteExplanation value)Add a value toexplanations(List), creating the list if needed.RerouteResponse.BuilderaddExplanations(java.util.function.Function<RerouteExplanation.Builder,ObjectBuilder<RerouteExplanation>> fn)Add a value toexplanations(List), creating the list if needed.RerouteResponsebuild()Builds aRerouteResponse.RerouteResponse.Builderexplanations(RerouteExplanation... value)API name:explanationsRerouteResponse.Builderexplanations(java.util.function.Function<RerouteExplanation.Builder,ObjectBuilder<RerouteExplanation>> fn)Setexplanations(List)to a singleton list.RerouteResponse.Builderexplanations(java.util.List<RerouteExplanation> value)API name:explanationsRerouteResponse.Builderstate(JsonData value)There aren't any guarantees on the output/structure of the raw cluster state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
explanations
API name:explanations -
explanations
API name:explanations -
addExplanations
Add a value toexplanations(List), creating the list if needed. 4 -
explanations
public RerouteResponse.Builder explanations(java.util.function.Function<RerouteExplanation.Builder,ObjectBuilder<RerouteExplanation>> fn)Setexplanations(List)to a singleton list. -
addExplanations
public RerouteResponse.Builder addExplanations(java.util.function.Function<RerouteExplanation.Builder,ObjectBuilder<RerouteExplanation>> fn)Add a value toexplanations(List), creating the list if needed. 5 -
state
There aren't any guarantees on the output/structure of the raw cluster state. Here you will find the internal representation of the cluster, which can differ from the external representation.API name:
state -
build
Builds aRerouteResponse.- Specified by:
buildin interfaceObjectBuilder<RerouteResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-