Class Document.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.simulate.Document.Builder
- All Implemented Interfaces:
CopyableBuilder<Document.Builder,,Document> MutableBuilder<Document.Builder,,Document> ObjectBuilder<Document>
- Enclosing class:
Document
public static class Document.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Document.Builder,Document>
Builder for
Document.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDocument.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Document.BuilderAPI name:_idfinal Document.BuilderAPI name:_indexfinal Document.BuilderRequired - JSON body for the document.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<Document.Builder,Document> - Returns:
- a new builder instance.
-
id
API name:_id -
index
API name:_index -
source
Required - JSON body for the document.API name:
_source -
build
Builds aDocument.- Specified by:
buildin interfaceObjectBuilder<Document>- Throws:
NullPointerException- if some of the required fields are null.
-