Class CloseIndexRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • allowNoIndices

        public final CloseIndexRequest.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 CloseIndexRequest.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 CloseIndexRequest.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 CloseIndexRequest.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 CloseIndexRequest.Builder index​(java.util.List<java.lang.String> list)
        Required - A comma separated list of indices to close

        API name: index

        Adds all elements of list to index.

      • index

        public final CloseIndexRequest.Builder index​(java.lang.String value,
                                                     java.lang.String... values)
        Required - A comma separated list of indices to close

        API name: index

        Adds one or more values to index.

      • masterTimeout

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

        API name: master_timeout

      • clusterManagerTimeout

        public final CloseIndexRequest.Builder clusterManagerTimeout​(@Nullable
                                                                     Time value)
        Specify timeout for connection to cluster-manager

        API name: cluster_manager_timeout

      • waitForActiveShards

        public final CloseIndexRequest.Builder waitForActiveShards​(@Nullable
                                                                   WaitForActiveShards 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

      • waitForActiveShards

        public final CloseIndexRequest.Builder waitForActiveShards​(java.util.function.Function<WaitForActiveShards.Builder,​ObjectBuilder<WaitForActiveShards>> fn)
        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