Package com.atlassian.bitbucket.pull
Class PullRequestParticipantRequest.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.pull.PullRequestParticipantRequest.Builder
- Enclosing class:
- PullRequestParticipantRequest
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Assembles a newPullRequestParticipantRequest
from the provided values.role
(PullRequestRole value) Limits the pull requests to search for by a specifiedpull request role
for theuser
.Limits the pull requests to search for by the participant statusstatuses
(Iterable<PullRequestParticipantStatus> values) Limits the pull requests to search for by the participant statusMethods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
-
-
Method Details
-
build
Assembles a newPullRequestParticipantRequest
from the provided values.- Returns:
- a new pull request participant search request instance
-
role
Limits the pull requests to search for by a specifiedpull request role
for theuser
.- Parameters:
value
- thepull request role
- Returns:
- the current builder
-
status
@Nonnull public PullRequestParticipantRequest.Builder status(@Nullable PullRequestParticipantStatus value) Limits the pull requests to search for by the participant status- Parameters:
value
- the status to search for- Returns:
- the current builder
- Since:
- 4.2
-
statuses
@Nonnull public PullRequestParticipantRequest.Builder statuses(@Nonnull Iterable<PullRequestParticipantStatus> values) Limits the pull requests to search for by the participant status- Parameters:
values
- the statuses to search for- Returns:
- the current builder
- Since:
- 4.2
-