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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DocumentSimulation>Json deserializer forDocumentSimulation
- 
Method SummaryModifier 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- 
_DESERIALIZERJson deserializer forDocumentSimulation
 
- 
- 
Method Details- 
ofpublic static DocumentSimulation of(Function<DocumentSimulation.Builder, ObjectBuilder<DocumentSimulation>> fn) 
- 
metadataAdditional metadata
- 
idRequired - Unique identifier for the document. This ID must be unique within the_index.API name: _id
- 
indexRequired - Name of the index containing the document.API name: _index
- 
ingestRequired - API name:_ingest
- 
routingValue used to send the document to a specific primary shard.API name: _routing
- 
sourceRequired - JSON body for the document.API name: _source
- 
versionAPI name:_version
- 
versionTypeAPI name:_version_type
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
toString
- 
setupDocumentSimulationDeserializerprotected static void setupDocumentSimulationDeserializer(ObjectDeserializer<DocumentSimulation.Builder> op) 
 
-