public class

UpdateDefaultBranchCommandParameters

extends AbstractCommandParameters
java.lang.Object
   ↳ 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.

Summary

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

Public Methods

@Nonnull public String getBranchId ()

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