Class Document.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Document.Builder>
co.elastic.clients.elasticsearch.ingest.Document.Builder
- All Implemented Interfaces:
WithJson<Document.Builder>,ObjectBuilder<Document>
- Enclosing class:
- Document
public static class Document.Builder
extends WithJsonObjectBuilderBase<Document.Builder>
implements ObjectBuilder<Document>
Builder for
Document.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDocument.final Document.BuilderUnique identifier for the document.final Document.BuilderName of the index containing the document.protected Document.Builderself()final Document.BuilderRequired - JSON body for the document.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Unique identifier for the document. This ID must be unique within the_index.API name:
_id -
index
Name of the index containing the document.API name:
_index -
source
Required - JSON body for the document.API name:
_source -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Document.Builder>
-
build
Builds aDocument.- Specified by:
buildin interfaceObjectBuilder<Document>- Throws:
NullPointerException- if some of the required fields are null.
-