Class UserAgentProcessor.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilder<UserAgentProcessor.Builder>
co.elastic.clients.elasticsearch.ingest.UserAgentProcessor.Builder
- All Implemented Interfaces:
- WithJson<UserAgentProcessor.Builder>,- ObjectBuilder<UserAgentProcessor>
- Enclosing class:
- UserAgentProcessor
public static class UserAgentProcessor.Builder
extends ProcessorBase.AbstractBuilder<UserAgentProcessor.Builder>
implements ObjectBuilder<UserAgentProcessor>
Builder for 
UserAgentProcessor.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aUserAgentProcessor.extractDeviceType(Boolean value) Extracts device type from the user agent string on a best-effort basis.Required - The field containing the user agent string.ignoreMissing(Boolean value) Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.properties(UserAgentProperty value, UserAgentProperty... values) Controls what properties are added totarget_field.properties(List<UserAgentProperty> list) Controls what properties are added totarget_field.The name of the file in theconfig/ingest-user-agentdirectory containing the regular expressions for parsing the user agent string.protected UserAgentProcessor.Builderself()targetField(String value) The field that will be filled with the user agent details.Methods inherited from class co.elastic.clients.elasticsearch.ingest.ProcessorBase.AbstractBuilderdescription, if_, if_, ignoreFailure, onFailure, onFailure, onFailure, onFailure, tagMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
fieldRequired - The field containing the user agent string.API name: field
- 
ignoreMissingIftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name: ignore_missing
- 
regexFileThe name of the file in theconfig/ingest-user-agentdirectory containing the regular expressions for parsing the user agent string. Both the directory and the file have to be created before starting Elasticsearch. If not specified, ingest-user-agent will use theregexes.yamlfrom uap-core it ships with.API name: regex_file
- 
targetFieldThe field that will be filled with the user agent details.API name: target_field
- 
propertiesControls what properties are added totarget_field.API name: propertiesAdds all elements of listtoproperties.
- 
propertiespublic final UserAgentProcessor.Builder properties(UserAgentProperty value, UserAgentProperty... values) Controls what properties are added totarget_field.API name: propertiesAdds one or more values to properties.
- 
extractDeviceTypeExtracts device type from the user agent string on a best-effort basis.API name: extract_device_type
- 
self- Specified by:
- selfin class- ProcessorBase.AbstractBuilder<UserAgentProcessor.Builder>
 
- 
buildBuilds aUserAgentProcessor.- Specified by:
- buildin interface- ObjectBuilder<UserAgentProcessor>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-