Class ExistsTypeRequest.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • index

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

      API name: index

    • index

      public ExistsTypeRequest.Builder index​(java.lang.String... value)
      Required - A comma-separated list of index names; use _all to check the types across all indices

      API name: index

    • addIndex

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

      public ExistsTypeRequest.Builder type​(java.util.List<java.lang.String> value)
      Required - A comma-separated list of document types to check

      API name: type

    • type

      public ExistsTypeRequest.Builder type​(java.lang.String... value)
      Required - A comma-separated list of document types to check

      API name: type

    • addType

      public ExistsTypeRequest.Builder addType​(java.lang.String value)
      Add a value to type(List), creating the list if needed.
    • allowNoIndices

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

      API name: expand_wildcards

    • addExpandWildcards

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

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

      API name: ignore_unavailable

    • local

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

      API name: local

    • build

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