Class RepositoryCloneLinksRequest

java.lang.Object
com.atlassian.bitbucket.repository.RepositoryCloneLinksRequest

public class RepositoryCloneLinksRequest extends Object
A request to generate a repository's clone URLs
  • Method Details

    • getRepository

      @Nonnull public Repository getRepository()
      Returns:
      the repository that the resulting links should be for
    • getProtocolName

      @Nullable public String getProtocolName()
      Returns:
      the optional protocol that the resulting links should match
    • getUser

      @Nullable public ApplicationUser getUser()
      Returns:
      the user to be used when generating the clone link or null if no user is to be used or the user for the current request is to be used
    • isUseCurrentUser

      public boolean isUseCurrentUser()
      Returns:
      true if the currently authenticated user is to be used, false otherwise. When building this object if RepositoryCloneLinksRequest.Builder.user(ApplicationUser) was called then the currently authenticated user will not be used