Class Document.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Document.Builder>
co.elastic.clients.elasticsearch.ingest.simulate.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 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:_indexprotected Document.Builderself()Document.Buildersource(JsonData value)Required - API name:_sourceMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Document.Builder>
-
build
Builds aDocument.- Specified by:
buildin interfaceObjectBuilder<Document>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-