Class RerouteResponse.Builder
java.lang.Object
org.opensearch.client.opensearch._types.AcknowledgedResponseBase.AbstractBuilder<RerouteResponse.Builder>
org.opensearch.client.opensearch.cluster.RerouteResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<RerouteResponse>
- Enclosing class:
- RerouteResponse
public static class RerouteResponse.Builder extends AcknowledgedResponseBase.AbstractBuilder<RerouteResponse.Builder> implements ObjectBuilder<RerouteResponse>
Builder for
RerouteResponse.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Methods inherited from class org.opensearch.client.opensearch._types.AcknowledgedResponseBase.AbstractBuilder
acknowledged
-
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
API name:state -
state
public RerouteResponse.Builder state(java.util.function.Function<RerouteState.Builder,ObjectBuilder<RerouteState>> fn)API name:state -
self
- Specified by:
selfin classAcknowledgedResponseBase.AbstractBuilder<RerouteResponse.Builder>
-
build
Builds aRerouteResponse.- Specified by:
buildin interfaceObjectBuilder<RerouteResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-