Class ErrorCause.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ErrorCause.Builder>
co.elastic.clients.elasticsearch._types.ErrorCause.Builder
- All Implemented Interfaces:
WithJson<ErrorCause.Builder>
,ObjectBuilder<ErrorCause>
- Enclosing class:
- ErrorCause
public static class ErrorCause.Builder extends WithJsonObjectBuilderBase<ErrorCause.Builder> implements ObjectBuilder<ErrorCause>
Builder for
ErrorCause
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ErrorCause
build()
Builds aErrorCause
.ErrorCause.Builder
causedBy(ErrorCause value)
API name:caused_by
ErrorCause.Builder
causedBy(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
API name:caused_by
ErrorCause.Builder
metadata(java.lang.String key, JsonData value)
Additional details about the errorErrorCause.Builder
metadata(java.util.Map<java.lang.String,JsonData> map)
Additional details about the errorErrorCause.Builder
reason(java.lang.String value)
Required - A human-readable explanation of the error, in englishErrorCause.Builder
rootCause(ErrorCause value, ErrorCause... values)
API name:root_cause
ErrorCause.Builder
rootCause(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
API name:root_cause
ErrorCause.Builder
rootCause(java.util.List<ErrorCause> list)
API name:root_cause
protected ErrorCause.Builder
self()
ErrorCause.Builder
stackTrace(java.lang.String value)
The server stack trace.ErrorCause.Builder
suppressed(ErrorCause value, ErrorCause... values)
API name:suppressed
ErrorCause.Builder
suppressed(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
API name:suppressed
ErrorCause.Builder
suppressed(java.util.List<ErrorCause> list)
API name:suppressed
ErrorCause.Builder
type(java.lang.String value)
The type of errorMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metadata
Additional details about the errorAdds all entries of
map
tometadata
. -
metadata
Additional details about the errorAdds an entry to
metadata
. -
type
The type of errorAPI name:
type
-
reason
Required - A human-readable explanation of the error, in englishAPI name:
reason
-
stackTrace
The server stack trace. Present only if theerror_trace=true
parameter was sent with the request.API name:
stack_trace
-
causedBy
API name:caused_by
-
causedBy
public final ErrorCause.Builder causedBy(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)API name:caused_by
-
rootCause
API name:root_cause
Adds all elements of
list
torootCause
. -
rootCause
API name:root_cause
Adds one or more values to
rootCause
. -
rootCause
public final ErrorCause.Builder rootCause(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)API name:root_cause
Adds a value to
rootCause
using a builder lambda. -
suppressed
API name:suppressed
Adds all elements of
list
tosuppressed
. -
suppressed
API name:suppressed
Adds one or more values to
suppressed
. -
suppressed
public final ErrorCause.Builder suppressed(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)API name:suppressed
Adds a value to
suppressed
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ErrorCause.Builder>
-
build
Builds aErrorCause
.- Specified by:
build
in interfaceObjectBuilder<ErrorCause>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-