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
-
Constructor Summary
Constructors Constructor Description DeleteSnapshotRequestBuilder(ElasticsearchClient client, DeleteSnapshotAction action)
Constructs delete snapshot request builderDeleteSnapshotRequestBuilder(ElasticsearchClient client, DeleteSnapshotAction action, java.lang.String repository, java.lang.String... snapshots)
Constructs delete snapshot request builder with specified repository and snapshot names -
Method Summary
Modifier and Type Method Description DeleteSnapshotRequestBuilder
setRepository(java.lang.String repository)
Sets the repository nameDeleteSnapshotRequestBuilder
setSnapshots(java.lang.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, java.lang.String repository, java.lang.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
-