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.Builder
addExplanations(RerouteExplanation value)
Add a value toexplanations(List)
, creating the list if needed.RerouteResponse.Builder
addExplanations(java.util.function.Function<RerouteExplanation.Builder,ObjectBuilder<RerouteExplanation>> fn)
Add a value toexplanations(List)
, creating the list if needed.RerouteResponse
build()
Builds aRerouteResponse
.RerouteResponse.Builder
explanations(RerouteExplanation... value)
API name:explanations
RerouteResponse.Builder
explanations(java.util.function.Function<RerouteExplanation.Builder,ObjectBuilder<RerouteExplanation>> fn)
Setexplanations(List)
to a singleton list.RerouteResponse.Builder
explanations(java.util.List<RerouteExplanation> value)
API name:explanations
RerouteResponse.Builder
state(JsonData value)
Required - 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. -
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. -
state
Required - 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:
build
in interfaceObjectBuilder<RerouteResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-