public static class

PullRequestMergeRequest.Builder

extends AbstractPullRequestRequest.AbstractBuilder<T extends AbstractBuilder<T>>
java.lang.Object
   ↳ com.atlassian.bitbucket.util.BuilderSupport
     ↳ com.atlassian.bitbucket.pull.AbstractPullRequestRequest.AbstractBuilder<T extends com.atlassian.bitbucket.pull.AbstractPullRequestRequest.AbstractBuilder<T>>
       ↳ com.atlassian.bitbucket.pull.PullRequestMergeRequest.Builder

Summary

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Public Constructors
Builder(PullRequest pullRequest)
Builder(int repositoryId, long pullRequestId, int version)
Public Methods
@Nonnull PullRequestMergeRequest.Builder autoSubject(boolean value)
@Nonnull PullRequestMergeRequest build()
@Nonnull PullRequestMergeRequest.Builder context(Map<StringObject> value)
@Nonnull PullRequestMergeRequest.Builder context(String key, Object value)
@Nonnull PullRequestMergeRequest.Builder message(String value)
@Nonnull PullRequestMergeRequest.Builder strategyId(String value)
Protected Methods
@Nonnull PullRequestMergeRequest.Builder self()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.pull.AbstractPullRequestRequest.AbstractBuilder
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Public Constructors

public Builder (PullRequest pullRequest)

public Builder (int repositoryId, long pullRequestId, int version)

Public Methods

@Nonnull public PullRequestMergeRequest.Builder autoSubject (boolean value)

Parameters
value true to prepend an auto-generated subject to the message; otherwise, false to use the message as-is
Returns
  • this

@Nonnull public PullRequestMergeRequest build ()

@Nonnull public PullRequestMergeRequest.Builder context (Map<StringObject> value)

@Nonnull public PullRequestMergeRequest.Builder context (String key, Object value)

@Nonnull public PullRequestMergeRequest.Builder message (String value)

@Nonnull public PullRequestMergeRequest.Builder strategyId (String value)

Parameters
value the ID of the strategy to use when merging the pull request, or null to use the target repository's default strategy
Returns
  • this

Protected Methods

@Nonnull protected PullRequestMergeRequest.Builder self ()