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 Summary
Constructors -
Method Summary
Modifier 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.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stats
Required - Download statistics for all GeoIP2 databases.API name:
stats -
stats
public final GeoIpStatsResponse.Builder stats(Function<GeoIpDownloadStatistics.Builder, ObjectBuilder<GeoIpDownloadStatistics>> fn) Required - Download statistics for all GeoIP2 databases.API name:
stats -
nodes
Required - Downloaded GeoIP2 databases for each node.API name:
nodesAdds all entries of
maptonodes. -
nodes
Required - Downloaded GeoIP2 databases for each node.API name:
nodesAdds an entry to
nodes. -
nodes
public 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 classWithJsonObjectBuilderBase<GeoIpStatsResponse.Builder>
-
build
Builds aGeoIpStatsResponse.- Specified by:
buildin interfaceObjectBuilder<GeoIpStatsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-