Module org.elasticsearch.server
Class DeleteSnapshotRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<DeleteSnapshotRequest,AcknowledgedResponse>
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
ConstructorsConstructorDescriptionDeleteSnapshotRequestBuilder(ElasticsearchClient client, TimeValue masterNodeTimeout, 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 namesetWaitForCompletion(boolean waitForCompletion) Sets whether to wait for completionMethods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout
-
Constructor Details
-
DeleteSnapshotRequestBuilder
public DeleteSnapshotRequestBuilder(ElasticsearchClient client, TimeValue masterNodeTimeout, 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
-
setWaitForCompletion
Sets whether to wait for completion- Parameters:
waitForCompletion- true to wait for completion, false otherwise- Returns:
- this builder
-