java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MemStats.Builder>
co.elastic.clients.elasticsearch.ml.get_memory_stats.MemStats.Builder
All Implemented Interfaces:
WithJson<MemStats.Builder>, ObjectBuilder<MemStats>
Enclosing class:
MemStats

public static class MemStats.Builder
extends WithJsonObjectBuilderBase<MemStats.Builder>
implements ObjectBuilder<MemStats>
Builder for MemStats.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • adjustedTotal

      public final MemStats.Builder adjustedTotal​(@Nullable java.lang.String value)
      If the amount of physical memory has been overridden using the es.total_memory_bytes system property then this reports the overridden value. Otherwise it reports the same value as total.

      API name: adjusted_total

    • adjustedTotalInBytes

      public final MemStats.Builder adjustedTotalInBytes​(int value)
      Required - If the amount of physical memory has been overridden using the es.total_memory_bytes system property then this reports the overridden value in bytes. Otherwise it reports the same value as total_in_bytes.

      API name: adjusted_total_in_bytes

    • total

      public final MemStats.Builder total​(@Nullable java.lang.String value)
      Total amount of physical memory.

      API name: total

    • totalInBytes

      public final MemStats.Builder totalInBytes​(int value)
      Required - Total amount of physical memory in bytes.

      API name: total_in_bytes

    • ml

      public final MemStats.Builder ml​(MemMlStats value)
      Required - Contains statistics about machine learning use of native memory on the node.

      API name: ml

    • ml

      public final MemStats.Builder ml​(java.util.function.Function<MemMlStats.Builder,​ObjectBuilder<MemMlStats>> fn)
      Required - Contains statistics about machine learning use of native memory on the node.

      API name: ml

    • self

      protected MemStats.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<MemStats.Builder>
    • build

      public MemStats build()
      Builds a MemStats.
      Specified by:
      build in interface ObjectBuilder<MemStats>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.