Package co.elastic.clients.base
Class ElasticsearchError
java.lang.Object
co.elastic.clients.base.ElasticsearchError
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class ElasticsearchError extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ElasticsearchError.Builder
Builder forElasticsearchError
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ElasticsearchError>
_DESERIALIZER
Json deserializer forElasticsearchError
-
Constructor Summary
Constructors Constructor Description ElasticsearchError(ElasticsearchError.Builder builder)
ElasticsearchError(java.util.function.Function<ElasticsearchError.Builder,ElasticsearchError.Builder> fn)
-
Method Summary
Modifier and Type Method Description jakarta.json.JsonValue
error()
API name:error
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupElasticsearchErrorDeserializer(DelegatingDeserializer<ElasticsearchError.Builder> op)
int
status()
API name:status
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forElasticsearchError
-
-
Constructor Details
-
ElasticsearchError
-
ElasticsearchError
public ElasticsearchError(java.util.function.Function<ElasticsearchError.Builder,ElasticsearchError.Builder> fn)
-
-
Method Details
-
status
public int status()API name:status
-
error
public jakarta.json.JsonValue error()API name:error
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupElasticsearchErrorDeserializer
protected static void setupElasticsearchErrorDeserializer(DelegatingDeserializer<ElasticsearchError.Builder> op)
-