Class ForkCommandParameters.Builder

java.lang.Object
com.atlassian.bitbucket.scm.ForkCommandParameters.Builder
Enclosing class:
ForkCommandParameters

public static class ForkCommandParameters.Builder extends Object
  • Constructor Details

    • Builder

      public Builder(@Nonnull com.atlassian.bitbucket.repository.Repository fork)
  • Method Details

    • build

      @Nonnull public ForkCommandParameters build()
    • defaultBranch

      @Nonnull public ForkCommandParameters.Builder defaultBranch(@Nullable String value)
      Specifies the default branch that should be set after the fork is created. If no default branch is specified, the fork will inherit its origin's default branch.
      Parameters:
      value - the default branch name, or null to inherit the origin's default branch
      Returns:
      this
      Since:
      7.5