Class Document
java.lang.Object
co.elastic.clients.elasticsearch.ingest.simulate.Document
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class Document extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Document.Builder
Builder forDocument
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Document>
_DESERIALIZER
Json deserializer forDocument
-
Method Summary
Modifier and Type Method Description java.lang.String
id()
API name:_id
java.lang.String
index()
API name:_index
static Document
of(java.util.function.Function<Document.Builder,ObjectBuilder<Document>> fn)
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
setupDocumentDeserializer(ObjectDeserializer<Document.Builder> op)
JsonData
source()
Required - API name:_source
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forDocument
-
-
Method Details
-
of
public static Document of(java.util.function.Function<Document.Builder,ObjectBuilder<Document>> fn) -
id
@Nullable public final java.lang.String id()API name:_id
-
index
@Nullable public final java.lang.String index()API name:_index
-
source
Required - API name:_source
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupDocumentDeserializer
-