public static class PullRequestMergeRequest.Builder extends AbstractPullRequestRequest.AbstractBuilder<PullRequestMergeRequest.Builder>
NOT_BLANK
Constructor and Description |
---|
Builder(int repositoryId,
long pullRequestId,
int version) |
Builder(PullRequest pullRequest) |
Modifier and Type | Method and Description |
---|---|
PullRequestMergeRequest.Builder |
autoSubject(boolean value) |
PullRequestMergeRequest |
build() |
PullRequestMergeRequest.Builder |
context(Map<String,Object> value) |
PullRequestMergeRequest.Builder |
context(String key,
Object value) |
PullRequestMergeRequest.Builder |
message(String value) |
protected PullRequestMergeRequest.Builder |
self() |
PullRequestMergeRequest.Builder |
strategyId(String value) |
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
public Builder(@Nonnull PullRequest pullRequest)
public Builder(int repositoryId, long pullRequestId, int version)
@Nonnull public PullRequestMergeRequest.Builder autoSubject(boolean value)
value
- true
to prepend an auto-generated subject to the message
;
otherwise, false
to use the message as-isthis
@Nonnull public PullRequestMergeRequest build()
@Nonnull public PullRequestMergeRequest.Builder context(@Nonnull String key, @Nonnull Object value)
@Nonnull public PullRequestMergeRequest.Builder message(@Nullable String value)
@Nonnull public PullRequestMergeRequest.Builder strategyId(@Nullable String value)
value
- the ID of the strategy to use when merging the pull request, or null
to use the
target repository
's default strategythis
@Nonnull protected PullRequestMergeRequest.Builder self()
self
in class AbstractPullRequestRequest.AbstractBuilder<PullRequestMergeRequest.Builder>
Copyright © 2021 Atlassian. All rights reserved.