Class DatabaseConfiguration.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DatabaseConfiguration.Builder>
co.elastic.clients.elasticsearch.ingest.DatabaseConfiguration.Builder
- All Implemented Interfaces:
WithJson<DatabaseConfiguration.Builder>
,ObjectBuilder<DatabaseConfiguration>
- Enclosing class:
- DatabaseConfiguration
public static class DatabaseConfiguration.Builder
extends WithJsonObjectBuilderBase<DatabaseConfiguration.Builder>
implements ObjectBuilder<DatabaseConfiguration>
Builder for
DatabaseConfiguration
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aDatabaseConfiguration
.Required - The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading.Required - The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading.Required - The provider-assigned name of the IP geolocation database to download.protected DatabaseConfiguration.Builder
self()
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
-
name
Required - The provider-assigned name of the IP geolocation database to download.API name:
name
-
maxmind
Required - The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading. At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured.API name:
maxmind
-
maxmind
public final DatabaseConfiguration.Builder maxmind(Function<Maxmind.Builder, ObjectBuilder<Maxmind>> fn) Required - The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading. At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured.API name:
maxmind
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DatabaseConfiguration.Builder>
-
build
Builds aDatabaseConfiguration
.- Specified by:
build
in interfaceObjectBuilder<DatabaseConfiguration>
- Throws:
NullPointerException
- if some of the required fields are null.
-