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 SummaryConstructors
- 
Method SummaryModifier 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.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
metadataAdditional metadataAdds all entries of maptometadata.
- 
metadataAdditional metadataAdds an entry to metadata.
- 
idRequired - Unique identifier for the document. This ID must be unique within the_index.API name: _id
- 
indexRequired - Name of the index containing the document.API name: _index
- 
ingestRequired - API name:_ingest
- 
ingestRequired - API name:_ingest
- 
routingValue used to send the document to a specific primary shard.API name: _routing
- 
sourceRequired - JSON body for the document.API name: _sourceAdds all entries of maptosource.
- 
sourceRequired - JSON body for the document.API name: _sourceAdds an entry to source.
- 
versionAPI name:_version
- 
versionTypeAPI name:_version_type
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<DocumentSimulation.Builder>
 
- 
buildBuilds aDocumentSimulation.- Specified by:
- buildin interface- ObjectBuilder<DocumentSimulation>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-