Class FreezeRequest.Builder

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

public static class FreezeRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<FreezeRequest>
Builder for FreezeRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • allowNoIndices

      public final FreezeRequest.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 final FreezeRequest.Builder expandWildcards​(java.util.List<ExpandWildcard> list)
      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 FreezeRequest.Builder expandWildcards​(ExpandWildcard value, ExpandWildcard... values)
      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 FreezeRequest.Builder ignoreUnavailable​(@Nullable java.lang.Boolean value)
      Whether specified concrete indices should be ignored when unavailable (missing or closed)

      API name: ignore_unavailable

    • index

      public final FreezeRequest.Builder index​(java.lang.String value)
      Required - The name of the index to freeze

      API name: index

    • masterTimeout

      public final FreezeRequest.Builder masterTimeout​(@Nullable Time value)
      Specify timeout for connection to master

      API name: master_timeout

    • masterTimeout

      public final FreezeRequest.Builder masterTimeout​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      Specify timeout for connection to master

      API name: master_timeout

    • timeout

      public final FreezeRequest.Builder timeout​(@Nullable Time value)
      Explicit operation timeout

      API name: timeout

    • timeout

      public final FreezeRequest.Builder timeout​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      Explicit operation timeout

      API name: timeout

    • waitForActiveShards

      public final FreezeRequest.Builder waitForActiveShards​(@Nullable WaitForActiveShards value)
      Sets the number of active shards to wait for before the operation returns.

      API name: wait_for_active_shards

    • waitForActiveShards

      public final FreezeRequest.Builder waitForActiveShards​(java.util.function.Function<WaitForActiveShards.Builder,​ObjectBuilder<WaitForActiveShards>> fn)
      Sets the number of active shards to wait for before the operation returns.

      API name: wait_for_active_shards

    • build

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