Class HotThread.Builder

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

public static class HotThread.Builder
extends java.lang.Object
implements ObjectBuilder<HotThread>
Builder for HotThread.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • hosts

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

      public HotThread.Builder hosts​(java.lang.String... value)
      Required - API name: hosts
    • addHosts

      public HotThread.Builder addHosts​(java.lang.String value)
      Add a value to hosts(List), creating the list if needed.
    • nodeId

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

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

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

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

      public HotThread.Builder addThreads​(java.lang.String value)
      Add a value to threads(List), creating the list if needed.
    • 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.