Class Cpu.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Cpu.Builder>
co.elastic.clients.elasticsearch.nodes.Cpu.Builder
- All Implemented Interfaces:
WithJson<Cpu.Builder>
,ObjectBuilder<Cpu>
- Enclosing class:
- Cpu
public static class Cpu.Builder
extends WithJsonObjectBuilderBase<Cpu.Builder>
implements ObjectBuilder<Cpu>
Builder for
Cpu
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aCpu
.final Cpu.Builder
loadAverage
(String key, Double value) API name:load_average
final Cpu.Builder
loadAverage
(Map<String, Double> map) API name:load_average
final Cpu.Builder
API name:percent
protected Cpu.Builder
self()
final Cpu.Builder
API name:sys
final Cpu.Builder
sys
(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:sys
final Cpu.Builder
sysInMillis
(Long value) API name:sys_in_millis
final Cpu.Builder
API name:total
final Cpu.Builder
API name:total
final Cpu.Builder
totalInMillis
(Long value) API name:total_in_millis
final Cpu.Builder
API name:user
final Cpu.Builder
API name:user
final Cpu.Builder
userInMillis
(Long value) API name:user_in_millis
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
percent
API name:percent
-
sys
API name:sys
-
sys
API name:sys
-
sysInMillis
API name:sys_in_millis
-
total
API name:total
-
total
API name:total
-
totalInMillis
API name:total_in_millis
-
user
API name:user
-
user
API name:user
-
userInMillis
API name:user_in_millis
-
loadAverage
API name:load_average
Adds all entries of
map
toloadAverage
. -
loadAverage
API name:load_average
Adds an entry to
loadAverage
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Cpu.Builder>
-
build
Builds aCpu
.- Specified by:
build
in interfaceObjectBuilder<Cpu>
- Throws:
NullPointerException
- if some of the required fields are null.
-