Class SegmentsRequest.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • index

      public SegmentsRequest.Builder index​(@Nullable java.util.List<java.lang.String> value)
      A comma-separated list of index names; use _all or empty string to perform the operation on all indices

      API name: index

    • index

      public SegmentsRequest.Builder index​(java.lang.String... value)
      A comma-separated list of index names; use _all or empty string to perform the operation on all indices

      API name: index

    • addIndex

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

      public SegmentsRequest.Builder allowNoIndices​(@Nullable java.lang.Boolean value)
      Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all string or when no indices have been specified)

      API name: allow_no_indices

    • expandWildcards

      public SegmentsRequest.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 SegmentsRequest.Builder expandWildcards​(ExpandWildcardOptions... value)
      Whether to expand wildcard expression to concrete indices that are open, closed or both.

      API name: expand_wildcards

    • addExpandWildcards

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

      public SegmentsRequest.Builder ignoreUnavailable​(@Nullable java.lang.Boolean value)
      Whether specified concrete indices should be ignored when unavailable (missing or closed)

      API name: ignore_unavailable

    • verbose

      public SegmentsRequest.Builder verbose​(@Nullable java.lang.Boolean value)
      Includes detailed memory usage by Lucene.

      API name: verbose

    • build

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