Class AppendProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<AppendProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.AppendProcessor.Builder
- All Implemented Interfaces:
WithJson<AppendProcessor.Builder>,ObjectBuilder<AppendProcessor>
- Enclosing class:
- AppendProcessor
public static class AppendProcessor.Builder
extends ProcessorBase.AbstractBuilder<AppendProcessor.Builder>
implements ObjectBuilder<AppendProcessor>
Builder for
AppendProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal AppendProcessor.BuilderallowDuplicates(Boolean value) Iffalse, the processor does not append values already present in the field.build()Builds aAppendProcessor.final AppendProcessor.BuilderThe origin field which will be appended tofield, cannot setvaluesimultaneously.final AppendProcessor.BuilderRequired - The field to be appended to.final AppendProcessor.BuilderignoreEmptyValues(Boolean value) Iftrue, the processor will skip empty values from the source (e.g.final AppendProcessor.BuilderThe media type for encodingvalue.protected AppendProcessor.Builderself()final AppendProcessor.BuilderThe value to be appended.final AppendProcessor.BuilderThe value to be appended.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tagMethods 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
-
field
Required - The field to be appended to. Supports template snippets.API name:
field -
value
The value to be appended. Supports template snippets. May specify only one ofvalueorcopy_from.API name:
valueAdds all elements of
listtovalue. -
value
The value to be appended. Supports template snippets. May specify only one ofvalueorcopy_from.API name:
valueAdds one or more values to
value. -
mediaType
The media type for encodingvalue. Applies only when value is a template snippet. Must be one ofapplication/json,text/plain, orapplication/x-www-form-urlencoded.API name:
media_type -
copyFrom
The origin field which will be appended tofield, cannot setvaluesimultaneously.API name:
copy_from -
allowDuplicates
Iffalse, the processor does not append values already present in the field.API name:
allow_duplicates -
ignoreEmptyValues
Iftrue, the processor will skip empty values from the source (e.g. empty strings, and null values), rather than appending them to the field.API name:
ignore_empty_values -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<AppendProcessor.Builder>
-
build
Builds aAppendProcessor.- Specified by:
buildin interfaceObjectBuilder<AppendProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-