Class Cpu.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.nodes.Cpu.Builder
- All Implemented Interfaces:
ObjectBuilder<Cpu>
- Enclosing class:
- Cpu
public static class Cpu.Builder extends ObjectBuilderBase implements ObjectBuilder<Cpu>
Builder for
Cpu.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Cpubuild()Builds aCpu.Cpu.BuilderloadAverage(java.lang.String key, java.lang.Double value)API name:load_averageCpu.BuilderloadAverage(java.util.Map<java.lang.String,java.lang.Double> map)API name:load_averageCpu.Builderpercent(java.lang.Integer value)API name:percentCpu.Buildersys(java.lang.String value)API name:sysCpu.BuildersysInMillis(java.lang.Long value)API name:sys_in_millisCpu.Buildertotal(java.lang.String value)API name:totalCpu.BuildertotalInMillis(java.lang.Long value)API name:total_in_millisCpu.Builderuser(java.lang.String value)API name:userCpu.BuilderuserInMillis(java.lang.Long value)API name:user_in_millisMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
percent
API name:percent -
sys
API name:sys -
sysInMillis
API name:sys_in_millis -
total
API name:total -
totalInMillis
API name:total_in_millis -
user
API name:user -
userInMillis
API name:user_in_millis -
loadAverage
API name:load_averageAdds all entries of
maptoloadAverage. -
loadAverage
API name:load_averageAdds an entry to
loadAverage. -
build
Builds aCpu.- Specified by:
buildin interfaceObjectBuilder<Cpu>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-