Class RepositorySearchRequest.Builder
java.lang.Object
com.atlassian.bitbucket.repository.RepositorySearchRequest.Builder
- Enclosing class:
- RepositorySearchRequest
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Builder(RepositorySearchRequest request) Constructs a newBuilderwhich will copy initial values from the providedrequest. -
Method Summary
Modifier 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
-
Builder
public Builder() -
Builder
Constructs a newBuilderwhich will copy initial values from the providedrequest.- Parameters:
request- request to copy
-
-
Method Details
-
build
Assembles a newRepositorySearchRequestfrom the provided values.- Returns:
- a new repository request instance
-
archived
Set the repository archive state filter for the resultingrequestinstance.- Parameters:
value- filter archive state for the repository search; may benullor blank, which will both be treated as an empty filter- Returns:
this- Since:
- 8.0
- See Also:
-
name
Set the name filter for the resultingrequestinstance.- Parameters:
value- filter text for the repository search; may benullor blank, which will both be treated as an empty filter- Returns:
this- See Also:
-
projectName
Set the project name filter for the resultingrequestinstance.- Parameters:
value- filter text for the repository project name; may benullor blank, which will both be treated as an empty filter- Returns:
this- See Also:
-
projectKey
Set the project key filter for the resultingrequestinstance.- Parameters:
value- filter text for the repository project key; may benullor blank, which will both be treated as an empty filter- Returns:
this- Since:
- 8.0
- See Also:
-
permission
Set the permission level for the resultingrequestinstance.- Parameters:
value- the required permission for the repository search; may benull- Returns:
this- Throws:
IllegalArgumentException- if the providedPermissionis notrepository related- See Also:
-
state
Set the state filter for the resultingrequestinstance. Note that searching byRepository.State.OFFLINEis not supported.- Parameters:
value- the required state for the repository search; may benull- Returns:
this- Since:
- 5.13
- See Also:
-
visibility
Set the visibility level for the resultingrequestinstance.- Parameters:
value- the required visibility for the repository search; may benull- Returns:
this- See Also:
-