public static class

MergeCommandParameters.Builder

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

Summary

[Expand]
Inherited Fields
From class com.atlassian.stash.scm.AbstractMergeCommandParameters.AbstractBuilder
Public Constructors
MergeCommandParameters.Builder()
Public Methods
MergeCommandParameters build()
MergeCommandParameters.Builder fromBranch(String value)
@Deprecated @Nonnull MergeCommandParameters.Builder fromChangesetId(String value)
This method is deprecated. in 3.11 for removal in 4.0. Use fromCommitId(String)
@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
MergeCommandParameters.Builder self()
void validate()
[Expand]
Inherited Methods
From class com.atlassian.stash.scm.AbstractMergeCommandParameters.AbstractBuilder
From class java.lang.Object

Public Constructors

public MergeCommandParameters.Builder ()

Public Methods

public MergeCommandParameters build ()

public MergeCommandParameters.Builder fromBranch (String value)

@Deprecated @Nonnull public MergeCommandParameters.Builder fromChangesetId (String value)

This method is deprecated.
in 3.11 for removal in 4.0. Use fromCommitId(String)

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

@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

protected MergeCommandParameters.Builder self ()

protected void validate ()