Class DocumentSimulation
java.lang.Object
co.elastic.clients.elasticsearch.ingest.simulate.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 - API name:_idfinal Stringindex()Required - API name:_indexfinal Ingestingest()Required - API name:_ingestmetadata()Additional metadatastatic DocumentSimulationfinal Stringrouting()API name:_routingvoidserialize(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 - API name:_sourcetoString()final Stringtype()API name:_typefinal 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 - API name:_id -
index
Required - API name:_index -
ingest
Required - API name:_ingest -
routing
API name:_routing -
source
Required - API name:_source -
type
API name:_type -
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)
-