Class GeoIpStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GeoIpStatsResponse.Builder>
co.elastic.clients.elasticsearch.ingest.GeoIpStatsResponse.Builder
- All Implemented Interfaces:
- WithJson<GeoIpStatsResponse.Builder>,- ObjectBuilder<GeoIpStatsResponse>
- Enclosing class:
- GeoIpStatsResponse
public static class GeoIpStatsResponse.Builder
extends WithJsonObjectBuilderBase<GeoIpStatsResponse.Builder>
implements ObjectBuilder<GeoIpStatsResponse>
Builder for 
GeoIpStatsResponse.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aGeoIpStatsResponse.nodes(String key, GeoIpNodeDatabases value) Required - Downloaded GeoIP2 databases for each node.Required - Downloaded GeoIP2 databases for each node.nodes(Map<String, GeoIpNodeDatabases> map) Required - Downloaded GeoIP2 databases for each node.protected GeoIpStatsResponse.Builderself()stats(GeoIpDownloadStatistics value) Required - Download statistics for all GeoIP2 databases.Required - Download statistics for all GeoIP2 databases.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
statsRequired - Download statistics for all GeoIP2 databases.API name: stats
- 
statspublic final GeoIpStatsResponse.Builder stats(Function<GeoIpDownloadStatistics.Builder, ObjectBuilder<GeoIpDownloadStatistics>> fn) Required - Download statistics for all GeoIP2 databases.API name: stats
- 
nodesRequired - Downloaded GeoIP2 databases for each node.API name: nodesAdds all entries of maptonodes.
- 
nodesRequired - Downloaded GeoIP2 databases for each node.API name: nodesAdds an entry to nodes.
- 
nodespublic final GeoIpStatsResponse.Builder nodes(String key, Function<GeoIpNodeDatabases.Builder, ObjectBuilder<GeoIpNodeDatabases>> fn) Required - Downloaded GeoIP2 databases for each node.API name: nodesAdds an entry to nodesusing a builder lambda.
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<GeoIpStatsResponse.Builder>
 
- 
buildBuilds aGeoIpStatsResponse.- Specified by:
- buildin interface- ObjectBuilder<GeoIpStatsResponse>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-