Class IngestDocumentSimulation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IngestDocumentSimulation.Builder>
co.elastic.clients.elasticsearch.simulate.ingest.IngestDocumentSimulation.Builder
- All Implemented Interfaces:
- WithJson<IngestDocumentSimulation.Builder>,- ObjectBuilder<IngestDocumentSimulation>
- Enclosing class:
- IngestDocumentSimulation
public static class IngestDocumentSimulation.Builder
extends WithJsonObjectBuilderBase<IngestDocumentSimulation.Builder>
implements ObjectBuilder<IngestDocumentSimulation>
Builder for 
IngestDocumentSimulation.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aIngestDocumentSimulation.effectiveMapping(TypeMapping value) API name:effective_mappingAPI name:effective_mappingerror(ErrorCause value) Any error resulting from simulatng ingest on this doc.Any error resulting from simulatng ingest on this doc.executedPipelines(String value, String... values) Required - A list of the names of the pipelines executed on this document.executedPipelines(List<String> list) Required - A list of the names of the pipelines executed on this document.Required - Identifier for the document.ignoredFields(List<Map<String, String>> list) A list of the fields that would be ignored at the indexing step.A list of the fields that would be ignored at the indexing step.Required - Name of the index that the document would be indexed into if this were not a simulation.Additional metadataAdditional metadataprotected IngestDocumentSimulation.Builderself()Required - JSON body for the document.Required - JSON body for the document.version(long value) Required -Methods 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 - Identifier for the document.API name: _id
- 
indexRequired - Name of the index that the document would be indexed into if this were not a simulation.API name: _index
- 
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.
- 
versionRequired -API name: _version
- 
executedPipelinesRequired - A list of the names of the pipelines executed on this document.API name: executed_pipelinesAdds all elements of listtoexecutedPipelines.
- 
executedPipelinesRequired - A list of the names of the pipelines executed on this document.API name: executed_pipelinesAdds one or more values to executedPipelines.
- 
ignoredFieldsA list of the fields that would be ignored at the indexing step. For example, a field whose value is larger than the allowed limit would make it through all of the pipelines, but would not be indexed into Elasticsearch.API name: ignored_fieldsAdds all elements of listtoignoredFields.
- 
ignoredFieldspublic final IngestDocumentSimulation.Builder ignoredFields(Map<String, String> value, Map<String, String>... values) A list of the fields that would be ignored at the indexing step. For example, a field whose value is larger than the allowed limit would make it through all of the pipelines, but would not be indexed into Elasticsearch.API name: ignored_fieldsAdds one or more values to ignoredFields.
- 
errorAny error resulting from simulatng ingest on this doc. This can be an error generated by executing a processor, or a mapping validation error when simulating indexing the resulting doc.API name: error
- 
errorpublic final IngestDocumentSimulation.Builder error(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) Any error resulting from simulatng ingest on this doc. This can be an error generated by executing a processor, or a mapping validation error when simulating indexing the resulting doc.API name: error
- 
effectiveMappingAPI name:effective_mapping
- 
effectiveMappingpublic final IngestDocumentSimulation.Builder effectiveMapping(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) API name:effective_mapping
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<IngestDocumentSimulation.Builder>
 
- 
buildBuilds aIngestDocumentSimulation.- Specified by:
- buildin interface- ObjectBuilder<IngestDocumentSimulation>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-