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
Constructors Constructor Description AddIndexBlockRequestBuilder(ElasticsearchClient client, AddIndexBlockAction action, IndexMetadata.APIBlock block, java.lang.String... indices)
-
Method Summary
Modifier and Type Method Description AddIndexBlockRequestBuilder
setIndices(java.lang.String... indices)
Sets the indices to be blockedAddIndexBlockRequestBuilder
setIndicesOptions(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
Methods inherited from class org.elasticsearch.action.ActionRequestBuilder
execute, execute, get, get, get, request
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-