public class

PullRequestCommitSearchRequest

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.pull.PullRequestCommitSearchRequest

Class Overview

Request for searching for pull requests associated with a commit.

Summary

Nested Classes
class PullRequestCommitSearchRequest.Builder  
Public Methods
@Nonnull String getCommitId()
Limits the search to pull requests that contain or created (in the case of a rebase/squash merge) the specified commit ID.
@Nonnull Set<PullRequestState> getStates()
When set, limits the search to pull requests in any of the specified states.
@Nullable Integer getToRepositoryId()
When set, limits the search to pull requests which target the specified repository.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

@Nonnull public String getCommitId ()

Limits the search to pull requests that contain or created (in the case of a rebase/squash merge) the specified commit ID.

Returns
  • the commit ID

@Nonnull public Set<PullRequestState> getStates ()

When set, limits the search to pull requests in any of the specified states.

Returns
  • a set containing zero or more states to filter by

@Nullable public Integer getToRepositoryId ()

When set, limits the search to pull requests which target the specified repository.

Returns
  • the target repository ID