public static class PullRequestActivitySearchRequest.Builder extends AbstractPullRequestRequest.AbstractBuilder<PullRequestActivitySearchRequest.Builder>
NOT_BLANK
Constructor and Description |
---|
Builder(int repositoryId,
long pullRequestId) |
Builder(PullRequest pullRequest) |
Modifier and Type | Method and Description |
---|---|
PullRequestActivitySearchRequest |
build() |
PullRequestActivitySearchRequest.Builder |
commentActions(CommentAction value,
CommentAction... values) |
PullRequestActivitySearchRequest.Builder |
commentActions(Iterable<CommentAction> values) |
PullRequestActivitySearchRequest.Builder |
commentIds(Iterable<Long> values) |
PullRequestActivitySearchRequest.Builder |
commentIds(long value,
long... values) |
protected PullRequestActivitySearchRequest.Builder |
self() |
PullRequestActivitySearchRequest.Builder |
types(Iterable<PullRequestActivityType> values) |
PullRequestActivitySearchRequest.Builder |
types(PullRequestActivityType value,
PullRequestActivityType... values) |
PullRequestActivitySearchRequest.Builder |
withProperties(boolean value) |
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
public Builder(@Nonnull PullRequest pullRequest)
public Builder(int repositoryId, long pullRequestId)
@Nonnull public PullRequestActivitySearchRequest build()
@Nonnull public PullRequestActivitySearchRequest.Builder commentActions(@Nullable CommentAction value, @Nullable CommentAction... values)
@Nonnull public PullRequestActivitySearchRequest.Builder commentActions(@Nullable Iterable<CommentAction> values)
@Nonnull public PullRequestActivitySearchRequest.Builder commentIds(long value, long... values)
value
- the first comment ID to search for activities forvalues
- additional comment IDs to search for activities forthis
@Nonnull public PullRequestActivitySearchRequest.Builder commentIds(@Nullable Iterable<Long> values)
@Nonnull public PullRequestActivitySearchRequest.Builder types(@Nullable PullRequestActivityType value, @Nullable PullRequestActivityType... values)
@Nonnull public PullRequestActivitySearchRequest.Builder types(@Nullable Iterable<PullRequestActivityType> values)
@Nonnull public PullRequestActivitySearchRequest.Builder withProperties(boolean value)
value
- true
to load properties
for the pull requests
on each matched activity; otherwise, false
to omit themthis
@Nonnull protected PullRequestActivitySearchRequest.Builder self()
self
in class AbstractPullRequestRequest.AbstractBuilder<PullRequestActivitySearchRequest.Builder>
Copyright © 2019 Atlassian. All rights reserved.