Class DeleteSnapshotRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder<DeleteSnapshotRequest,AcknowledgedResponse,DeleteSnapshotRequestBuilder>
org.elasticsearch.action.admin.cluster.snapshots.delete.DeleteSnapshotRequestBuilder
public class DeleteSnapshotRequestBuilder
extends MasterNodeOperationRequestBuilder<DeleteSnapshotRequest,AcknowledgedResponse,DeleteSnapshotRequestBuilder>
Delete snapshot request builder
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteSnapshotRequestBuilder
(ElasticsearchClient client, DeleteSnapshotAction action) Constructs delete snapshot request builderDeleteSnapshotRequestBuilder
(ElasticsearchClient client, DeleteSnapshotAction action, String repository, String... snapshots) Constructs delete snapshot request builder with specified repository and snapshot names -
Method Summary
Modifier and TypeMethodDescriptionsetRepository
(String repository) Sets the repository namesetSnapshots
(String... snapshots) Sets the snapshot nameMethods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout, setMasterNodeTimeout
-
Constructor Details
-
DeleteSnapshotRequestBuilder
Constructs delete snapshot request builder -
DeleteSnapshotRequestBuilder
public DeleteSnapshotRequestBuilder(ElasticsearchClient client, DeleteSnapshotAction action, String repository, String... snapshots) Constructs delete snapshot request builder with specified repository and snapshot names
-
-
Method Details
-
setRepository
Sets the repository name- Parameters:
repository
- repository name- Returns:
- this builder
-
setSnapshots
Sets the snapshot name- Parameters:
snapshots
- snapshot names- Returns:
- this builder
-