Class HotThread.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.nodes.hot_threads.HotThread.Builder
All Implemented Interfaces:
ObjectBuilder<HotThread>
Enclosing class:
HotThread

public static class HotThread.Builder
extends ObjectBuilderBase
implements ObjectBuilder<HotThread>
Builder for HotThread.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • hosts

      public final HotThread.Builder hosts​(java.util.List<java.lang.String> list)
      Required - API name: hosts

      Adds all elements of list to hosts.

    • hosts

      public final HotThread.Builder hosts​(java.lang.String value, java.lang.String... values)
      Required - API name: hosts

      Adds one or more values to hosts.

    • nodeId

      public final HotThread.Builder nodeId​(java.lang.String value)
      Required - API name: node_id
    • nodeName

      public final HotThread.Builder nodeName​(java.lang.String value)
      Required - API name: node_name
    • threads

      public final HotThread.Builder threads​(java.util.List<java.lang.String> list)
      Required - API name: threads

      Adds all elements of list to threads.

    • threads

      public final HotThread.Builder threads​(java.lang.String value, java.lang.String... values)
      Required - API name: threads

      Adds one or more values to threads.

    • build

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