public static class PullRequestChangesRequest.Builder extends AbstractPullRequestRequest.AbstractBuilder<PullRequestChangesRequest.Builder>
NOT_BLANK| Constructor and Description |
|---|
Builder(int repositoryId,
long pullRequestId) |
Builder(PullRequest pullRequest) |
Builder(PullRequestChangesRequest request) |
| Modifier and Type | Method and Description |
|---|---|
PullRequestChangesRequest |
build() |
PullRequestChangesRequest.Builder |
changeScope(PullRequestChangeScope value)
Specifies the scope of the changes to be streamed.
|
protected PullRequestChangesRequest.Builder |
self() |
PullRequestChangesRequest.Builder |
sinceId(String value)
Specifies the
sinceId to use when retrieving the changes, if the scope is
PullRequestChangeScope.RANGE. |
PullRequestChangesRequest.Builder |
untilId(String value)
Specifies the
untilId to use when retrieving the changes, if the scope is
PullRequestChangeScope.RANGE. |
PullRequestChangesRequest.Builder |
withComments(boolean value)
Specifies whether comment count attributes should be applied when streaming changes.
|
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlankpublic Builder(@Nonnull PullRequestChangesRequest request)
public Builder(@Nonnull PullRequest pullRequest)
public Builder(int repositoryId,
long pullRequestId)
@Nonnull public PullRequestChangesRequest build()
@Nonnull public PullRequestChangesRequest.Builder changeScope(@Nonnull PullRequestChangeScope value)
value - UNREVIEWED to stream unreviewed changes for the
for the current user (if they exist); otherwise, ALL to
stream all changes (the default)thisPullRequestChangeScope@Nonnull public PullRequestChangesRequest.Builder sinceId(@Nullable String value)
sinceId to use when retrieving the changes, if the scope is
PullRequestChangeScope.RANGE.
If the scope is not PullRequestChangeScope.RANGE then
this value is ignored.
value - the sinceId to use when retrieving changesthis@Nonnull public PullRequestChangesRequest.Builder untilId(@Nullable String value)
untilId to use when retrieving the changes, if the scope is
PullRequestChangeScope.RANGE.
If the scope is not PullRequestChangeScope.RANGE then
this value is ignored.
value - the untilId to use when retrieving changesthis@Nonnull public PullRequestChangesRequest.Builder withComments(boolean value)
value - true to request comment counts to be applied when streaming changes (the default);
otherwise, false to omit the countsthis@Nonnull protected PullRequestChangesRequest.Builder self()
self in class AbstractPullRequestRequest.AbstractBuilder<PullRequestChangesRequest.Builder>Copyright © 2021 Atlassian. All rights reserved.