Class NodeStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ltr.NodeStats.Builder
- All Implemented Interfaces:
CopyableBuilder<NodeStats.Builder,,NodeStats> MutableBuilder<NodeStats.Builder,,NodeStats> ObjectBuilder<NodeStats>
- Enclosing class:
NodeStats
public static class NodeStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<NodeStats.Builder,NodeStats>
Builder for
NodeStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aNodeStats.final NodeStats.BuilderAPI name:cachefinal NodeStats.Buildercache(CacheStats value) API name:cachecopy()Create a new builderCopyableBuilderthat is a copy of this one.final NodeStats.BuilderrequestErrorCount(Integer value) API name:request_error_countfinal NodeStats.BuilderrequestTotalCount(Integer value) API name:request_total_countMethods 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<NodeStats.Builder,NodeStats> - Returns:
- a new builder instance.
-
cache
API name:cache -
cache
@Nonnull public final NodeStats.Builder cache(Function<CacheStats.Builder, ObjectBuilder<CacheStats>> fn) API name:cache -
requestErrorCount
API name:request_error_count -
requestTotalCount
API name:request_total_count -
build
Builds aNodeStats.- Specified by:
buildin interfaceObjectBuilder<NodeStats>- Throws:
NullPointerException- if some of the required fields are null.
-