Class CountRequest.Builder

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

public static class CountRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<CountRequest>
Builder for CountRequest.
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    CountRequest build()
    Builds a CountRequest.
    CountRequest.Builder index​(java.lang.String value, java.lang.String... values)
    A comma-separated list of index names to limit the returned information
    CountRequest.Builder index​(java.util.List<java.lang.String> list)
    A comma-separated list of index names to limit the returned information

    Methods inherited from class co.elastic.clients.util.ObjectBuilderBase

    _checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll

    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

    • index

      public final CountRequest.Builder index​(java.util.List<java.lang.String> list)
      A comma-separated list of index names to limit the returned information

      API name: index

      Adds all elements of list to index.

    • index

      public final CountRequest.Builder index​(java.lang.String value, java.lang.String... values)
      A comma-separated list of index names to limit the returned information

      API name: index

      Adds one or more values to index.

    • build

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