Class UserAgentProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<UserAgentProcessor.Builder>
org.opensearch.client.opensearch.ingest.UserAgentProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<UserAgentProcessor.Builder,,UserAgentProcessor> MutableBuilder<UserAgentProcessor.Builder,,UserAgentProcessor> ObjectBuilder<UserAgentProcessor>
- Enclosing class:
UserAgentProcessor
public static class UserAgentProcessor.Builder
extends ProcessorBase.AbstractBuilder<UserAgentProcessor.Builder>
implements CopyableBuilder<UserAgentProcessor.Builder,UserAgentProcessor>
Builder for
UserAgentProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aUserAgentProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - API name:fieldignoreMissing(Boolean value) Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.options(List<UserAgentProperty> list) API name:optionsoptions(UserAgentProperty value, UserAgentProperty... values) API name:optionsThe 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) API name:target_fieldMethods inherited from class org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder
description, if_, ignoreFailure, onFailure, onFailure, onFailure, tagMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<UserAgentProcessor.Builder,UserAgentProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<UserAgentProcessor.Builder>
-
field
Required - API name:field -
ignoreMissing
Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name:
ignore_missing -
options
API name:optionsAdds all elements of
listtooptions. -
options
@Nonnull public final UserAgentProcessor.Builder options(UserAgentProperty value, UserAgentProperty... values) API name:optionsAdds one or more values to
options. -
regexFile
The 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 OpenSearch. If not specified, ingest-user-agent will use theregexes.yamlfrom uap-core it ships with.API name:
regex_file -
targetField
API name:target_field -
build
Builds aUserAgentProcessor.- Specified by:
buildin interfaceObjectBuilder<UserAgentProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-