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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutGeoipDatabaseRequest>
Json deserializer forPutGeoipDatabaseRequest
static final Endpoint<PutGeoipDatabaseRequest,
PutGeoipDatabaseResponse, ErrorResponse> Endpoint "ingest.put_geoip_database
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
id()
Required - ID of the database configuration to create or update.final Time
Period to wait for a connection to the master node.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.final String
name()
Required - The provider-assigned name of the IP geolocation database to download.static PutGeoipDatabaseRequest
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
final Time
timeout()
Period to wait for a response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutGeoipDatabaseRequest
-
_ENDPOINT
public static final Endpoint<PutGeoipDatabaseRequest,PutGeoipDatabaseResponse, _ENDPOINTErrorResponse> Endpoint "ingest.put_geoip_database
".
-
-
Method Details
-
of
public static PutGeoipDatabaseRequest of(Function<PutGeoipDatabaseRequest.Builder, ObjectBuilder<PutGeoipDatabaseRequest>> fn) -
id
Required - ID of the database configuration to create or update.API name:
id
-
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
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
Required - The provider-assigned name of the IP geolocation database to download.API name:
name
-
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
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPutGeoipDatabaseRequestDeserializer
protected static void setupPutGeoipDatabaseRequestDeserializer(ObjectDeserializer<PutGeoipDatabaseRequest.Builder> op)
-