Class ErrorCause.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.ErrorCause.Builder
- All Implemented Interfaces:
CopyableBuilder<ErrorCause.Builder,,ErrorCause> MutableBuilder<ErrorCause.Builder,,ErrorCause> ObjectBuilder<ErrorCause>
- Enclosing class:
ErrorCause
public static class ErrorCause.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ErrorCause.Builder,ErrorCause>
Builder for
ErrorCause.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aErrorCause.final ErrorCause.BuilderAPI name:caused_byfinal ErrorCause.BuildercausedBy(ErrorCause value) API name:caused_bycopy()Create a new builderCopyableBuilderthat is a copy of this one.final ErrorCause.BuilderAny additional information about the error.final ErrorCause.BuilderAny additional information about the error.final ErrorCause.BuilderA human-readable explanation of the error, in English.final ErrorCause.BuilderAPI name:root_causefinal ErrorCause.BuilderrootCause(List<ErrorCause> list) API name:root_causefinal ErrorCause.BuilderrootCause(ErrorCause value, ErrorCause... values) API name:root_causefinal ErrorCause.BuilderstackTrace(String value) The server stack trace, present only if theerror_trace=trueparameter was sent with the request.final ErrorCause.BuilderAPI name:suppressedfinal ErrorCause.Buildersuppressed(List<ErrorCause> list) API name:suppressedfinal ErrorCause.Buildersuppressed(ErrorCause value, ErrorCause... values) API name:suppressedfinal ErrorCause.BuilderRequired - The type of error.Methods 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<ErrorCause.Builder,ErrorCause> - Returns:
- a new builder instance.
-
causedBy
API name:caused_by -
causedBy
@Nonnull public final ErrorCause.Builder causedBy(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) API name:caused_by -
metadata
Any additional information about the error.Adds all elements of
maptometadata. -
metadata
Any additional information about the error.Adds an entry to
metadata. -
reason
A human-readable explanation of the error, in English.API name:
reason -
rootCause
API name:root_causeAdds all elements of
listtorootCause. -
rootCause
API name:root_causeAdds one or more values to
rootCause. -
rootCause
@Nonnull public final ErrorCause.Builder rootCause(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) API name:root_causeAdds a value to
rootCauseusing a builder lambda. -
stackTrace
The server stack trace, present only if theerror_trace=trueparameter was sent with the request.API name:
stack_trace -
suppressed
API name:suppressedAdds all elements of
listtosuppressed. -
suppressed
API name:suppressedAdds one or more values to
suppressed. -
suppressed
@Nonnull public final ErrorCause.Builder suppressed(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) API name:suppressedAdds a value to
suppressedusing a builder lambda. -
type
Required - The type of error.API name:
type -
build
Builds aErrorCause.- Specified by:
buildin interfaceObjectBuilder<ErrorCause>- Throws:
NullPointerException- if some of the required fields are null.
-