Class PipelineConfig.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PipelineConfig.Builder>
co.elastic.clients.elasticsearch.ingest.PipelineConfig.Builder
- All Implemented Interfaces:
WithJson<PipelineConfig.Builder>
,ObjectBuilder<PipelineConfig>
- Enclosing class:
- PipelineConfig
public static class PipelineConfig.Builder
extends WithJsonObjectBuilderBase<PipelineConfig.Builder>
implements ObjectBuilder<PipelineConfig>
Builder for
PipelineConfig
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPipelineConfig
.final PipelineConfig.Builder
description
(String value) Description of the ingest pipeline.final PipelineConfig.Builder
processors
(Processor value, Processor... values) Required - Processors used to perform transformations on documents before indexing.final PipelineConfig.Builder
processors
(ProcessorVariant value, ProcessorVariant... values) Required - Processors used to perform transformations on documents before indexing.final PipelineConfig.Builder
Required - Processors used to perform transformations on documents before indexing.final PipelineConfig.Builder
processors
(List<Processor> list) Required - Processors used to perform transformations on documents before indexing.protected PipelineConfig.Builder
self()
final PipelineConfig.Builder
Version number used by external systems to track ingest pipelines.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
-
description
Description of the ingest pipeline.API name:
description
-
version
Version number used by external systems to track ingest pipelines.API name:
version
-
processors
Required - Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified.API name:
processors
Adds all elements of
list
toprocessors
. -
processors
Required - Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified.API name:
processors
Adds one or more values to
processors
. -
processors
Required - Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified.API name:
processors
Adds one or more values to
processors
. -
processors
public final PipelineConfig.Builder processors(Function<Processor.Builder, ObjectBuilder<Processor>> fn) Required - Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified.API name:
processors
Adds a value to
processors
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<PipelineConfig.Builder>
-
build
Builds aPipelineConfig
.- Specified by:
build
in interfaceObjectBuilder<PipelineConfig>
- Throws:
NullPointerException
- if some of the required fields are null.
-