public class


extends AbstractCommandParameters
   ↳ com.atlassian.bitbucket.util.BuilderSupport
     ↳ com.atlassian.bitbucket.scm.AbstractCommandParameters
       ↳ com.atlassian.bitbucket.scm.UpdateDefaultBranchCommandParameters

Class Overview

Describes a branch to set as the default.

When updating the default branch, it is strongly encouraged to use the branch's ID rather than its display ID. Using the display ID may result in the update failing, or in the "wrong" branch being made the default.


Nested Classes
class UpdateDefaultBranchCommandParameters.Builder  
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Public Methods
@Nonnull String getBranchId()
Inherited Methods
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Public Methods

@Nonnull public String getBranchId ()

  • retrieves the ID of the branch that should be set as the default