Class GeoIpStatsResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ingest.GeoIpStatsResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GeoIpStatsResponse>
- Enclosing class:
- GeoIpStatsResponse
public static class GeoIpStatsResponse.Builder extends java.lang.Object implements ObjectBuilder<GeoIpStatsResponse>
Builder for
GeoIpStatsResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GeoIpStatsResponsebuild()Builds aGeoIpStatsResponse.GeoIpStatsResponse.Buildernodes(java.lang.String key, java.util.function.Function<GeoIpNodeDatabases.Builder,ObjectBuilder<GeoIpNodeDatabases>> fn)Setnodes(Map)to a singleton map.GeoIpStatsResponse.Buildernodes(java.util.Map<java.lang.String,GeoIpNodeDatabases> value)Downloaded GeoIP2 databases for each node.GeoIpStatsResponse.BuilderputNodes(java.lang.String key, GeoIpNodeDatabases value)Add a key/value tonodes(Map), creating the map if needed.GeoIpStatsResponse.BuilderputNodes(java.lang.String key, java.util.function.Function<GeoIpNodeDatabases.Builder,ObjectBuilder<GeoIpNodeDatabases>> fn)Add a key/value tonodes(Map), creating the map if needed.GeoIpStatsResponse.Builderstats(GeoIpDownloadStatistics value)Download statistics for all GeoIP2 databases.GeoIpStatsResponse.Builderstats(java.util.function.Function<GeoIpDownloadStatistics.Builder,ObjectBuilder<GeoIpDownloadStatistics>> fn)Download statistics for all GeoIP2 databases.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stats
Download statistics for all GeoIP2 databases.API name:
stats -
stats
public GeoIpStatsResponse.Builder stats(java.util.function.Function<GeoIpDownloadStatistics.Builder,ObjectBuilder<GeoIpDownloadStatistics>> fn)Download statistics for all GeoIP2 databases.API name:
stats -
nodes
Downloaded GeoIP2 databases for each node.API name:
nodes -
putNodes
Add a key/value tonodes(Map), creating the map if needed. -
nodes
public GeoIpStatsResponse.Builder nodes(java.lang.String key, java.util.function.Function<GeoIpNodeDatabases.Builder,ObjectBuilder<GeoIpNodeDatabases>> fn)Setnodes(Map)to a singleton map. -
putNodes
public GeoIpStatsResponse.Builder putNodes(java.lang.String key, java.util.function.Function<GeoIpNodeDatabases.Builder,ObjectBuilder<GeoIpNodeDatabases>> fn)Add a key/value tonodes(Map), creating the map if needed. -
build
Builds aGeoIpStatsResponse.- Specified by:
buildin interfaceObjectBuilder<GeoIpStatsResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-