Class MergeCommandParameters.AbstractMergeBuilder<B extends MergeCommandParameters.AbstractMergeBuilder<B>>

java.lang.Object
com.atlassian.bitbucket.scm.AbstractMergeCommandParameters.AbstractBuilder<B>
com.atlassian.bitbucket.scm.MergeCommandParameters.AbstractMergeBuilder<B>
Type Parameters:
B - the concrete builder class
Direct Known Subclasses:
MergeCommandParameters.Builder
Enclosing class:
MergeCommandParameters

public abstract static class MergeCommandParameters.AbstractMergeBuilder<B extends MergeCommandParameters.AbstractMergeBuilder<B>> extends AbstractMergeCommandParameters.AbstractBuilder<B>
Since:
5.0
  • Constructor Details

    • AbstractMergeBuilder

      public AbstractMergeBuilder()
  • Method Details

    • fromBranch

      @Nonnull public B fromBranch(String value)
    • fromCommitId

      @Nonnull public B fromCommitId(@Nullable String value)
      Parameters:
      value - the commit ID to merge, or null to merge the current tip of the branch
      Returns:
      this
    • fromRepository

      @Nonnull public B fromRepository(@Nullable 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
    • toBranch

      @Nonnull public B toBranch(String value)
    • toCommitId

      @Nonnull public B toCommitId(@Nullable String value)
      Parameters:
      value - the commit ID to merge on top of in the target branch.
      Returns:
      this
      Since:
      7.8
    • validate

      protected void validate()
      Overrides:
      validate in class AbstractMergeCommandParameters.AbstractBuilder<B extends MergeCommandParameters.AbstractMergeBuilder<B>>