public static class

PullRequestCommitSearchRequest.Builder

extends BuilderSupport
java.lang.Object
   ↳ com.atlassian.bitbucket.util.BuilderSupport
     ↳ com.atlassian.bitbucket.pull.PullRequestCommitSearchRequest.Builder

Summary

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Public Constructors
Builder(String commitId)
Creates a new builder that limits pull requests to those that contain or created (via their merge) the specified commit.
Public Methods
@Nonnull PullRequestCommitSearchRequest build()
Assembles a new PullRequestCommitSearchRequest from the provided values.
@Nonnull PullRequestCommitSearchRequest.Builder state(PullRequestState value)
Limits the search to pull requests in the specified state.
@Nonnull PullRequestCommitSearchRequest.Builder states(Iterable<PullRequestState> values)
Limits the search to pull requests in any of the specified states.
@Nonnull PullRequestCommitSearchRequest.Builder states(PullRequestState value, PullRequestState... values)
Limits the search to pull requests in any of the specified states.
@Nonnull PullRequestCommitSearchRequest.Builder toRepositoryId(Integer toRepositoryId)
Limits the search to pull requests targeting the specified repository.
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Public Constructors

public Builder (String commitId)

Creates a new builder that limits pull requests to those that contain or created (via their merge) the specified commit.

Public Methods

@Nonnull public PullRequestCommitSearchRequest build ()

Assembles a new PullRequestCommitSearchRequest from the provided values.

Returns
  • a new search request based on the provided criteria

@Nonnull public PullRequestCommitSearchRequest.Builder state (PullRequestState value)

Limits the search to pull requests in the specified state.

Parameters
value the state, which is ignored if it is null
Returns
  • this

@Nonnull public PullRequestCommitSearchRequest.Builder states (Iterable<PullRequestState> values)

Limits the search to pull requests in any of the specified states.

Parameters
values the allowed states, from which any null entries are ignored
Returns
  • this

@Nonnull public PullRequestCommitSearchRequest.Builder states (PullRequestState value, PullRequestState... values)

Limits the search to pull requests in any of the specified states.

Parameters
value the first state, which is ignored if it is null
values additional states, from which any null entries are ignored
Returns
  • this

@Nonnull public PullRequestCommitSearchRequest.Builder toRepositoryId (Integer toRepositoryId)

Limits the search to pull requests targeting the specified repository.

Parameters
toRepositoryId the target repository ID
Returns
  • this