Class RerouteResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.AcknowledgedResponseBase.AbstractBuilder<RerouteResponse.Builder>
org.opensearch.client.opensearch.cluster.RerouteResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<RerouteResponse.Builder,,RerouteResponse> MutableBuilder<RerouteResponse.Builder,,RerouteResponse> ObjectBuilder<RerouteResponse>
- Enclosing class:
RerouteResponse
public static class RerouteResponse.Builder
extends AcknowledgedResponseBase.AbstractBuilder<RerouteResponse.Builder>
implements CopyableBuilder<RerouteResponse.Builder,RerouteResponse>
Builder for
RerouteResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRerouteResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.final RerouteResponse.BuilderAPI name:explanationsfinal RerouteResponse.Builderexplanations(List<RerouteExplanation> list) API name:explanationsfinal RerouteResponse.Builderexplanations(RerouteExplanation value, RerouteExplanation... values) API name:explanationsprotected RerouteResponse.Builderself()final RerouteResponse.BuilderShows the internal representation of the structure, which can differ from the external representation.Methods inherited from class org.opensearch.client.opensearch._types.AcknowledgedResponseBase.AbstractBuilder
acknowledgedMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<RerouteResponse.Builder,RerouteResponse> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classAcknowledgedResponseBase.AbstractBuilder<RerouteResponse.Builder>
-
explanations
API name:explanationsAdds all elements of
listtoexplanations. -
explanations
@Nonnull public final RerouteResponse.Builder explanations(RerouteExplanation value, RerouteExplanation... values) API name:explanationsAdds one or more values to
explanations. -
explanations
@Nonnull public final RerouteResponse.Builder explanations(Function<RerouteExplanation.Builder, ObjectBuilder<RerouteExplanation>> fn) API name:explanationsAdds a value to
explanationsusing a builder lambda. -
state
Shows the internal representation of the structure, which can differ from the external representation.API name:
state -
build
Builds aRerouteResponse.- Specified by:
buildin interfaceObjectBuilder<RerouteResponse>- Throws:
NullPointerException- if some of the required fields are null.
-