Class DatabaseConfiguration
java.lang.Object
co.elastic.clients.elasticsearch.ingest.DatabaseConfiguration
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DatabaseConfiguration>
Json deserializer forDatabaseConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionfinal Maxmind
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.final String
name()
Required - The provider-assigned name of the IP geolocation database to download.static DatabaseConfiguration
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDatabaseConfiguration
-
-
Method Details
-
of
public static DatabaseConfiguration of(Function<DatabaseConfiguration.Builder, ObjectBuilder<DatabaseConfiguration>> fn) -
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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDatabaseConfigurationDeserializer
protected static void setupDatabaseConfigurationDeserializer(ObjectDeserializer<DatabaseConfiguration.Builder> op)
-