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
ConstructorsConstructorDescriptionBuilder(ApplicationUser user, Date changesSince) Constructs a builder for creatingSuggestPullRequestsRequestobjects. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Assembles a newSuggestPullRequestsRequestfrom the provided values.limit(int value) Restricts the result set to return at most this many suggestions.protected SuggestPullRequestsRequest.Builderself()Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
Constructs a builder for creatingSuggestPullRequestsRequestobjects.- 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 newSuggestPullRequestsRequestfrom 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_LIMITwill be used.- Parameters:
value- the value- Returns:
this
-
self
-