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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSetProcessor.final SetProcessor.BuilderThe origin field which will be copied tofield, cannot setvaluesimultaneously.final SetProcessor.BuilderRequired - The field to insert, upsert, or update.final SetProcessor.BuilderignoreEmptyValue(Boolean value) Iftrueandvalueis a template snippet that evaluates tonullor the empty string, the processor quietly exits without modifying the document.final SetProcessor.BuilderThe media type for encodingvalue.final SetProcessor.BuilderIftrueprocessor will update fields with pre-existing non-null-valued field.protected SetProcessor.Builderself()final SetProcessor.BuilderThe value to be set for the field.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
-
copyFrom
The origin field which will be copied tofield, cannot setvaluesimultaneously. 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
Iftrueandvalueis a template snippet that evaluates tonullor 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
Iftrueprocessor 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 ofvalueorcopy_from.API name:
value -
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<SetProcessor.Builder>
-
build
Builds aSetProcessor.- Specified by:
buildin interfaceObjectBuilder<SetProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-