Class IngestRequest.Builder
- All Implemented Interfaces:
- WithJson<IngestRequest.Builder>,- ObjectBuilder<IngestRequest>
- Enclosing class:
- IngestRequest
IngestRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aIngestRequest.final IngestRequest.BuilderA map of component template names to substitute component template definition objects.final IngestRequest.BuildercomponentTemplateSubstitutions(String key, Function<ComponentTemplateNode.Builder, ObjectBuilder<ComponentTemplateNode>> fn) A map of component template names to substitute component template definition objects.final IngestRequest.BuilderA map of component template names to substitute component template definition objects.final IngestRequest.BuilderRequired - Sample documents to test in the pipeline.final IngestRequest.BuilderRequired - Sample documents to test in the pipeline.final IngestRequest.BuilderRequired - Sample documents to test in the pipeline.final IngestRequest.BuilderThe index to simulate ingesting into.final IngestRequest.BuilderindexTemplateSubstitutions(String key, IndexTemplate value) A map of index template names to substitute index template definition objects.final IngestRequest.BuilderindexTemplateSubstitutions(String key, Function<IndexTemplate.Builder, ObjectBuilder<IndexTemplate>> fn) A map of index template names to substitute index template definition objects.final IngestRequest.BuilderA map of index template names to substitute index template definition objects.final IngestRequest.BuildermappingAddition(TypeMapping value) API name:mapping_additionfinal IngestRequest.BuilderAPI name:mapping_additionfinal IngestRequest.BuilderThe mapping merge type if mapping overrides are being provided in mapping_addition.final IngestRequest.BuilderThe pipeline to use as the default pipeline.final IngestRequest.BuilderpipelineSubstitutions(String key, Pipeline value) Pipelines to test.final IngestRequest.BuilderPipelines to test.final IngestRequest.BuilderPipelines to test.protected IngestRequest.Builderself()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- 
componentTemplateSubstitutionspublic final IngestRequest.Builder componentTemplateSubstitutions(Map<String, ComponentTemplateNode> map) A map of component template names to substitute component template definition objects.API name: component_template_substitutionsAdds all entries of maptocomponentTemplateSubstitutions.
- 
componentTemplateSubstitutionspublic final IngestRequest.Builder componentTemplateSubstitutions(String key, ComponentTemplateNode value) A map of component template names to substitute component template definition objects.API name: component_template_substitutionsAdds an entry to componentTemplateSubstitutions.
- 
componentTemplateSubstitutionspublic final IngestRequest.Builder componentTemplateSubstitutions(String key, Function<ComponentTemplateNode.Builder, ObjectBuilder<ComponentTemplateNode>> fn) A map of component template names to substitute component template definition objects.API name: component_template_substitutionsAdds an entry to componentTemplateSubstitutionsusing a builder lambda.
- 
docsRequired - Sample documents to test in the pipeline.API name: docsAdds all elements of listtodocs.
- 
docsRequired - Sample documents to test in the pipeline.API name: docsAdds one or more values to docs.
- 
docsRequired - Sample documents to test in the pipeline.API name: docsAdds a value to docsusing a builder lambda.
- 
indexThe index to simulate ingesting into. This value can be overridden by specifying an index on each document. If you specify this parameter in the request path, it is used for any documents that do not explicitly specify an index argument.API name: index
- 
indexTemplateSubstitutionsA map of index template names to substitute index template definition objects.API name: index_template_substitutionsAdds all entries of maptoindexTemplateSubstitutions.
- 
indexTemplateSubstitutionsA map of index template names to substitute index template definition objects.API name: index_template_substitutionsAdds an entry to indexTemplateSubstitutions.
- 
indexTemplateSubstitutionspublic final IngestRequest.Builder indexTemplateSubstitutions(String key, Function<IndexTemplate.Builder, ObjectBuilder<IndexTemplate>> fn) A map of index template names to substitute index template definition objects.API name: index_template_substitutionsAdds an entry to indexTemplateSubstitutionsusing a builder lambda.
- 
mappingAdditionAPI name:mapping_addition
- 
mappingAdditionpublic final IngestRequest.Builder mappingAddition(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) API name:mapping_addition
- 
mergeTypeThe mapping merge type if mapping overrides are being provided in mapping_addition. The allowed values are one of index or template. The index option merges mappings the way they would be merged into an existing index. The template option merges mappings the way they would be merged into a template.API name: merge_type
- 
pipelineThe pipeline to use as the default pipeline. This value can be used to override the default pipeline of the index.API name: pipeline
- 
pipelineSubstitutionsPipelines to test. If you don’t specify thepipelinerequest path parameter, this parameter is required. If you specify both this and the request path parameter, the API only uses the request path parameter.API name: pipeline_substitutionsAdds all entries of maptopipelineSubstitutions.
- 
pipelineSubstitutionsPipelines to test. If you don’t specify thepipelinerequest path parameter, this parameter is required. If you specify both this and the request path parameter, the API only uses the request path parameter.API name: pipeline_substitutionsAdds an entry to pipelineSubstitutions.
- 
pipelineSubstitutionspublic final IngestRequest.Builder pipelineSubstitutions(String key, Function<Pipeline.Builder, ObjectBuilder<Pipeline>> fn) Pipelines to test. If you don’t specify thepipelinerequest path parameter, this parameter is required. If you specify both this and the request path parameter, the API only uses the request path parameter.API name: pipeline_substitutionsAdds an entry to pipelineSubstitutionsusing a builder lambda.
- 
self- Specified by:
- selfin class- RequestBase.AbstractBuilder<IngestRequest.Builder>
 
- 
buildBuilds aIngestRequest.- Specified by:
- buildin interface- ObjectBuilder<IngestRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-