Class NodeIndicesStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.stats.IndexStatsBase.AbstractBuilder<NodeIndicesStats.Builder>
org.opensearch.client.opensearch.nodes.stats.NodeIndicesStats.Builder
- All Implemented Interfaces:
CopyableBuilder<NodeIndicesStats.Builder,,NodeIndicesStats> MutableBuilder<NodeIndicesStats.Builder,,NodeIndicesStats> ObjectBuilder<NodeIndicesStats>
- Enclosing class:
NodeIndicesStats
public static class NodeIndicesStats.Builder
extends IndexStatsBase.AbstractBuilder<NodeIndicesStats.Builder>
implements CopyableBuilder<NodeIndicesStats.Builder,NodeIndicesStats>
Builder for
NodeIndicesStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aNodeIndicesStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.final NodeIndicesStats.Builderindices(String key, Function<IndexStats.Builder, ObjectBuilder<IndexStats>> fn) API name:indicesfinal NodeIndicesStats.Builderindices(String key, IndexStats value) API name:indicesfinal NodeIndicesStats.Builderindices(Map<String, IndexStats> map) API name:indicesprotected NodeIndicesStats.Builderself()final NodeIndicesStats.Buildershards(String key, List<NodeIndexShardStats> value) API name:shardsfinal NodeIndicesStats.Buildershards(Map<String, List<NodeIndexShardStats>> map) API name:shardsMethods inherited from class org.opensearch.client.opensearch.indices.stats.IndexStatsBase.AbstractBuilder
completion, completion, docs, docs, fielddata, fielddata, flush, flush, get, get, indexing, indexing, merges, merges, queryCache, queryCache, recovery, recovery, refresh, refresh, requestCache, requestCache, search, search, segments, segments, store, store, translog, translog, warmer, warmerMethods 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<NodeIndicesStats.Builder,NodeIndicesStats> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classIndexStatsBase.AbstractBuilder<NodeIndicesStats.Builder>
-
indices
API name:indicesAdds all elements of
maptoindices. -
indices
API name:indicesAdds an entry to
indices. -
indices
@Nonnull public final NodeIndicesStats.Builder indices(String key, Function<IndexStats.Builder, ObjectBuilder<IndexStats>> 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. -
build
Builds aNodeIndicesStats.- Specified by:
buildin interfaceObjectBuilder<NodeIndicesStats>- Throws:
NullPointerException- if some of the required fields are null.
-