Class SetProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<SetProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.SetProcessor.Builder
- All Implemented Interfaces:
WithJson<SetProcessor.Builder>
,ObjectBuilder<SetProcessor>
- Enclosing class:
- SetProcessor
public static class SetProcessor.Builder
extends ProcessorBase.AbstractBuilder<SetProcessor.Builder>
implements ObjectBuilder<SetProcessor>
Builder for
SetProcessor
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSetProcessor
.final SetProcessor.Builder
The origin field which will be copied tofield
, cannot setvalue
simultaneously.final SetProcessor.Builder
Required - The field to insert, upsert, or update.final SetProcessor.Builder
ignoreEmptyValue
(Boolean value) Iftrue
andvalue
is a template snippet that evaluates tonull
or the empty string, the processor quietly exits without modifying the document.final SetProcessor.Builder
The media type for encodingvalue
.final SetProcessor.Builder
Iftrue
processor will update fields with pre-existing non-null-valued field.protected SetProcessor.Builder
self()
final SetProcessor.Builder
The value to be set for the field.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder
description, if_, ignoreFailure, onFailure, onFailure, onFailure, tag
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
-
copyFrom
The origin field which will be copied tofield
, cannot setvalue
simultaneously. Supported data types areboolean
,number
,array
,object
,string
,date
, etc.API name:
copy_from
-
field
Required - The field to insert, upsert, or update. Supports template snippets.API name:
field
-
ignoreEmptyValue
Iftrue
andvalue
is a template snippet that evaluates tonull
or the empty string, the processor quietly exits without modifying the document.API name:
ignore_empty_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
-
override
Iftrue
processor will update fields with pre-existing non-null-valued field. When set tofalse
, such fields will not be touched.API name:
override
-
value
The value to be set for the field. Supports template snippets. May specify only one ofvalue
orcopy_from
.API name:
value
-
self
- Specified by:
self
in classProcessorBase.AbstractBuilder<SetProcessor.Builder>
-
build
Builds aSetProcessor
.- Specified by:
build
in interfaceObjectBuilder<SetProcessor>
- Throws:
NullPointerException
- if some of the required fields are null.
-