Package com.atlassian.bitbucket.pull
Class PullRequestChangesRequest.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.pull.AbstractPullRequestRequest.AbstractBuilder<PullRequestChangesRequest.Builder>
com.atlassian.bitbucket.pull.PullRequestChangesRequest.Builder
- Enclosing class:
- PullRequestChangesRequest
public static class PullRequestChangesRequest.Builder
extends AbstractPullRequestRequest.AbstractBuilder<PullRequestChangesRequest.Builder>
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
ConstructorDescriptionBuilder
(int repositoryId, long pullRequestId) Builder
(PullRequest pullRequest) Builder
(PullRequestChangesRequest request) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Specifies the scope of the changes to be streamed.protected PullRequestChangesRequest.Builder
self()
Specifies thesinceId
to use when retrieving the changes, if thescope
isPullRequestChangeScope.RANGE
.Specifies theuntilId
to use when retrieving the changes, if thescope
isPullRequestChangeScope.RANGE
.withComments
(boolean value) Specifies whether comment count attributes should be applied when streaming changes.Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
-
Builder
-
Builder
public Builder(int repositoryId, long pullRequestId)
-
-
Method Details
-
build
-
changeScope
@Nonnull public PullRequestChangesRequest.Builder changeScope(@Nonnull PullRequestChangeScope value) Specifies the scope of the changes to be streamed.- Parameters:
value
-UNREVIEWED
to stream unreviewed changes for the for the current user (if they exist); otherwise,ALL
to stream all changes (the default)- Returns:
this
- Since:
- 4.10
- See Also:
-
sinceId
Specifies thesinceId
to use when retrieving the changes, if thescope
isPullRequestChangeScope.RANGE
.If the
scope
is notPullRequestChangeScope.RANGE
then this value is ignored.- Parameters:
value
- the sinceId to use when retrieving changes- Returns:
this
- Since:
- 5.0
-
untilId
Specifies theuntilId
to use when retrieving the changes, if thescope
isPullRequestChangeScope.RANGE
.If the
scope
is notPullRequestChangeScope.RANGE
then this value is ignored.- Parameters:
value
- the untilId to use when retrieving changes- Returns:
this
- Since:
- 5.0
-
withComments
Specifies whether comment count attributes should be applied when streaming changes.- Parameters:
value
-true
to request comment counts to be applied when streaming changes (the default); otherwise,false
to omit the counts- Returns:
this
-
self
- Specified by:
self
in classAbstractPullRequestRequest.AbstractBuilder<PullRequestChangesRequest.Builder>
-