Class DocumentSimulation.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.simulate.DocumentSimulation.Builder
- All Implemented Interfaces:
CopyableBuilder<DocumentSimulation.Builder,,DocumentSimulation> MutableBuilder<DocumentSimulation.Builder,,DocumentSimulation> ObjectBuilder<DocumentSimulation>
- Enclosing class:
DocumentSimulation
public static class DocumentSimulation.Builder
extends ObjectBuilderBase
implements CopyableBuilder<DocumentSimulation.Builder,DocumentSimulation>
Builder for
DocumentSimulation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDocumentSimulation.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - API name:_idRequired - API name:_indexRequired - API name:_ingestRequired - API name:_ingestValue used to send the document to a specific primary shard.Required - JSON body for the document.Required - JSON body for the document.API name:_versionversionType(VersionType value) API name:_version_typeMethods 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<DocumentSimulation.Builder,DocumentSimulation> - Returns:
- a new builder instance.
-
id
Required - API name:_id -
index
Required - API name:_index -
ingest
Required - API name:_ingest -
ingest
@Nonnull public final DocumentSimulation.Builder ingest(Function<Ingest.Builder, ObjectBuilder<Ingest>> fn) Required - API name:_ingest -
routing
Value used to send the document to a specific primary shard.API name:
_routing -
source
Required - JSON body for the document.API name:
_sourceAdds all elements of
maptosource. -
source
Required - JSON body for the document.API name:
_sourceAdds an entry to
source. -
version
API name:_version -
versionType
API name:_version_type -
build
Builds aDocumentSimulation.- Specified by:
buildin interfaceObjectBuilder<DocumentSimulation>- Throws:
NullPointerException- if some of the required fields are null.
-