Class DeleteSnapshotRequestBuilder

java.lang.Object

public class DeleteSnapshotRequestBuilder
extends MasterNodeOperationRequestBuilder<DeleteSnapshotRequest,​AcknowledgedResponse,​DeleteSnapshotRequestBuilder>
Delete snapshot request builder
  • Constructor Details

    • 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... snapshots)
      Constructs delete snapshot request builder with specified repository and snapshot names
  • Method Details

    • setRepository

      public DeleteSnapshotRequestBuilder setRepository​(java.lang.String repository)
      Sets the repository name
      Parameters:
      repository - repository name
      Returns:
      this builder
    • setSnapshots

      public DeleteSnapshotRequestBuilder setSnapshots​(java.lang.String... snapshots)
      Sets the snapshot name
      Parameters:
      snapshots - snapshot names
      Returns:
      this builder