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 protectedAbstractBuilder() -
Method Summary
Modifier and Type Method Description protected abstract BuilderTself()BuilderTshards(ShardStatistics value)Required - API name:_shardsBuilderTshards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:_shardsBuilderTstats(java.lang.String key, UsageStatsIndex value)Per index statisticsBuilderTstats(java.lang.String key, java.util.function.Function<UsageStatsIndex.Builder,ObjectBuilder<UsageStatsIndex>> fn)Per index statisticsBuilderTstats(java.util.Map<java.lang.String,UsageStatsIndex> map)Per index statisticsMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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
maptostats. -
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
statsusing 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:
selfin classWithJsonObjectBuilderBase<BuilderT extends FieldsUsageBody.AbstractBuilder<BuilderT>>
-