Class GarbageCollector.Builder
java.lang.Object
org.opensearch.client.opensearch.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
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V>
-
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, java.util.function.Function<GarbageCollectorTotal.Builder,ObjectBuilder<GarbageCollectorTotal>> fn)
Add a key/value tocollectors(Map)
, creating the map if needed.GarbageCollector.Builder
putCollectors(java.lang.String key, GarbageCollectorTotal value)
Add a key/value tocollectors(Map)
, creating the map if needed.
-
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.
-