Class ExistsTypeRequest.Builder

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

@Deprecated public static class ExistsTypeRequest.Builder extends RequestBase.AbstractBuilder<ExistsTypeRequest.Builder> implements ObjectBuilder<ExistsTypeRequest>
Deprecated.
Builder for ExistsTypeRequest.
  • Constructor Details

    • Builder

      public Builder()
      Deprecated.
  • Method Details

    • allowNoIndices

      public final ExistsTypeRequest.Builder allowNoIndices(@Nullable Boolean value)
      Deprecated.
      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 final ExistsTypeRequest.Builder expandWildcards(List<ExpandWildcard> list)
      Deprecated.
      Whether to expand wildcard expression to concrete indices that are open, closed or both.

      API name: expand_wildcards

      Adds all elements of list to expandWildcards.

    • expandWildcards

      public final ExistsTypeRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values)
      Deprecated.
      Whether to expand wildcard expression to concrete indices that are open, closed or both.

      API name: expand_wildcards

      Adds one or more values to expandWildcards.

    • ignoreUnavailable

      public final ExistsTypeRequest.Builder ignoreUnavailable(@Nullable Boolean value)
      Deprecated.
      Whether specified concrete indices should be ignored when unavailable (missing or closed)

      API name: ignore_unavailable

    • index

      public final ExistsTypeRequest.Builder index(List<String> list)
      Deprecated.
      Required - A comma-separated list of index names; use _all to check the types across all indices

      API name: index

      Adds all elements of list to index.

    • index

      public final ExistsTypeRequest.Builder index(String value, String... values)
      Deprecated.
      Required - A comma-separated list of index names; use _all to check the types across all indices

      API name: index

      Adds one or more values to index.

    • local

      public final ExistsTypeRequest.Builder local(@Nullable Boolean value)
      Deprecated.
      Return local information, do not retrieve the state from master node (default: false)

      API name: local

    • type

      public final ExistsTypeRequest.Builder type(List<String> list)
      Deprecated.
      Required - A comma-separated list of document types to check

      API name: type

      Adds all elements of list to type.

    • type

      public final ExistsTypeRequest.Builder type(String value, String... values)
      Deprecated.
      Required - A comma-separated list of document types to check

      API name: type

      Adds one or more values to type.

    • self

      protected ExistsTypeRequest.Builder self()
      Deprecated.
      Specified by:
      self in class RequestBase.AbstractBuilder<ExistsTypeRequest.Builder>
    • build

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