Class InfoRequest.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • nodeId

      public InfoRequest.Builder nodeId​(@Nullable java.util.List<java.lang.String> value)
      Comma-separated list of node IDs or names used to limit returned information.

      API name: node_id

    • nodeId

      public InfoRequest.Builder nodeId​(java.lang.String... value)
      Comma-separated list of node IDs or names used to limit returned information.

      API name: node_id

    • addNodeId

      public InfoRequest.Builder addNodeId​(java.lang.String value)
      Add a value to nodeId(List), creating the list if needed. 4
    • metric

      public InfoRequest.Builder metric​(@Nullable java.util.List<java.lang.String> value)
      Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest.

      API name: metric

    • metric

      public InfoRequest.Builder metric​(java.lang.String... value)
      Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest.

      API name: metric

    • addMetric

      public InfoRequest.Builder addMetric​(java.lang.String value)
      Add a value to metric(List), creating the list if needed. 4
    • flatSettings

      public InfoRequest.Builder flatSettings​(@Nullable java.lang.Boolean value)
      If true, returns settings in flat format.

      API name: flat_settings

    • masterTimeout

      public InfoRequest.Builder masterTimeout​(@Nullable java.lang.String value)
      Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

      API name: master_timeout

    • timeout

      public InfoRequest.Builder timeout​(@Nullable java.lang.String value)
      Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

      API name: timeout

    • build

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