Class Jvm.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.nodes.Jvm.Builder
-
- All Implemented Interfaces:
ObjectBuilder<Jvm>
- Enclosing class:
- Jvm
public static class Jvm.Builder extends ObjectBuilderBase implements ObjectBuilder<Jvm>
Builder forJvm
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Jvm.Builder
bufferPools(java.lang.String key, java.util.function.Function<NodeBufferPool.Builder,ObjectBuilder<NodeBufferPool>> fn)
Required - API name:buffer_pools
Jvm.Builder
bufferPools(java.lang.String key, NodeBufferPool value)
Required - API name:buffer_pools
Jvm.Builder
bufferPools(java.util.Map<java.lang.String,NodeBufferPool> map)
Required - API name:buffer_pools
Jvm
build()
Builds aJvm
.Jvm.Builder
classes(java.util.function.Function<JvmClasses.Builder,ObjectBuilder<JvmClasses>> fn)
Required - API name:classes
Jvm.Builder
classes(JvmClasses value)
Required - API name:classes
Jvm.Builder
gc(java.util.function.Function<GarbageCollector.Builder,ObjectBuilder<GarbageCollector>> fn)
Required - API name:gc
Jvm.Builder
gc(GarbageCollector value)
Required - API name:gc
Jvm.Builder
mem(java.util.function.Function<MemoryStats.Builder,ObjectBuilder<MemoryStats>> fn)
Required - API name:mem
Jvm.Builder
mem(MemoryStats value)
Required - API name:mem
Jvm.Builder
threads(java.util.function.Function<JvmThreads.Builder,ObjectBuilder<JvmThreads>> fn)
Required - API name:threads
Jvm.Builder
threads(JvmThreads value)
Required - API name:threads
Jvm.Builder
timestamp(long value)
Required - API name:timestamp
Jvm.Builder
uptimeInMillis(long value)
Required - API name:uptime_in_millis
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
bufferPools
public final Jvm.Builder bufferPools(java.util.Map<java.lang.String,NodeBufferPool> map)
Required - API name:buffer_pools
Adds all entries of
map
tobufferPools
.
-
bufferPools
public final Jvm.Builder bufferPools(java.lang.String key, NodeBufferPool value)
Required - API name:buffer_pools
Adds an entry to
bufferPools
.
-
bufferPools
public final Jvm.Builder bufferPools(java.lang.String key, java.util.function.Function<NodeBufferPool.Builder,ObjectBuilder<NodeBufferPool>> fn)
Required - API name:buffer_pools
Adds an entry to
bufferPools
using a builder lambda.
-
classes
public final Jvm.Builder classes(JvmClasses value)
Required - API name:classes
-
classes
public final Jvm.Builder classes(java.util.function.Function<JvmClasses.Builder,ObjectBuilder<JvmClasses>> fn)
Required - API name:classes
-
gc
public final Jvm.Builder gc(GarbageCollector value)
Required - API name:gc
-
gc
public final Jvm.Builder gc(java.util.function.Function<GarbageCollector.Builder,ObjectBuilder<GarbageCollector>> fn)
Required - API name:gc
-
mem
public final Jvm.Builder mem(MemoryStats value)
Required - API name:mem
-
mem
public final Jvm.Builder mem(java.util.function.Function<MemoryStats.Builder,ObjectBuilder<MemoryStats>> fn)
Required - API name:mem
-
threads
public final Jvm.Builder threads(JvmThreads value)
Required - API name:threads
-
threads
public final Jvm.Builder threads(java.util.function.Function<JvmThreads.Builder,ObjectBuilder<JvmThreads>> fn)
Required - API name:threads
-
timestamp
public final Jvm.Builder timestamp(long value)
Required - API name:timestamp
-
uptimeInMillis
public final Jvm.Builder uptimeInMillis(long value)
Required - API name:uptime_in_millis
-
build
public Jvm build()
Builds aJvm
.- Specified by:
build
in interfaceObjectBuilder<Jvm>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-