Class RepositorySearchRequest.Builder
java.lang.Object
com.atlassian.bitbucket.repository.RepositorySearchRequest.Builder
- Enclosing class:
- RepositorySearchRequest
-
Constructor Summary
ConstructorDescriptionBuilder()
Builder
(RepositorySearchRequest request) Constructs a newBuilder
which will copy initial values from the providedrequest
. -
Method Summary
Modifier and TypeMethodDescriptionarchived
(RepositoryArchiveFilter value) Set the repository archive state filter for the resultingrequest
instance.build()
Assembles a newRepositorySearchRequest
from the provided values.Set the name filter for the resultingrequest
instance.permission
(Permission value) Set the permission level for the resultingrequest
instance.projectKey
(String value) Set the project key filter for the resultingrequest
instance.projectName
(String value) Set the project name filter for the resultingrequest
instance.state
(Repository.State value) Set the state filter for the resultingrequest
instance.visibility
(RepositoryVisibility value) Set the visibility level for the resultingrequest
instance.
-
Constructor Details
-
Builder
public Builder() -
Builder
Constructs a newBuilder
which will copy initial values from the providedrequest
.- Parameters:
request
- request to copy
-
-
Method Details
-
build
Assembles a newRepositorySearchRequest
from the provided values.- Returns:
- a new repository request instance
-
archived
Set the repository archive state filter for the resultingrequest
instance.- Parameters:
value
- filter archive state for the repository search; may benull
or blank, which will both be treated as an empty filter- Returns:
this
- Since:
- 8.0
- See Also:
-
name
Set the name filter for the resultingrequest
instance.- Parameters:
value
- filter text for the repository search; may benull
or blank, which will both be treated as an empty filter- Returns:
this
- See Also:
-
projectName
Set the project name filter for the resultingrequest
instance.- Parameters:
value
- filter text for the repository project name; may benull
or blank, which will both be treated as an empty filter- Returns:
this
- See Also:
-
projectKey
Set the project key filter for the resultingrequest
instance.- Parameters:
value
- filter text for the repository project key; may benull
or blank, which will both be treated as an empty filter- Returns:
this
- Since:
- 8.0
- See Also:
-
permission
Set the permission level for the resultingrequest
instance.- Parameters:
value
- the required permission for the repository search; may benull
- Returns:
this
- Throws:
IllegalArgumentException
- if the providedPermission
is notrepository related
- See Also:
-
state
Set the state filter for the resultingrequest
instance. Note that searching byRepository.State.OFFLINE
is 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 resultingrequest
instance.- Parameters:
value
- the required visibility for the repository search; may benull
- Returns:
this
- See Also:
-