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 -
Method Summary
Modifier and TypeMethodDescriptionfinal RerouteResponse.Builderacknowledged(boolean value) Required - API name:acknowledgedbuild()Builds aRerouteResponse.final RerouteResponse.Builderexplanations(RerouteExplanation value, RerouteExplanation... values) API name:explanationsfinal RerouteResponse.BuilderAPI name:explanationsfinal RerouteResponse.Builderexplanations(List<RerouteExplanation> list) API name:explanationsprotected RerouteResponse.Builderself()final RerouteResponse.BuilderThere aren't any guarantees on the output/structure of the raw cluster state.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acknowledged
Required - API name:acknowledged -
explanations
API name:explanationsAdds all elements of
listtoexplanations. -
explanations
public final RerouteResponse.Builder explanations(RerouteExplanation value, RerouteExplanation... values) API name:explanationsAdds one or more values to
explanations. -
explanations
public final RerouteResponse.Builder explanations(Function<RerouteExplanation.Builder, ObjectBuilder<RerouteExplanation>> fn) API name:explanationsAdds a value to
explanationsusing a builder lambda. -
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RerouteResponse.Builder>
-
build
Builds aRerouteResponse.- Specified by:
buildin interfaceObjectBuilder<RerouteResponse>- Throws:
NullPointerException- if some of the required fields are null.
-