public static class PullRequestCommitSearchRequest.Builder extends BuilderSupport
NOT_BLANK
Constructor and Description |
---|
Builder(String commitId)
Creates a new builder that limits pull requests to those that contain or created (via their merge) the
specified commit.
|
Modifier and Type | Method and Description |
---|---|
PullRequestCommitSearchRequest |
build()
Assembles a new
PullRequestCommitSearchRequest from the provided values. |
PullRequestCommitSearchRequest.Builder |
state(PullRequestState value)
Limits the search to pull requests in the specified
state . |
PullRequestCommitSearchRequest.Builder |
states(Iterable<PullRequestState> values)
Limits the search to pull requests in any of the specified
states . |
PullRequestCommitSearchRequest.Builder |
states(PullRequestState value,
PullRequestState... values)
Limits the search to pull requests in any of the specified
states . |
PullRequestCommitSearchRequest.Builder |
toRepositoryId(Integer toRepositoryId)
Limits the search to pull requests
targeting the specified repository. |
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
@Nonnull public PullRequestCommitSearchRequest build()
PullRequestCommitSearchRequest
from the provided values.@Nonnull public PullRequestCommitSearchRequest.Builder state(@Nullable PullRequestState value)
state
.value
- the state, which is ignored if it is null
this
@Nonnull public PullRequestCommitSearchRequest.Builder states(@Nullable Iterable<PullRequestState> values)
states
.values
- the allowed states, from which any null
entries are ignoredthis
@Nonnull public PullRequestCommitSearchRequest.Builder states(@Nullable PullRequestState value, @Nullable PullRequestState... values)
states
.value
- the first state, which is ignored if it is null
values
- additional states, from which any null
entries are ignoredthis
@Nonnull public PullRequestCommitSearchRequest.Builder toRepositoryId(@Nullable Integer toRepositoryId)
targeting
the specified repository.toRepositoryId
- the target repository IDthis
Copyright © 2022 Atlassian. All rights reserved.