| java.lang.Object | |||
| ↳ | com.atlassian.bitbucket.util.BuilderSupport | ||
| ↳ | com.atlassian.bitbucket.repository.AbstractRepositoryRequest.AbstractBuilder<B extends com.atlassian.bitbucket.repository.AbstractRepositoryRequest.AbstractBuilder<B>> | ||
| ↳ | com.atlassian.bitbucket.repository.RepositoryForkRequest.Builder | ||
Constructs requests for forking repositories.
| [Expand] Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
com.atlassian.bitbucket.repository.AbstractRepositoryRequest.AbstractBuilder | |||||||||||
|  From class
com.atlassian.bitbucket.util.BuilderSupport | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Constructs a new  Builderwhich uses as its defaults all the values from the provided request. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Builds a  requestfrom the assembled values. | |||||||||||
| Sets the name to be used for the request. | |||||||||||
| Sets the repository to be forked, which will be the  originof the fork. | |||||||||||
| Sets the project to which the  parentwill be forked. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Overridden in concrete builder implementations to return  this. | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  com.atlassian.bitbucket.repository.AbstractRepositoryRequest.AbstractBuilder | |||||||||||
|  From class
  com.atlassian.bitbucket.util.BuilderSupport | |||||||||||
|  From class
  java.lang.Object | |||||||||||
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.
| repository | the parentrepository for the new fork | 
|---|
Constructs a new Builder which uses as its defaults all the values from the provided request.
| request | the request to copy into the new builder | 
|---|
Builds a request from the assembled values. Before the request is built,
 it is first verified that a parent was specified and an exception is thrown
 if it was not.
 
 If no name was explicitly set, the parent repository's
 name will be set as the fork's name. This ensures the constructed request
 honours its nullability contract.
| IllegalStateException | if the parentisnull | 
|---|
Sets the repository to be forked, which will be the origin of the fork.
 
 Note: This value is required. If this method is not called prior to building the
 request, an exception will be thrown.
| value | the repository to fork | 
|---|
this| NullPointerException | if the provided valueisnull | 
|---|
Sets the project to which the parent will be forked.
 
 If this value is not set, or this method is not called prior to building, the current
 user's personal project will be used by default.
| value | the destination project, which may be nullto use the current user's personal project | 
|---|
this
Overridden in concrete builder implementations to return this.
this