Package com.atlassian.bitbucket.scm
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromBranch
(String value) fromCommitId
(String value) fromRepository
(Repository value) toCommitId
(String value) protected void
validate()
Methods inherited from class com.atlassian.bitbucket.scm.AbstractMergeCommandParameters.AbstractBuilder
author, commitSummaries, committer, dryRun, message, self, strategyId
-
Constructor Details
-
AbstractMergeBuilder
public AbstractMergeBuilder()
-
-
Method Details
-
fromBranch
-
fromCommitId
- Parameters:
value
- the commit ID to merge, ornull
to merge the current tip of thebranch
- Returns:
this
-
fromRepository
Sets theRepository
containing the frombranch
andcommit
. This value only needs to be supplied if the from branch/commit are not in the same repository as thetarget
. -
toBranch
-
toCommitId
- Parameters:
value
- the commit ID to merge on top of in thetarget branch
.- Returns:
this
- Since:
- 7.8
-
validate
protected void validate()- Overrides:
validate
in classAbstractMergeCommandParameters.AbstractBuilder<B extends MergeCommandParameters.AbstractMergeBuilder<B>>
-