Class RepositorySearchRequest.Builder
java.lang.Object
com.atlassian.bitbucket.repository.RepositorySearchRequest.Builder
- Enclosing class:
- RepositorySearchRequest
- 
Constructor SummaryConstructorsConstructorDescriptionBuilder()Builder(RepositorySearchRequest request) Constructs a newBuilderwhich will copy initial values from the providedrequest.
- 
Method SummaryModifier and TypeMethodDescriptionarchived(RepositoryArchiveFilter value) Set the repository archive state filter for the resultingrequestinstance.build()Assembles a newRepositorySearchRequestfrom the provided values.Set the name filter for the resultingrequestinstance.permission(Permission value) Set the permission level for the resultingrequestinstance.projectKey(String value) Set the project key filter for the resultingrequestinstance.projectName(String value) Set the project name filter for the resultingrequestinstance.state(Repository.State value) Set the state filter for the resultingrequestinstance.visibility(RepositoryVisibility value) Set the visibility level for the resultingrequestinstance.
- 
Constructor Details- 
Builderpublic Builder()
- 
BuilderConstructs a newBuilderwhich will copy initial values from the providedrequest.- Parameters:
- request- request to copy
 
 
- 
- 
Method Details- 
buildAssembles a newRepositorySearchRequestfrom the provided values.- Returns:
- a new repository request instance
 
- 
archivedSet the repository archive state filter for the resultingrequestinstance.- Parameters:
- value- filter archive state for the repository search; may be- nullor blank, which will both be treated as an empty filter
- Returns:
- this
- Since:
- 8.0
- See Also:
 
- 
nameSet the name filter for the resultingrequestinstance.- Parameters:
- value- filter text for the repository search; may be- nullor blank, which will both be treated as an empty filter
- Returns:
- this
- See Also:
 
- 
projectNameSet the project name filter for the resultingrequestinstance.- Parameters:
- value- filter text for the repository project name; may be- nullor blank, which will both be treated as an empty filter
- Returns:
- this
- See Also:
 
- 
projectKeySet the project key filter for the resultingrequestinstance.- Parameters:
- value- filter text for the repository project key; may be- nullor blank, which will both be treated as an empty filter
- Returns:
- this
- Since:
- 8.0
- See Also:
 
- 
permissionSet the permission level for the resultingrequestinstance.- Parameters:
- value- the required permission for the repository search; may be- null
- Returns:
- this
- Throws:
- IllegalArgumentException- if the provided- Permissionis not- repository related
- See Also:
 
- 
stateSet the state filter for the resultingrequestinstance. Note that searching byRepository.State.OFFLINEis not supported.- Parameters:
- value- the required state for the repository search; may be- null
- Returns:
- this
- Since:
- 5.13
- See Also:
 
- 
visibilitySet the visibility level for the resultingrequestinstance.- Parameters:
- value- the required visibility for the repository search; may be- null
- Returns:
- this
- See Also:
 
 
-