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
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionAddIndexBlockRequestBuilder(ElasticsearchClient client, AddIndexBlockAction action, IndexMetadata.APIBlock block, String... indices)
-
Method Summary
Modifier and TypeMethodDescriptionsetIndices(String... indices)
Sets the indices to be blockedsetIndicesOptions(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, setTimeout
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout, setMasterNodeTimeout
-
Constructor Details
-
AddIndexBlockRequestBuilder
public AddIndexBlockRequestBuilder(ElasticsearchClient client, AddIndexBlockAction action, IndexMetadata.APIBlock block, 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
-