Class DocumentSimulation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DocumentSimulation.Builder>
co.elastic.clients.elasticsearch.ingest.DocumentSimulation.Builder
- All Implemented Interfaces:
WithJson<DocumentSimulation.Builder>,ObjectBuilder<DocumentSimulation>
- Enclosing class:
- DocumentSimulation
public static class DocumentSimulation.Builder
extends WithJsonObjectBuilderBase<DocumentSimulation.Builder>
implements ObjectBuilder<DocumentSimulation>
Builder for
DocumentSimulation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDocumentSimulation.Required - Unique identifier for the document.Required - Name of the index containing the document.Required - API name:_ingestRequired - API name:_ingestAdditional metadataAdditional metadataValue used to send the document to a specific primary shard.protected DocumentSimulation.Builderself()Required - JSON body for the document.Required - JSON body for the document.API name:_versionversionType(VersionType value) API name:_version_typeMethods 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
-
metadata
Additional metadataAdds all entries of
maptometadata. -
metadata
Additional metadataAdds an entry to
metadata. -
id
Required - Unique identifier for the document. This ID must be unique within the_index.API name:
_id -
index
Required - Name of the index containing the document.API name:
_index -
ingest
Required - API name:_ingest -
ingest
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 entries 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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DocumentSimulation.Builder>
-
build
Builds aDocumentSimulation.- Specified by:
buildin interfaceObjectBuilder<DocumentSimulation>- Throws:
NullPointerException- if some of the required fields are null.
-