Class CloseRequest.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • index

      public CloseRequest.Builder index​(java.util.List<java.lang.String> value)
      A comma separated list of indices to close

      API name: index

    • index

      public CloseRequest.Builder index​(java.lang.String... value)
      A comma separated list of indices to close

      API name: index

    • addIndex

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

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

      API name: expand_wildcards

    • addExpandWildcards

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

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

      API name: ignore_unavailable

    • masterTimeout

      public CloseRequest.Builder masterTimeout​(@Nullable java.lang.String value)
      Specify timeout for connection to master

      API name: master_timeout

    • timeout

      public CloseRequest.Builder timeout​(@Nullable java.lang.String value)
      Explicit operation timeout

      API name: timeout

    • waitForActiveShards

      public CloseRequest.Builder waitForActiveShards​(@Nullable jakarta.json.JsonValue value)
      Sets the number of active shards to wait for before the operation returns. Set to index-setting to wait according to the index setting index.write.wait_for_active_shards, or all to wait for all shards, or an integer. Defaults to 0.

      API name: wait_for_active_shards

    • build

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