Class AllocationRequest.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • bytes

      public final AllocationRequest.Builder bytes​(@Nullable Bytes value)
      The unit in which to display byte values

      API name: bytes

    • nodeId

      public final AllocationRequest.Builder nodeId​(java.util.List<java.lang.String> list)
      A comma-separated list of node IDs or names to limit the returned information

      API name: node_id

      Adds all elements of list to nodeId.

    • nodeId

      public final AllocationRequest.Builder nodeId​(java.lang.String value, java.lang.String... values)
      A comma-separated list of node IDs or names to limit the returned information

      API name: node_id

      Adds one or more values to nodeId.

    • build

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