Module org.elasticsearch.server
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
- All Implemented Interfaces:
RequestBuilder<DeleteSnapshotRequest,
AcknowledgedResponse>
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
ConstructorDescriptionDeleteSnapshotRequestBuilder
(ElasticsearchClient client, 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
public DeleteSnapshotRequestBuilder(ElasticsearchClient client, 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
-