Class GarbageCollector.Builder
java.lang.Object
co.elastic.clients.elasticsearch.nodes.GarbageCollector.Builder
- All Implemented Interfaces:
ObjectBuilder<GarbageCollector>
- Enclosing class:
- GarbageCollector
public static class GarbageCollector.Builder extends java.lang.Object implements ObjectBuilder<GarbageCollector>
Builder for
GarbageCollector
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GarbageCollector
build()
Builds aGarbageCollector
.GarbageCollector.Builder
collectors(java.lang.String key, java.util.function.Function<GarbageCollectorTotal.Builder,ObjectBuilder<GarbageCollectorTotal>> fn)
Setcollectors(Map)
to a singleton map.GarbageCollector.Builder
collectors(java.util.Map<java.lang.String,GarbageCollectorTotal> value)
API name:collectors
GarbageCollector.Builder
putCollectors(java.lang.String key, GarbageCollectorTotal value)
Add a key/value tocollectors(Map)
, creating the map if needed.GarbageCollector.Builder
putCollectors(java.lang.String key, java.util.function.Function<GarbageCollectorTotal.Builder,ObjectBuilder<GarbageCollectorTotal>> fn)
Add a key/value tocollectors(Map)
, creating the map if needed.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
-
collectors
public GarbageCollector.Builder collectors(java.util.Map<java.lang.String,GarbageCollectorTotal> value)API name:collectors
-
putCollectors
Add a key/value tocollectors(Map)
, creating the map if needed. -
collectors
public GarbageCollector.Builder collectors(java.lang.String key, java.util.function.Function<GarbageCollectorTotal.Builder,ObjectBuilder<GarbageCollectorTotal>> fn)Setcollectors(Map)
to a singleton map. -
putCollectors
public GarbageCollector.Builder putCollectors(java.lang.String key, java.util.function.Function<GarbageCollectorTotal.Builder,ObjectBuilder<GarbageCollectorTotal>> fn)Add a key/value tocollectors(Map)
, creating the map if needed. -
build
Builds aGarbageCollector
.- Specified by:
build
in interfaceObjectBuilder<GarbageCollector>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-