Class RerouteResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RerouteResponse.Builder>
co.elastic.clients.elasticsearch.cluster.RerouteResponse.Builder
- All Implemented Interfaces:
WithJson<RerouteResponse.Builder>
,ObjectBuilder<RerouteResponse>
- Enclosing class:
- RerouteResponse
public static class RerouteResponse.Builder extends WithJsonObjectBuilderBase<RerouteResponse.Builder> implements ObjectBuilder<RerouteResponse>
Builder for
RerouteResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description RerouteResponse.Builder
acknowledged(boolean value)
Required - API name:acknowledged
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
protected RerouteResponse.Builder
self()
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.WithJsonObjectBuilderBase
withJson
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
-
acknowledged
Required - API name:acknowledged
-
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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<RerouteResponse.Builder>
-
build
Builds aRerouteResponse
.- Specified by:
build
in interfaceObjectBuilder<RerouteResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-