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.Builder
A map of component template names to substitute component template definition objects.final IngestRequest.Builder
componentTemplateSubstitutions
(String key, Function<ComponentTemplateNode.Builder, ObjectBuilder<ComponentTemplateNode>> fn) A map of component template names to substitute component template definition objects.final IngestRequest.Builder
A map of component template names to substitute component template definition objects.final IngestRequest.Builder
Required - Sample documents to test in the pipeline.final IngestRequest.Builder
Required - Sample documents to test in the pipeline.final IngestRequest.Builder
Required - Sample documents to test in the pipeline.final IngestRequest.Builder
The index to simulate ingesting into.final IngestRequest.Builder
indexTemplateSubstitutions
(String key, IndexTemplate value) A map of index template names to substitute index template definition objects.final IngestRequest.Builder
indexTemplateSubstitutions
(String key, Function<IndexTemplate.Builder, ObjectBuilder<IndexTemplate>> fn) A map of index template names to substitute index template definition objects.final IngestRequest.Builder
A map of index template names to substitute index template definition objects.final IngestRequest.Builder
mappingAddition
(TypeMapping value) API name:mapping_addition
final IngestRequest.Builder
API name:mapping_addition
final IngestRequest.Builder
The pipeline to use as the default pipeline.final IngestRequest.Builder
pipelineSubstitutions
(String key, Pipeline value) Pipelines to test.final IngestRequest.Builder
Pipelines to test.final IngestRequest.Builder
Pipelines to test.protected IngestRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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_substitutions
Adds all entries of
map
tocomponentTemplateSubstitutions
. -
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_substitutions
Adds 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_substitutions
Adds an entry to
componentTemplateSubstitutions
using a builder lambda. -
docs
Required - Sample documents to test in the pipeline.API name:
docs
Adds all elements of
list
todocs
. -
docs
Required - Sample documents to test in the pipeline.API name:
docs
Adds one or more values to
docs
. -
docs
Required - Sample documents to test in the pipeline.API name:
docs
Adds a value to
docs
using 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_substitutions
Adds all entries of
map
toindexTemplateSubstitutions
. -
indexTemplateSubstitutions
A map of index template names to substitute index template definition objects.API name:
index_template_substitutions
Adds 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_substitutions
Adds an entry to
indexTemplateSubstitutions
using 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 thepipeline
request 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_substitutions
Adds all entries of
map
topipelineSubstitutions
. -
pipelineSubstitutions
Pipelines to test. If you don’t specify thepipeline
request 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_substitutions
Adds 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 thepipeline
request 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_substitutions
Adds an entry to
pipelineSubstitutions
using a builder lambda. -
self
- Specified by:
self
in classRequestBase.AbstractBuilder<IngestRequest.Builder>
-
build
Builds aIngestRequest
.- Specified by:
build
in interfaceObjectBuilder<IngestRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-