Package com.atlassian.bitbucket.pull
Class PullRequestParticipantSearchRequest.Builder
java.lang.Object
com.atlassian.bitbucket.pull.PullRequestParticipantSearchRequest.Builder
- Enclosing class:
- PullRequestParticipantSearchRequest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Assembles a newPullRequestParticipantSearchRequest
from the provided values.Limits the search to the users whose username, name or email address contain thevalue
fromRepository
(Repository value) Limits the search by the repository the pull requests are coming from.role
(PullRequestRole value) Limits the search by the participants role.toRepository
(Repository value) Limits the search by the repository the pull requests are going to.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Assembles a newPullRequestParticipantSearchRequest
from the provided values.- Returns:
- a new pull request participant search request instance
-
filter
Limits the search to the users whose username, name or email address contain thevalue
- Parameters:
value
- the filter string- Returns:
- the current builder
-
fromRepository
@Nonnull public PullRequestParticipantSearchRequest.Builder fromRepository(@Nullable Repository value) Limits the search by the repository the pull requests are coming from.- Parameters:
value
- the repository to restrict by- Returns:
- the current builder
-
role
Limits the search by the participants role.- Parameters:
value
- the role to restrict by- Returns:
- the current builder
-
toRepository
@Nonnull public PullRequestParticipantSearchRequest.Builder toRepository(@Nullable Repository value) Limits the search by the repository the pull requests are going to.- Parameters:
value
- the repository to restrict by- Returns:
- the current builder
-