Class DeleteSnapshotRequestBuilder
- java.lang.Object
-
- org.elasticsearch.action.ActionRequestBuilder<Request,Response,RequestBuilder>
-
- org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder<DeleteSnapshotRequest,DeleteSnapshotResponse,DeleteSnapshotRequestBuilder>
-
- org.elasticsearch.action.admin.cluster.snapshots.delete.DeleteSnapshotRequestBuilder
-
public class DeleteSnapshotRequestBuilder extends MasterNodeOperationRequestBuilder<DeleteSnapshotRequest,DeleteSnapshotResponse,DeleteSnapshotRequestBuilder>
Delete snapshot request builder
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
-
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 snapshot)
Constructs delete snapshot request builder with specified repository and snapshot names
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteSnapshotRequestBuilder
setRepository(java.lang.String repository)
Sets the repository nameDeleteSnapshotRequestBuilder
setSnapshot(java.lang.String snapshot)
Sets the snapshot name-
Methods inherited from class org.elasticsearch.action.ActionRequestBuilder
execute, execute, get, get, get, request
-
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout, setMasterNodeTimeout
-
-
-
-
Constructor Detail
-
DeleteSnapshotRequestBuilder
public DeleteSnapshotRequestBuilder(ElasticsearchClient client, DeleteSnapshotAction action)
Constructs delete snapshot request builder
-
DeleteSnapshotRequestBuilder
public DeleteSnapshotRequestBuilder(ElasticsearchClient client, DeleteSnapshotAction action, java.lang.String repository, java.lang.String snapshot)
Constructs delete snapshot request builder with specified repository and snapshot names
-
-
Method Detail
-
setRepository
public DeleteSnapshotRequestBuilder setRepository(java.lang.String repository)
Sets the repository name- Parameters:
repository
- repository name- Returns:
- this builder
-
setSnapshot
public DeleteSnapshotRequestBuilder setSnapshot(java.lang.String snapshot)
Sets the snapshot name- Parameters:
snapshot
- snapshot name- Returns:
- this builder
-
-