public class

PullRequestDeleteRequest

extends AbstractPullRequestRequest
java.lang.Object
   ↳ com.atlassian.bitbucket.pull.AbstractPullRequestRequest
     ↳ com.atlassian.bitbucket.pull.PullRequestDeleteRequest

Class Overview

Request object used for deleting a pull request.

Summary

Nested Classes
class PullRequestDeleteRequest.Builder  
Public Methods
int getVersion()
Retrieves the expected version for the pull request.
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.pull.AbstractPullRequestRequest
From class java.lang.Object

Public Methods

public int getVersion ()

Retrieves the expected version for the pull request. If the pull request's actual version does not match, a PullRequestOutOfDateException will be thrown to indicate that the delete was requested on stale data.

Returns
  • the pull request version to delete