Class IngestRequest.Builder
- All Implemented Interfaces:
WithJson<IngestRequest.Builder>,ObjectBuilder<IngestRequest>
- Enclosing class:
- IngestRequest
IngestRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier 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 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.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
componentTemplateSubstitutions
public 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. -
componentTemplateSubstitutions
public 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. -
componentTemplateSubstitutions
public 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. -
docs
Required - Sample documents to test in the pipeline.API name:
docsAdds all elements of
listtodocs. -
docs
Required - Sample documents to test in the pipeline.API name:
docsAdds one or more values to
docs. -
docs
Required - Sample documents to test in the pipeline.API name:
docsAdds a value to
docsusing a builder lambda. -
index
The 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 -
indexTemplateSubstitutions
A map of index template names to substitute index template definition objects.API name:
index_template_substitutionsAdds all entries of
maptoindexTemplateSubstitutions. -
indexTemplateSubstitutions
A map of index template names to substitute index template definition objects.API name:
index_template_substitutionsAdds an entry to
indexTemplateSubstitutions. -
indexTemplateSubstitutions
public 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. -
mappingAddition
API name:mapping_addition -
mappingAddition
public final IngestRequest.Builder mappingAddition(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) API name:mapping_addition -
pipeline
The pipeline to use as the default pipeline. This value can be used to override the default pipeline of the index.API name:
pipeline -
pipelineSubstitutions
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 all entries of
maptopipelineSubstitutions. -
pipelineSubstitutions
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
pipelineSubstitutions. -
pipelineSubstitutions
public 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 classRequestBase.AbstractBuilder<IngestRequest.Builder>
-
build
Builds aIngestRequest.- Specified by:
buildin interfaceObjectBuilder<IngestRequest>- Throws:
NullPointerException- if some of the required fields are null.
-