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 SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutGeoipDatabaseRequest>Json deserializer forPutGeoipDatabaseRequeststatic final Endpoint<PutGeoipDatabaseRequest,PutGeoipDatabaseResponse, ErrorResponse> Endpoint "ingest.put_geoip_database".
- 
Method SummaryModifier and TypeMethodDescriptionfinal Stringid()Required - ID of the database configuration to create or update.final TimePeriod to wait for a connection to the master node.final Maxmindmaxmind()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 Stringname()Required - The provider-assigned name of the IP geolocation database to download.static PutGeoipDatabaseRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Timetimeout()Period to wait for a response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forPutGeoipDatabaseRequest
- 
_ENDPOINTpublic static final Endpoint<PutGeoipDatabaseRequest,PutGeoipDatabaseResponse, _ENDPOINTErrorResponse> Endpoint "ingest.put_geoip_database".
 
- 
- 
Method Details- 
ofpublic static PutGeoipDatabaseRequest of(Function<PutGeoipDatabaseRequest.Builder, ObjectBuilder<PutGeoipDatabaseRequest>> fn) 
- 
idRequired - ID of the database configuration to create or update.API name: id
- 
masterTimeoutPeriod 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
- 
maxmindRequired - 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
- 
nameRequired - The provider-assigned name of the IP geolocation database to download.API name: name
- 
timeoutPeriod to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name: timeout
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupPutGeoipDatabaseRequestDeserializerprotected static void setupPutGeoipDatabaseRequestDeserializer(ObjectDeserializer<PutGeoipDatabaseRequest.Builder> op) 
 
-