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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIngestDocumentSimulation.error(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.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 - Identifier for the document.API name:
_id -
index
Required - Name of the index that the document would be indexed into if this were not a simulation.API name:
_index -
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
Required -API name:
_version -
executedPipelines
Required - A list of the names of the pipelines executed on this document.API name:
executed_pipelinesAdds all elements of
listtoexecutedPipelines. -
executedPipelines
Required - A list of the names of the pipelines executed on this document.API name:
executed_pipelinesAdds one or more values to
executedPipelines. -
ignoredFields
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 all elements of
listtoignoredFields. -
ignoredFields
public 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. -
error
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 -
error
public 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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IngestDocumentSimulation.Builder>
-
build
Builds aIngestDocumentSimulation.- Specified by:
buildin interfaceObjectBuilder<IngestDocumentSimulation>- Throws:
NullPointerException- if some of the required fields are null.
-