Package com.atlassian.bitbucket.pull
Class PullRequestMergeRequest.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.pull.AbstractPullRequestRequest.AbstractBuilder<PullRequestMergeRequest.Builder>
com.atlassian.bitbucket.pull.PullRequestMergeRequest.Builder
- Enclosing class:
- PullRequestMergeRequest
public static class PullRequestMergeRequest.Builder
extends AbstractPullRequestRequest.AbstractBuilder<PullRequestMergeRequest.Builder>
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK -
Constructor Summary
ConstructorsConstructorDescriptionBuilder(int repositoryId, long pullRequestId, int version) Builder(PullRequest pullRequest) -
Method Summary
Modifier and TypeMethodDescriptionautoSubject(boolean value) build()protected PullRequestMergeRequest.Builderself()strategyId(String value) Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
-
Builder
public Builder(int repositoryId, long pullRequestId, int version)
-
-
Method Details
-
autoSubject
- Parameters:
value-trueto prepend an auto-generated subject to themessage; otherwise,falseto use the message as-is- Returns:
this- Since:
- 5.7
-
build
-
message
-
strategyId
- Parameters:
value- the ID of the strategy to use when merging the pull request, ornullto use thetarget repository's default strategy- Returns:
this- Since:
- 4.9
-
self
- Specified by:
selfin classAbstractPullRequestRequest.AbstractBuilder<PullRequestMergeRequest.Builder>
-