Class UsageRequest.Builder

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

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

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    UsageRequest.Builder addMetric​(java.lang.String value)
    Add a value to metric(List), creating the list if needed.
    UsageRequest.Builder addNodeId​(java.lang.String value)
    Add a value to nodeId(List), creating the list if needed.
    UsageRequest build()
    Builds a UsageRequest.
    UsageRequest.Builder metric​(java.lang.String... value)
    Limit the information returned to the specified metrics
    UsageRequest.Builder metric​(java.util.List<java.lang.String> value)
    Limit the information returned to the specified metrics
    UsageRequest.Builder nodeId​(java.lang.String... value)
    A comma-separated list of node IDs or names to limit the returned information; use _local to return information from the node you're connecting to, leave empty to get information from all nodes
    UsageRequest.Builder nodeId​(java.util.List<java.lang.String> value)
    A comma-separated list of node IDs or names to limit the returned information; use _local to return information from the node you're connecting to, leave empty to get information from all nodes
    UsageRequest.Builder timeout​(java.lang.String value)
    Explicit operation timeout

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • nodeId

      public UsageRequest.Builder nodeId​(@Nullable java.util.List<java.lang.String> value)
      A comma-separated list of node IDs or names to limit the returned information; use _local to return information from the node you're connecting to, leave empty to get information from all nodes

      API name: node_id

    • nodeId

      public UsageRequest.Builder nodeId​(java.lang.String... value)
      A comma-separated list of node IDs or names to limit the returned information; use _local to return information from the node you're connecting to, leave empty to get information from all nodes

      API name: node_id

    • addNodeId

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

      public UsageRequest.Builder metric​(@Nullable java.util.List<java.lang.String> value)
      Limit the information returned to the specified metrics

      API name: metric

    • metric

      public UsageRequest.Builder metric​(java.lang.String... value)
      Limit the information returned to the specified metrics

      API name: metric

    • addMetric

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

      public UsageRequest.Builder timeout​(@Nullable java.lang.String value)
      Explicit operation timeout

      API name: timeout

    • build

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