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
ConstructorsConstructorDescriptionBuilder(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.Builderself()Specifies thesinceIdto use when retrieving the changes, if thescopeisPullRequestChangeScope.RANGE.Specifies theuntilIdto use when retrieving the changes, if thescopeisPullRequestChangeScope.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-UNREVIEWEDto stream unreviewed changes for the for the current user (if they exist); otherwise,ALLto stream all changes (the default)- Returns:
this- Since:
- 4.10
- See Also:
-
sinceId
Specifies thesinceIdto use when retrieving the changes, if thescopeisPullRequestChangeScope.RANGE.If the
scopeis notPullRequestChangeScope.RANGEthen this value is ignored.- Parameters:
value- the sinceId to use when retrieving changes- Returns:
this- Since:
- 5.0
-
untilId
Specifies theuntilIdto use when retrieving the changes, if thescopeisPullRequestChangeScope.RANGE.If the
scopeis notPullRequestChangeScope.RANGEthen 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-trueto request comment counts to be applied when streaming changes (the default); otherwise,falseto omit the counts- Returns:
this
-
self
- Specified by:
selfin classAbstractPullRequestRequest.AbstractBuilder<PullRequestChangesRequest.Builder>
-