Package com.atlassian.bitbucket.pull
Class SetPullRequestMergeConfigRequest.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.pull.AbstractPullRequestMergeConfigRequest.AbstractBuilder<SetPullRequestMergeConfigRequest.Builder,SetPullRequestMergeConfigRequest>
com.atlassian.bitbucket.pull.SetPullRequestMergeConfigRequest.Builder
- Enclosing class:
- SetPullRequestMergeConfigRequest
public static class SetPullRequestMergeConfigRequest.Builder
extends AbstractPullRequestMergeConfigRequest.AbstractBuilder<SetPullRequestMergeConfigRequest.Builder,SetPullRequestMergeConfigRequest>
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
commitSummaries
(int value) defaultStrategyId
(String value) enabledStrategyId
(String value) enabledStrategyIds
(Iterable<String> values) protected SetPullRequestMergeConfigRequest.Builder
self()
Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
-
Builder
-
Builder
-
-
Method Details
-
build
-
commitMessageTemplate
public SetPullRequestMergeConfigRequest.Builder commitMessageTemplate(@Nullable PullRequestCommitMessageTemplate value) - Parameters:
value
- thePullRequestCommitMessageTemplate
to set. Setting a value ofnull
is a signal to delete the template- Returns:
this
- Since:
- 8.12
-
commitSummaries
- Parameters:
value
- the number of commit summaries to append to the user-supplied (or system-generated) message when merging a pull request, which may be0
to omit summaries- Returns:
this
- Since:
- 6.7
-
defaultStrategyId
-
enabledStrategyId
-
enabledStrategyIds
@Nonnull public SetPullRequestMergeConfigRequest.Builder enabledStrategyIds(@Nonnull Iterable<String> values) -
self
-