Class SuggestPullRequestsRequest.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.dashboard.SuggestPullRequestsRequest.Builder
- Enclosing class:
- SuggestPullRequestsRequest
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
ConstructorDescriptionBuilder
(ApplicationUser user, Date changesSince) Constructs a builder for creatingSuggestPullRequestsRequest
objects. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Assembles a newSuggestPullRequestsRequest
from the provided values.limit
(int value) Restricts the result set to return at most this many suggestions.protected SuggestPullRequestsRequest.Builder
self()
Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
Constructs a builder for creatingSuggestPullRequestsRequest
objects.- Parameters:
user
- suggestions will be based on push activity for the given userchangesSince
- all pull request suggestions are based on some form of activity/change that has occurred. This restricts pull request suggestions to be based on activity up to a certain time/date in the past
-
-
Method Details
-
build
Assembles a newSuggestPullRequestsRequest
from the provided values.- Returns:
- a pull request suggestion request instance
-
limit
Restricts the result set to return at most this many suggestions. If this is never called, then the defaultSuggestPullRequestsRequest.DEFAULT_LIMIT
will be used.- Parameters:
value
- the value- Returns:
this
-
self
-