Class Document
java.lang.Object
org.opensearch.client.opensearch.ingest.simulate.Document
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<Document.Builder,Document>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Document
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<Document.Builder,Document>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Document> Json deserializer forDocument -
Method Summary
Modifier and TypeMethodDescriptionstatic Document.Builderbuilder()booleaninthashCode()final Stringid()API name:_idfinal Stringindex()API name:_indexstatic Documentvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal JsonDatasource()Required - JSON body for the document.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forDocument
-
-
Method Details
-
of
-
id
API name:_id -
index
API name:_index -
source
Required - JSON body for the document.API name:
_source -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Document.Builder,Document> - Returns:
- a new builder instance.
-
builder
-
setupDocumentDeserializer
-
hashCode
public int hashCode() -
equals
-