Class RerouteResponse.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.RerouteResponse.Builder
-
- All Implemented Interfaces:
ObjectBuilder<RerouteResponse>
- Enclosing class:
- RerouteResponse
public static class RerouteResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<RerouteResponse>
Builder forRerouteResponse.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RerouteResponsebuild()Builds aRerouteResponse.RerouteResponse.Builderexplanations(java.util.function.Function<RerouteExplanation.Builder,ObjectBuilder<RerouteExplanation>> fn)API name:explanationsRerouteResponse.Builderexplanations(java.util.List<RerouteExplanation> list)API name:explanationsRerouteResponse.Builderexplanations(RerouteExplanation value, RerouteExplanation... values)API name:explanationsRerouteResponse.Builderstate(JsonData value)Required - There aren't any guarantees on the output/structure of the raw cluster state.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
explanations
public final RerouteResponse.Builder explanations(java.util.List<RerouteExplanation> list)
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(java.util.function.Function<RerouteExplanation.Builder,ObjectBuilder<RerouteExplanation>> fn)
API name:explanationsAdds a value to
explanationsusing a builder lambda.
-
state
public final RerouteResponse.Builder state(JsonData value)
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
public RerouteResponse build()
Builds aRerouteResponse.- Specified by:
buildin interfaceObjectBuilder<RerouteResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-