Class PutGeoipDatabaseRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ingest.PutGeoipDatabaseRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class PutGeoipDatabaseRequest extends RequestBase implements JsonpSerializable
Create or update a GeoIP database configuration.

Refer to the create or update IP geolocation database configuration API.

See Also:
  • Field Details

  • Method Details

    • of

    • id

      public final String id()
      Required - ID of the database configuration to create or update.

      API name: id

    • masterTimeout

      @Nullable public final Time masterTimeout()
      Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

      API name: master_timeout

    • maxmind

      public final 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. At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured.

      API name: maxmind

    • name

      public final String name()
      Required - The provider-assigned name of the IP geolocation database to download.

      API name: name

    • timeout

      @Nullable public final Time timeout()
      Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

      API name: timeout

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupPutGeoipDatabaseRequestDeserializer

      protected static void setupPutGeoipDatabaseRequestDeserializer(ObjectDeserializer<PutGeoipDatabaseRequest.Builder> op)