public static class

SuggestPullRequestsRequest.Builder

extends BuilderSupport
java.lang.Object
   ↳ com.atlassian.bitbucket.util.BuilderSupport
     ↳ com.atlassian.bitbucket.dashboard.SuggestPullRequestsRequest.Builder

Summary

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Public Constructors
Builder(ApplicationUser user, Date changesSince)
Constructs a builder for creating SuggestPullRequestsRequest objects.
Public Methods
@Nonnull SuggestPullRequestsRequest build()
Assembles a new SuggestPullRequestsRequest from the provided values.
@Nonnull SuggestPullRequestsRequest.Builder limit(int value)
Restricts the result set to return at most this many suggestions.
Protected Methods
@Nonnull SuggestPullRequestsRequest.Builder self()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Public Constructors

public Builder (ApplicationUser user, Date changesSince)

Constructs a builder for creating SuggestPullRequestsRequest objects.

Parameters
user suggestions will be based on push activity for the given user
changesSince 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

Public Methods

@Nonnull public SuggestPullRequestsRequest build ()

Assembles a new SuggestPullRequestsRequest from the provided values.

Returns
  • a pull request suggestion request instance

@Nonnull public SuggestPullRequestsRequest.Builder limit (int value)

Restricts the result set to return at most this many suggestions. If this is never called, then the default DEFAULT_LIMIT will be used.

Protected Methods

@Nonnull protected SuggestPullRequestsRequest.Builder self ()