Class RepositoryForkRequest.Builder

Enclosing class:
RepositoryForkRequest

public static class RepositoryForkRequest.Builder extends AbstractRepositoryRequest.AbstractBuilder<RepositoryForkRequest.Builder>
Constructs requests for forking repositories.
  • Constructor Details

    • Builder

      public Builder()
    • Builder

      public Builder(@Nonnull Repository repository)
      Constructs a new Builder which will use the specified Repository as the fork's parent. The parent's name is set as the fork's name, but the parent's project is not set as the fork's project. Since names and slugs must be unique within a project, defaulting both the name and project would produce a request guaranteed to fail unless one property or the other was changed before building.
      Parameters:
      repository - the parent repository for the new fork
    • Builder

      public Builder(@Nonnull RepositoryForkRequest request)
      Constructs a new Builder which uses as its defaults all the values from the provided request.
      Parameters:
      request - the request to copy into the new builder
  • Method Details