Class FieldsUsageBody.AbstractBuilder<BuilderT extends FieldsUsageBody.AbstractBuilder<BuilderT>>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.indices.field_usage_stats.FieldsUsageBody.AbstractBuilder<BuilderT>
- All Implemented Interfaces:
WithJson<BuilderT>
- Direct Known Subclasses:
FieldUsageStatsResponse.Builder
- Enclosing class:
- FieldsUsageBody
protected abstract static class FieldsUsageBody.AbstractBuilder<BuilderT extends FieldsUsageBody.AbstractBuilder<BuilderT>> extends WithJsonObjectBuilderBase<BuilderT>
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBuilder()
-
Method Summary
Modifier and Type Method Description protected abstract BuilderT
self()
BuilderT
shards(ShardStatistics value)
Required - API name:_shards
BuilderT
shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)
Required - API name:_shards
BuilderT
stats(java.lang.String key, UsageStatsIndex value)
Per index statisticsBuilderT
stats(java.lang.String key, java.util.function.Function<UsageStatsIndex.Builder,ObjectBuilder<UsageStatsIndex>> fn)
Per index statisticsBuilderT
stats(java.util.Map<java.lang.String,UsageStatsIndex> map)
Per index statisticsMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()
-
-
Method Details
-
stats
Per index statisticsAdds all entries of
map
tostats
. -
stats
Per index statisticsAdds an entry to
stats
. -
stats
public final BuilderT stats(java.lang.String key, java.util.function.Function<UsageStatsIndex.Builder,ObjectBuilder<UsageStatsIndex>> fn)Per index statisticsAdds an entry to
stats
using a builder lambda. -
shards
Required - API name:_shards
-
shards
public final BuilderT shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:_shards
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<BuilderT extends FieldsUsageBody.AbstractBuilder<BuilderT>>
-