Class IndicesRequest.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • index

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

      API name: index

    • index

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

      API name: index

    • addIndex

      public IndicesRequest.Builder addIndex​(java.lang.String value)
      Add a value to index(List), creating the list if needed.
    • bytes

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

      API name: bytes

    • expandWildcards

      public IndicesRequest.Builder expandWildcards​(@Nullable java.util.List<ExpandWildcardOptions> value)
      Whether to expand wildcard expression to concrete indices that are open, closed or both.

      API name: expand_wildcards

    • expandWildcards

      public IndicesRequest.Builder expandWildcards​(ExpandWildcardOptions... value)
      Whether to expand wildcard expression to concrete indices that are open, closed or both.

      API name: expand_wildcards

    • addExpandWildcards

      public IndicesRequest.Builder addExpandWildcards​(ExpandWildcardOptions value)
      Add a value to expandWildcards(List), creating the list if needed.
    • health

      public IndicesRequest.Builder health​(@Nullable Health value)
      A health status ("green", "yellow", or "red" to filter only indices matching the specified health status

      API name: health

    • includeUnloadedSegments

      public IndicesRequest.Builder includeUnloadedSegments​(@Nullable java.lang.Boolean value)
      If set to true segment stats will include stats for segments that are not currently loaded into memory

      API name: include_unloaded_segments

    • pri

      public IndicesRequest.Builder pri​(@Nullable java.lang.Boolean value)
      Set to true to return stats only for primary shards

      API name: pri

    • build

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