Class PublishGitWorkTreeParameters.Builder

java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.scm.git.worktree.PublishGitWorkTreeParameters.Builder
Enclosing class:
PublishGitWorkTreeParameters

public static class PublishGitWorkTreeParameters.Builder extends com.atlassian.bitbucket.util.BuilderSupport
  • Constructor Details

  • Method Details

    • author

      @Nonnull public PublishGitWorkTreeParameters.Builder author(@Nonnull com.atlassian.bitbucket.user.Person value)
    • branch

      @Nonnull public PublishGitWorkTreeParameters.Builder branch(@Nonnull String branch, @Nullable String expectedHash)
      Specifies the branch to publish the work tree to. Specify expectedHash to only update the target branch if the branch is at the expected stated. If expectedHash is set to 0000000000000000000000000000000000000000, publishing will only succeed if the branch does not yet exist. If set to null, the target branch will be updated regardless of its current value.
      Parameters:
      branch - the branch to update
      expectedHash - the hash the branch is expected to be at (prior to publishing)
      Returns:
      the builder
    • build

      @Nonnull public PublishGitWorkTreeParameters build()
    • timeout

      @Nonnull public PublishGitWorkTreeParameters.Builder timeout(@Nonnull Duration value)