Class IoStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.IoStats.Builder
- All Implemented Interfaces:
CopyableBuilder<IoStats.Builder,,IoStats> MutableBuilder<IoStats.Builder,,IoStats> ObjectBuilder<IoStats>
- Enclosing class:
IoStats
public static class IoStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IoStats.Builder,IoStats>
Builder for
IoStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIoStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.final IoStats.BuilderArray of disk metrics for each device that is backing an OpenSearch data path.final IoStats.Builderdevices(List<IoStatDevice> list) Array of disk metrics for each device that is backing an OpenSearch data path.final IoStats.Builderdevices(IoStatDevice value, IoStatDevice... values) Array of disk metrics for each device that is backing an OpenSearch data path.final IoStats.BuilderAPI name:totalfinal IoStats.Buildertotal(IoStatDevice value) API name:totalMethods 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<IoStats.Builder,IoStats> - Returns:
- a new builder instance.
-
devices
Array of disk metrics for each device that is backing an OpenSearch data path. These disk metrics are probed periodically and averages between the last probe and the current probe are computed.API name:
devicesAdds all elements of
listtodevices. -
devices
Array of disk metrics for each device that is backing an OpenSearch data path. These disk metrics are probed periodically and averages between the last probe and the current probe are computed.API name:
devicesAdds one or more values to
devices. -
devices
@Nonnull public final IoStats.Builder devices(Function<IoStatDevice.Builder, ObjectBuilder<IoStatDevice>> fn) Array of disk metrics for each device that is backing an OpenSearch data path. These disk metrics are probed periodically and averages between the last probe and the current probe are computed.API name:
devicesAdds a value to
devicesusing a builder lambda. -
total
API name:total -
total
@Nonnull public final IoStats.Builder total(Function<IoStatDevice.Builder, ObjectBuilder<IoStatDevice>> fn) API name:total -
build
Builds aIoStats.- Specified by:
buildin interfaceObjectBuilder<IoStats>- Throws:
NullPointerException- if some of the required fields are null.
-