Class DeleteSnapshotRequestBuilder

All Implemented Interfaces:
RequestBuilder<DeleteSnapshotRequest,AcknowledgedResponse>

Delete snapshot request builder
  • 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

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

      public DeleteSnapshotRequestBuilder setSnapshots(String... snapshots)
      Sets the snapshot name
      Parameters:
      snapshots - snapshot names
      Returns:
      this builder
    • setWaitForCompletion

      public DeleteSnapshotRequestBuilder setWaitForCompletion(boolean waitForCompletion)
      Sets whether to wait for completion
      Parameters:
      waitForCompletion - true to wait for completion, false otherwise
      Returns:
      this builder