Class BitbucketServerPullRequest
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.server.client.pullrequest.BitbucketServerPullRequest
-
- All Implemented Interfaces:
BitbucketPullRequest
public class BitbucketServerPullRequest extends Object implements BitbucketPullRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitbucketServerPullRequest.Author
static class
BitbucketServerPullRequest.User
-
Constructor Summary
Constructors Constructor Description BitbucketServerPullRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthorEmail()
Not set in Cloud.String
getAuthorIdentifier()
Username or account identifier of the author.String
getAuthorLogin()
Despite the name, this is a display name or nickname for the author, not a stable username for login.BitbucketServerPullRequestDestination
getDestination()
String
getId()
String
getLink()
Map<String,BitbucketHref>
getLinks()
List<BitbucketReviewer>
getReviewers()
BitbucketServerPullRequestSource
getSource()
String
getTitle()
Boolean
isCanMerge()
void
setAuthor(BitbucketServerPullRequest.Author author)
void
setCanMerge(Boolean canMerge)
void
setDestination(BitbucketServerPullRequestDestination destination)
void
setId(String id)
void
setLinks(Map<String,BitbucketHref> links)
void
setReviewers(List<BitbucketReviewer> reviewers)
void
setSource(BitbucketServerPullRequestSource source)
-
-
-
Method Detail
-
getSource
public BitbucketServerPullRequestSource getSource()
- Specified by:
getSource
in interfaceBitbucketPullRequest
- Returns:
- the source repository of this pull request
-
setSource
public void setSource(BitbucketServerPullRequestSource source)
-
getDestination
public BitbucketServerPullRequestDestination getDestination()
- Specified by:
getDestination
in interfaceBitbucketPullRequest
- Returns:
- the target repository of this pull request
-
setDestination
public void setDestination(BitbucketServerPullRequestDestination destination)
-
getId
public String getId()
- Specified by:
getId
in interfaceBitbucketPullRequest
- Returns:
- pull request ID as provided by Bitbucket. It can be used for notifications.
-
setId
public void setId(String id)
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfaceBitbucketPullRequest
-
getLink
public String getLink()
- Specified by:
getLink
in interfaceBitbucketPullRequest
-
getAuthorLogin
public String getAuthorLogin()
Description copied from interface:BitbucketPullRequest
Despite the name, this is a display name or nickname for the author, not a stable username for login.- Specified by:
getAuthorLogin
in interfaceBitbucketPullRequest
-
getReviewers
public List<BitbucketReviewer> getReviewers()
- Specified by:
getReviewers
in interfaceBitbucketPullRequest
-
setReviewers
public void setReviewers(List<BitbucketReviewer> reviewers)
-
getAuthorEmail
public String getAuthorEmail()
Description copied from interface:BitbucketPullRequest
Not set in Cloud.- Specified by:
getAuthorEmail
in interfaceBitbucketPullRequest
-
getAuthorIdentifier
public String getAuthorIdentifier()
Description copied from interface:BitbucketPullRequest
Username or account identifier of the author.- Specified by:
getAuthorIdentifier
in interfaceBitbucketPullRequest
-
setAuthor
public void setAuthor(BitbucketServerPullRequest.Author author)
-
isCanMerge
@CheckForNull public Boolean isCanMerge()
-
setCanMerge
public void setCanMerge(Boolean canMerge)
-
getLinks
public Map<String,BitbucketHref> getLinks()
-
setLinks
public void setLinks(Map<String,BitbucketHref> links)
-
-