Class IoStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.nodes.IoStats.Builder
- All Implemented Interfaces:
ObjectBuilder<IoStats>
- Enclosing class:
- IoStats
public static class IoStats.Builder extends ObjectBuilderBase implements ObjectBuilder<IoStats>
Builder for
IoStats
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description IoStats
build()
Builds aIoStats
.IoStats.Builder
devices(IoStatDevice value, IoStatDevice... values)
API name:devices
IoStats.Builder
devices(java.util.function.Function<IoStatDevice.Builder,ObjectBuilder<IoStatDevice>> fn)
API name:devices
IoStats.Builder
devices(java.util.List<IoStatDevice> list)
API name:devices
IoStats.Builder
total(IoStatDevice value)
API name:total
IoStats.Builder
total(java.util.function.Function<IoStatDevice.Builder,ObjectBuilder<IoStatDevice>> fn)
API name:total
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
devices
API name:devices
Adds all elements of
list
todevices
. -
devices
API name:devices
Adds one or more values to
devices
. -
devices
public final IoStats.Builder devices(java.util.function.Function<IoStatDevice.Builder,ObjectBuilder<IoStatDevice>> fn)API name:devices
Adds a value to
devices
using a builder lambda. -
total
API name:total
-
total
public final IoStats.Builder total(java.util.function.Function<IoStatDevice.Builder,ObjectBuilder<IoStatDevice>> fn)API name:total
-
build
Builds aIoStats
.- Specified by:
build
in interfaceObjectBuilder<IoStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-