Class AddIndexBlockRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder<Request,Response,RequestBuilder>
org.elasticsearch.action.support.master.AcknowledgedRequestBuilder<AddIndexBlockRequest,AddIndexBlockResponse,AddIndexBlockRequestBuilder>
org.elasticsearch.action.admin.indices.readonly.AddIndexBlockRequestBuilder
public class AddIndexBlockRequestBuilder extends AcknowledgedRequestBuilder<AddIndexBlockRequest,AddIndexBlockResponse,AddIndexBlockRequestBuilder>
Builder for add index block request
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AddIndexBlockRequestBuilder(ElasticsearchClient client, AddIndexBlockAction action, IndexMetadata.APIBlock block, java.lang.String... indices) -
Method Summary
Modifier and Type Method Description AddIndexBlockRequestBuildersetIndices(java.lang.String... indices)Sets the indices to be blockedAddIndexBlockRequestBuildersetIndicesOptions(IndicesOptions indicesOptions)Specifies what type of requested indices to ignore and wildcard indices expressions For example indices that don't exist.Methods inherited from class org.elasticsearch.action.support.master.AcknowledgedRequestBuilder
setTimeout, setTimeoutMethods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout, setMasterNodeTimeout
-
Constructor Details
-
AddIndexBlockRequestBuilder
public AddIndexBlockRequestBuilder(ElasticsearchClient client, AddIndexBlockAction action, IndexMetadata.APIBlock block, java.lang.String... indices)
-
-
Method Details
-
setIndices
Sets the indices to be blocked- Parameters:
indices- the indices to be blocked- Returns:
- the request itself
-
setIndicesOptions
Specifies what type of requested indices to ignore and wildcard indices expressions For example indices that don't exist.- Parameters:
indicesOptions- the desired behaviour regarding indices to ignore and indices wildcard expressions- Returns:
- the request itself
-