Class DocumentSimulation
java.lang.Object
co.elastic.clients.elasticsearch.ingest.DocumentSimulation
- All Implemented Interfaces:
JsonpSerializable
The simulated document, with optional metadata.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DocumentSimulation>Json deserializer forDocumentSimulation -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringid()Required - Unique identifier for the document.final Stringindex()Required - Name of the index containing the document.final Ingestingest()Required - API name:_ingestmetadata()Additional metadatastatic DocumentSimulationfinal Stringrouting()Value used to send the document to a specific primary shard.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsource()Required - JSON body for the document.toString()final Longversion()API name:_versionfinal VersionTypeAPI name:_version_type
-
Field Details
-
_DESERIALIZER
Json deserializer forDocumentSimulation
-
-
Method Details
-
of
public static DocumentSimulation of(Function<DocumentSimulation.Builder, ObjectBuilder<DocumentSimulation>> fn) -
metadata
Additional metadata -
id
Required - Unique identifier for the document. This ID must be unique within the_index.API name:
_id -
index
Required - Name of the index containing the document.API name:
_index -
ingest
Required - API name:_ingest -
routing
Value used to send the document to a specific primary shard.API name:
_routing -
source
Required - JSON body for the document.API name:
_source -
version
API name:_version -
versionType
API name:_version_type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDocumentSimulationDeserializer
protected static void setupDocumentSimulationDeserializer(ObjectDeserializer<DocumentSimulation.Builder> op)
-