Class OperatingSystem.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.nodes.OperatingSystem.Builder
-
- All Implemented Interfaces:
ObjectBuilder<OperatingSystem>
- Enclosing class:
- OperatingSystem
public static class OperatingSystem.Builder extends ObjectBuilderBase implements ObjectBuilder<OperatingSystem>
Builder forOperatingSystem
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatingSystem
build()
Builds aOperatingSystem
.OperatingSystem.Builder
cpu(java.util.function.Function<Cpu.Builder,ObjectBuilder<Cpu>> fn)
Required - API name:cpu
OperatingSystem.Builder
cpu(Cpu value)
Required - API name:cpu
OperatingSystem.Builder
mem(java.util.function.Function<ExtendedMemoryStats.Builder,ObjectBuilder<ExtendedMemoryStats>> fn)
Required - API name:mem
OperatingSystem.Builder
mem(ExtendedMemoryStats value)
Required - API name:mem
OperatingSystem.Builder
swap(java.util.function.Function<MemoryStats.Builder,ObjectBuilder<MemoryStats>> fn)
Required - API name:swap
OperatingSystem.Builder
swap(MemoryStats value)
Required - API name:swap
OperatingSystem.Builder
timestamp(long value)
Required - API name:timestamp
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
cpu
public final OperatingSystem.Builder cpu(Cpu value)
Required - API name:cpu
-
cpu
public final OperatingSystem.Builder cpu(java.util.function.Function<Cpu.Builder,ObjectBuilder<Cpu>> fn)
Required - API name:cpu
-
mem
public final OperatingSystem.Builder mem(ExtendedMemoryStats value)
Required - API name:mem
-
mem
public final OperatingSystem.Builder mem(java.util.function.Function<ExtendedMemoryStats.Builder,ObjectBuilder<ExtendedMemoryStats>> fn)
Required - API name:mem
-
swap
public final OperatingSystem.Builder swap(MemoryStats value)
Required - API name:swap
-
swap
public final OperatingSystem.Builder swap(java.util.function.Function<MemoryStats.Builder,ObjectBuilder<MemoryStats>> fn)
Required - API name:swap
-
timestamp
public final OperatingSystem.Builder timestamp(long value)
Required - API name:timestamp
-
build
public OperatingSystem build()
Builds aOperatingSystem
.- Specified by:
build
in interfaceObjectBuilder<OperatingSystem>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-