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) |
PullRequestActivitySearchRequest.Builder |
propertyMode(PullRequestActivityPropertyMode value) |
protected PullRequestActivitySearchRequest.Builder |
self() |
PullRequestActivitySearchRequest.Builder |
types(Iterable<PullRequestActivityType> values) |
PullRequestActivitySearchRequest.Builder |
types(PullRequestActivityType value,
PullRequestActivityType... values) |
PullRequestActivitySearchRequest.Builder |
withProperties(boolean value)
Deprecated.
since 7.14 for removal in 8.0. Use
propertyMode method instead. |
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 propertyMode(@Nonnull PullRequestActivityPropertyMode value)
value
- mode of property enriching pull requests and pull request activity.this
@Nonnull public PullRequestActivitySearchRequest.Builder types(@Nullable PullRequestActivityType value, @Nullable PullRequestActivityType... values)
@Nonnull public PullRequestActivitySearchRequest.Builder types(@Nullable Iterable<PullRequestActivityType> values)
@Deprecated @Nonnull public PullRequestActivitySearchRequest.Builder withProperties(boolean value)
propertyMode
method instead.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 © 2022 Atlassian. All rights reserved.