public static class ProjectSearchRequest.Builder extends Object
Constructor and Description |
---|
Builder() |
Builder(ProjectSearchRequest request)
Constructs a new
Builder which will copy initial values from the provided
request . |
Modifier and Type | Method and Description |
---|---|
ProjectSearchRequest |
build()
Assembles a new
ProjectSearchRequest from the provided values. |
ProjectSearchRequest.Builder |
name(String value)
|
ProjectSearchRequest.Builder |
permission(Permission value)
When set, limits returned
projects to only those for which the current user has the required
Permission . |
public Builder()
public Builder(@Nonnull ProjectSearchRequest request)
Builder
which will copy initial values from the provided
request
.request
- request to copy@Nonnull public ProjectSearchRequest build()
ProjectSearchRequest
from the provided values.@Nonnull public ProjectSearchRequest.Builder name(@Nullable String value)
projects
to only those whose names
contain the provided value. Matching is performed in a case-insensitive manner, and will match
anywhere within projects' names.
Note: Values containing only whitespace are ignored, and will not be applied. Additionally, leading and trailing whitespace are trimmed.
value
- filter text match against project names, or null
to return projects regardless of namethis
@Nonnull public ProjectSearchRequest.Builder permission(@Nullable Permission value)
projects
to only those for which the current user has the required
Permission
. The provided value may be null
, in which case projects will automatically be
limited to those for which the current user has VIEW
permission.value
- the required permission, or null
to default to VIEW
this
IllegalArgumentException
- if the provided Permission
is not
project related
Copyright © 2019 Atlassian. All rights reserved.