Class CountRequest.Builder

All Implemented Interfaces:
WithJson<CountRequest.Builder>, ObjectBuilder<CountRequest>
Enclosing class:
CountRequest

public static class CountRequest.Builder extends CatRequestBase.AbstractBuilder<CountRequest.Builder> implements ObjectBuilder<CountRequest>
Builder for CountRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • h

      public final CountRequest.Builder h(List<String> list)
      A comma-separated list of columns names to display. It supports simple wildcards.

      API name: h

      Adds all elements of list to h.

    • h

      public final CountRequest.Builder h(String value, String... values)
      A comma-separated list of columns names to display. It supports simple wildcards.

      API name: h

      Adds one or more values to h.

    • h

      public final CountRequest.Builder h(CatCountColumn value, CatCountColumn... values)
      A comma-separated list of columns names to display. It supports simple wildcards.

      API name: h

      Adds one or more enum values to h.

    • index

      public final CountRequest.Builder index(List<String> list)
      A comma-separated list of data streams, indices, and aliases used to limit the request. It supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all.

      API name: index

      Adds all elements of list to index.

    • index

      public final CountRequest.Builder index(String value, String... values)
      A comma-separated list of data streams, indices, and aliases used to limit the request. It supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all.

      API name: index

      Adds one or more values to index.

    • s

      public final CountRequest.Builder s(List<String> list)
      List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting :asc or :desc as a suffix to the column name.

      API name: s

      Adds all elements of list to s.

    • s

      public final CountRequest.Builder s(String value, String... values)
      List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting :asc or :desc as a suffix to the column name.

      API name: s

      Adds one or more values to s.

    • self

      protected CountRequest.Builder self()
      Specified by:
      self in class CatRequestBase.AbstractBuilder<CountRequest.Builder>
    • build

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