public static class RepositorySearchRequest.Builder extends Object
Constructor and Description |
---|
Builder() |
Builder(RepositorySearchRequest request)
Constructs a new
Builder which will copy initial values from the provided
request . |
Modifier and Type | Method and Description |
---|---|
RepositorySearchRequest |
build()
Assembles a new
RepositorySearchRequest from the provided values. |
RepositorySearchRequest.Builder |
name(String value)
Set the name filter for the resulting
request instance. |
RepositorySearchRequest.Builder |
permission(Permission value)
Set the permission level for the resulting
request instance. |
RepositorySearchRequest.Builder |
projectName(String value)
Set the project name filter for the resulting
request instance. |
RepositorySearchRequest.Builder |
state(Repository.State value)
Set the state filter for the resulting
request instance. |
RepositorySearchRequest.Builder |
visibility(RepositoryVisibility value)
Set the visibility level for the resulting
request instance. |
public Builder()
public Builder(@Nonnull RepositorySearchRequest request)
Builder
which will copy initial values from the provided
request
.request
- request to copy@Nonnull public RepositorySearchRequest build()
RepositorySearchRequest
from the provided values.@Nonnull public RepositorySearchRequest.Builder name(@Nullable String value)
request
instance.value
- filter text for the repository search; may be null
or blank, which will both be treated
as an empty filterthis
RepositorySearchRequest.getName()
@Nonnull public RepositorySearchRequest.Builder projectName(@Nullable String value)
request
instance.value
- filter text for the repository project name; may be null
or blank, which will both be
treated as an empty filterthis
RepositorySearchRequest.getProjectName()
@Nonnull public RepositorySearchRequest.Builder permission(@Nullable Permission value)
request
instance.value
- the required permission for the repository search; may be null
this
IllegalArgumentException
- if the provided Permission
is not
repository related
RepositorySearchRequest.getPermission()
@Nonnull public RepositorySearchRequest.Builder state(@Nullable Repository.State value)
request
instance.value
- the required state for the repository search; may be null
this
RepositorySearchRequest.getState()
@Nonnull public RepositorySearchRequest.Builder visibility(@Nullable RepositoryVisibility value)
request
instance.value
- the required visibility for the repository search; may be null
this
RepositorySearchRequest.getVisibility()
Copyright © 2022 Atlassian. All rights reserved.