Class NodeUsage.Builder
java.lang.Object
co.elastic.clients.elasticsearch.nodes.usage.NodeUsage.Builder
- All Implemented Interfaces:
ObjectBuilder<NodeUsage>
- Enclosing class:
- NodeUsage
public static class NodeUsage.Builder extends java.lang.Object implements ObjectBuilder<NodeUsage>
Builder for
NodeUsage
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description NodeUsage.Builder
aggregations(java.util.Map<java.lang.String,JsonData> value)
Required - API name:aggregations
NodeUsage
build()
Builds aNodeUsage
.NodeUsage.Builder
putAggregations(java.lang.String key, JsonData value)
Add a key/value toaggregations(Map)
, creating the map if needed.NodeUsage.Builder
putRestActions(java.lang.String key, java.lang.Integer value)
Add a key/value torestActions(Map)
, creating the map if needed.NodeUsage.Builder
restActions(java.util.Map<java.lang.String,java.lang.Integer> value)
Required - API name:rest_actions
NodeUsage.Builder
since(java.lang.String value)
Required - API name:since
NodeUsage.Builder
timestamp(java.lang.String value)
Required - API name:timestamp
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
-
restActions
Required - API name:rest_actions
-
putRestActions
Add a key/value torestActions(Map)
, creating the map if needed. -
since
Required - API name:since
-
timestamp
Required - API name:timestamp
-
aggregations
Required - API name:aggregations
-
putAggregations
Add a key/value toaggregations(Map)
, creating the map if needed. -
build
Builds aNodeUsage
.- Specified by:
build
in interfaceObjectBuilder<NodeUsage>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-