Class RerouteResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cluster.RerouteResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<RerouteResponse>
- Enclosing class:
- RerouteResponse
public static class RerouteResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<RerouteResponse>
Builder for
RerouteResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description RerouteResponse
build()
Builds aRerouteResponse
.RerouteResponse.Builder
explanations(RerouteExplanation value, RerouteExplanation... values)
API name:explanations
RerouteResponse.Builder
explanations(java.util.function.Function<RerouteExplanation.Builder,ObjectBuilder<RerouteExplanation>> fn)
API name:explanations
RerouteResponse.Builder
explanations(java.util.List<RerouteExplanation> list)
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 co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
Adds all elements of
list
toexplanations
. -
explanations
public final RerouteResponse.Builder explanations(RerouteExplanation value, RerouteExplanation... values)API name:explanations
Adds one or more values to
explanations
. -
explanations
public final RerouteResponse.Builder explanations(java.util.function.Function<RerouteExplanation.Builder,ObjectBuilder<RerouteExplanation>> fn)API name:explanations
Adds a value to
explanations
using a builder lambda. -
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.
-