Class GeoIpProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingest.ProcessorBase.AbstractBuilder<GeoIpProcessor.Builder>
org.opensearch.client.opensearch.ingest.GeoIpProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<GeoIpProcessor.Builder,,GeoIpProcessor> MutableBuilder<GeoIpProcessor.Builder,,GeoIpProcessor> ObjectBuilder<GeoIpProcessor>
- Enclosing class:
GeoIpProcessor
public static class GeoIpProcessor.Builder
extends ProcessorBase.AbstractBuilder<GeoIpProcessor.Builder>
implements CopyableBuilder<GeoIpProcessor.Builder,GeoIpProcessor>
Builder for
GeoIpProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeoIpProcessor.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GeoIpProcessor.BuilderdatabaseFile(String value) The database filename referring to a database the module ships with (GeoLite2-City.mmdb,GeoLite2-Country.mmdb, orGeoLite2-ASN.mmdb) or a custom database in theingest-geoipconfig directory.final GeoIpProcessor.BuilderRequired - API name:fieldfinal GeoIpProcessor.BuilderIftrue, only the first found geoip data will be returned, even if the field contains an array.final GeoIpProcessor.BuilderignoreMissing(Boolean value) Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.final GeoIpProcessor.Builderproperties(String value, String... values) Controls what properties are added to thetarget_fieldbased on the geoip lookup.final GeoIpProcessor.Builderproperties(List<String> list) Controls what properties are added to thetarget_fieldbased on the geoip lookup.protected GeoIpProcessor.Builderself()final GeoIpProcessor.BuildertargetField(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<GeoIpProcessor.Builder,GeoIpProcessor> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classProcessorBase.AbstractBuilder<GeoIpProcessor.Builder>
-
databaseFile
The database filename referring to a database the module ships with (GeoLite2-City.mmdb,GeoLite2-Country.mmdb, orGeoLite2-ASN.mmdb) or a custom database in theingest-geoipconfig directory.API name:
database_file -
field
Required - API name:field -
firstOnly
Iftrue, only the first found geoip data will be returned, even if the field contains an array.API name:
first_only -
ignoreMissing
Iftrueandfielddoes not exist, the processor quietly exits without modifying the document.API name:
ignore_missing -
properties
Controls what properties are added to thetarget_fieldbased on the geoip lookup.API name:
propertiesAdds all elements of
listtoproperties. -
properties
Controls what properties are added to thetarget_fieldbased on the geoip lookup.API name:
propertiesAdds one or more values to
properties. -
targetField
API name:target_field -
build
Builds aGeoIpProcessor.- Specified by:
buildin interfaceObjectBuilder<GeoIpProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-