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
ConstructorDescriptionBuilder
(int repositoryId, long pullRequestId, int version) Builder
(PullRequest pullRequest) -
Method Summary
Modifier and TypeMethodDescriptionautoSubject
(boolean value) build()
protected PullRequestMergeRequest.Builder
self()
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
-true
to prepend an auto-generated subject to themessage
; otherwise,false
to 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, ornull
to use thetarget repository
's default strategy- Returns:
this
- Since:
- 4.9
-
self
- Specified by:
self
in classAbstractPullRequestRequest.AbstractBuilder<PullRequestMergeRequest.Builder>
-