Class CacheStatsResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ltr.CacheStatsResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<CacheStatsResponse.Builder,,CacheStatsResponse> MutableBuilder<CacheStatsResponse.Builder,,CacheStatsResponse> ObjectBuilder<CacheStatsResponse>
- Enclosing class:
CacheStatsResponse
public static class CacheStatsResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<CacheStatsResponse.Builder,CacheStatsResponse>
Builder for
CacheStatsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAPI name:allall(CacheAllStats value) API name:allbuild()Builds aCacheStatsResponse.clusterName(String value) API name:cluster_namecopy()Create a new builderCopyableBuilderthat is a copy of this one.API name:_nodesnodes(NodeStatistics value) API name:_nodesCache statistics by store.Cache statistics by store.Methods 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<CacheStatsResponse.Builder,CacheStatsResponse> - Returns:
- a new builder instance.
-
all
API name:all -
all
@Nonnull public final CacheStatsResponse.Builder all(Function<CacheAllStats.Builder, ObjectBuilder<CacheAllStats>> fn) API name:all -
clusterName
API name:cluster_name -
nodes
API name:_nodes -
nodes
@Nonnull public final CacheStatsResponse.Builder nodes(Function<NodeStatistics.Builder, ObjectBuilder<NodeStatistics>> fn) API name:_nodes -
stores
Cache statistics by store.API name:
storesAdds all elements of
maptostores. -
stores
Cache statistics by store.API name:
storesAdds an entry to
stores. -
build
Builds aCacheStatsResponse.- Specified by:
buildin interfaceObjectBuilder<CacheStatsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-