Package com.atlassian.bitbucket.pull
Class PullRequestCommitSearchRequest.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.pull.PullRequestCommitSearchRequest.Builder
- Enclosing class:
- PullRequestCommitSearchRequest
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Assembles a newPullRequestCommitSearchRequestfrom the provided values.state(PullRequestState value) Limits the search to pull requests in the specifiedstate.states(PullRequestState value, PullRequestState... values) Limits the search to pull requests in any of the specifiedstates.states(Iterable<PullRequestState> values) Limits the search to pull requests in any of the specifiedstates.toRepositoryId(Integer toRepositoryId) Limits the search to pull requeststargetingthe specified repository.Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
Creates a new builder that limits pull requests to those that contain or created (via their merge) the specified commit.- Parameters:
commitId- the commit ID
-
-
Method Details
-
build
Assembles a newPullRequestCommitSearchRequestfrom the provided values.- Returns:
- a new search request based on the provided criteria
-
state
Limits the search to pull requests in the specifiedstate.- Parameters:
value- the state, which is ignored if it isnull- Returns:
this
-
states
@Nonnull public PullRequestCommitSearchRequest.Builder states(@Nullable Iterable<PullRequestState> values) Limits the search to pull requests in any of the specifiedstates.- Parameters:
values- the allowed states, from which anynullentries are ignored- Returns:
this
-
states
@Nonnull public PullRequestCommitSearchRequest.Builder states(@Nullable PullRequestState value, @Nullable PullRequestState... values) Limits the search to pull requests in any of the specifiedstates.- Parameters:
value- the first state, which is ignored if it isnullvalues- additional states, from which anynullentries are ignored- Returns:
this
-
toRepositoryId
@Nonnull public PullRequestCommitSearchRequest.Builder toRepositoryId(@Nullable Integer toRepositoryId) Limits the search to pull requeststargetingthe specified repository.- Parameters:
toRepositoryId- the target repository ID- Returns:
this
-