Class Document.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ingest.simulate.Document.Builder
- All Implemented Interfaces:
ObjectBuilder<Document>
- Enclosing class:
- Document
public static class Document.Builder extends java.lang.Object implements ObjectBuilder<Document>
Builder for
Document.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Documentbuild()Builds aDocument.Document.Builderid(java.lang.String value)API name:_idDocument.Builderindex(java.lang.String value)API name:_indexDocument.Buildersource(JsonData value)Required - API name:_sourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
API name:_id -
index
API name:_index -
source
Required - API name:_source -
build
Builds aDocument.- Specified by:
buildin interfaceObjectBuilder<Document>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-