Class CloneSnapshotRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder<CloneSnapshotRequest,AcknowledgedResponse,CloneSnapshotRequestBuilder>
org.elasticsearch.action.admin.cluster.snapshots.clone.CloneSnapshotRequestBuilder
public class CloneSnapshotRequestBuilder
extends MasterNodeOperationRequestBuilder<CloneSnapshotRequest,AcknowledgedResponse,CloneSnapshotRequestBuilder>
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ModifierConstructorDescriptionCloneSnapshotRequestBuilder(ElasticsearchClient client, ActionType<AcknowledgedResponse> action, String repository, String source, String target)
protected
CloneSnapshotRequestBuilder(ElasticsearchClient client, ActionType<AcknowledgedResponse> action, CloneSnapshotRequest request)
-
Method Summary
Modifier and TypeMethodDescriptionsetIndices(String... indices)
Sets a list of indices that should be cloned from the source to the target snapshotsetIndicesOptions(IndicesOptions indicesOptions)
Specifies the indices options.Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout, setMasterNodeTimeout
-
Constructor Details
-
CloneSnapshotRequestBuilder
protected CloneSnapshotRequestBuilder(ElasticsearchClient client, ActionType<AcknowledgedResponse> action, CloneSnapshotRequest request) -
CloneSnapshotRequestBuilder
public CloneSnapshotRequestBuilder(ElasticsearchClient client, ActionType<AcknowledgedResponse> action, String repository, String source, String target)
-
-
Method Details
-
setIndices
Sets a list of indices that should be cloned from the source to the target snapshotThe list of indices supports multi-index syntax. For example: "+test*" ,"-test42" will clone all indices with prefix "test" except index "test42".
- Returns:
- this builder
-
setIndicesOptions
Specifies the indices options. Like what type of requested indices to ignore. For example indices that don't exist.- Parameters:
indicesOptions
- the desired behaviour regarding indices options- Returns:
- this request
-