public static class

MergeCommandParameters.Builder

extends AbstractMergeCommandParameters.AbstractBuilder<B extends AbstractBuilder<B>>
java.lang.Object
   ↳ com.atlassian.bitbucket.scm.AbstractMergeCommandParameters.AbstractBuilder<B extends com.atlassian.bitbucket.scm.AbstractMergeCommandParameters.AbstractBuilder<B>>
     ↳ com.atlassian.bitbucket.scm.MergeCommandParameters.Builder

Summary

Public Constructors
Builder()
Public Methods
MergeCommandParameters build()
MergeCommandParameters.Builder fromBranch(String value)
@Nonnull MergeCommandParameters.Builder fromCommitId(String value)
MergeCommandParameters.Builder fromRepository(Repository value)
Sets the Repository containing the from branch and commit.
MergeCommandParameters.Builder toBranch(String value)
Protected Methods
@Nonnull MergeCommandParameters.Builder self()
void validate()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.scm.AbstractMergeCommandParameters.AbstractBuilder
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public MergeCommandParameters build ()

public MergeCommandParameters.Builder fromBranch (String value)

@Nonnull public MergeCommandParameters.Builder fromCommitId (String value)

Parameters
value the commit ID to merge, or null to merge the current tip of the branch
Returns
  • this

public MergeCommandParameters.Builder fromRepository (Repository value)

Sets the Repository containing the from branch and commit. This value only needs to be supplied if the from branch/commit are not in the same repository as the target.

Parameters
value the repository containing the from branch and commit, if different from the target
Returns
  • this

public MergeCommandParameters.Builder toBranch (String value)

Protected Methods

@Nonnull protected MergeCommandParameters.Builder self ()

protected void validate ()