Class CacheStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.CacheStatsBase.AbstractBuilder<CacheStats.Builder>
org.opensearch.client.opensearch.nodes.stats.CacheStats.Builder
- All Implemented Interfaces:
CopyableBuilder<CacheStats.Builder,,CacheStats> MutableBuilder<CacheStats.Builder,,CacheStats> ObjectBuilder<CacheStats>
- Enclosing class:
CacheStats
public static class CacheStats.Builder
extends CacheStatsBase.AbstractBuilder<CacheStats.Builder>
implements CopyableBuilder<CacheStats.Builder,CacheStats>
Builder for
CacheStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCacheStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.final CacheStats.BuilderAPI name:indicesfinal CacheStats.Builderindices(String key, CacheIndicesStats value) API name:indicesfinal CacheStats.Builderindices(Map<String, CacheIndicesStats> map) API name:indicesprotected CacheStats.Builderself()final CacheStats.BuilderAPI name:shardsfinal CacheStats.Buildershards(String key, CacheShardStats value) API name:shardsfinal CacheStats.Buildershards(Map<String, CacheShardStats> map) API name:shardsfinal CacheStats.BuilderAPI name:store_nameMethods inherited from class org.opensearch.client.opensearch.nodes.stats.CacheStatsBase.AbstractBuilder
evictions, hitCount, itemCount, missCount, size, sizeInBytesMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<CacheStats.Builder,CacheStats> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classCacheStatsBase.AbstractBuilder<CacheStats.Builder>
-
indices
API name:indicesAdds all elements of
maptoindices. -
indices
API name:indicesAdds an entry to
indices. -
indices
@Nonnull public final CacheStats.Builder indices(String key, Function<CacheIndicesStats.Builder, ObjectBuilder<CacheIndicesStats>> fn) API name:indicesAdds a value to
indicesusing a builder lambda. -
shards
API name:shardsAdds all elements of
maptoshards. -
shards
API name:shardsAdds an entry to
shards. -
shards
@Nonnull public final CacheStats.Builder shards(String key, Function<CacheShardStats.Builder, ObjectBuilder<CacheShardStats>> fn) API name:shardsAdds a value to
shardsusing a builder lambda. -
storeName
API name:store_name -
build
Builds aCacheStats.- Specified by:
buildin interfaceObjectBuilder<CacheStats>- Throws:
NullPointerException- if some of the required fields are null.
-