Package com.atlassian.bitbucket.commit
Class CommitsBetweenRequest.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.commit.AbstractCommitsRequest.AbstractCommitsRequestBuilder<CommitsBetweenRequest.Builder>
com.atlassian.bitbucket.commit.CommitsBetweenRequest.Builder
- Enclosing class:
- CommitsBetweenRequest
public static class CommitsBetweenRequest.Builder
extends AbstractCommitsRequest.AbstractCommitsRequestBuilder<CommitsBetweenRequest.Builder>
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
ConstructorDescriptionBuilder
(CommitsBetweenRequest request) Creates a newBuilder
by copying the specifiedrequest
.Builder
(PullRequest pullRequest) Creates a newBuilder
with defaults appropriate for retrieving the commits which are included by the specifiedPullRequest
.Builder
(Repository repository) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
secondaryRepository
(Repository value) protected CommitsBetweenRequest.Builder
self()
Methods inherited from class com.atlassian.bitbucket.commit.AbstractCommitsRequest.AbstractCommitsRequestBuilder
followRenames, ignoreMissing, maxMessageLength, merges, order, path, paths, paths, propertyKey, propertyKeys, propertyKeys
Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
-
Builder
Creates a newBuilder
by copying the specifiedrequest
.- Parameters:
request
- the request to copy
-
Builder
Creates a newBuilder
with defaults appropriate for retrieving the commits which are included by the specifiedPullRequest
.The new builder:
- Uses the
to ref's
Repository
as therepository
for the request - Uses the
from ref's
Repository
as thesecondary repository
, if the providedPullRequest
iscross-repository
Includes
thefrom ref
Excludes
theto ref
- Parameters:
pullRequest
- the pull request to retrieve commits for
- Uses the
-
-
Method Details
-
build
- Returns:
- a new
CommitsBetweenRequest
assembled from the provided values - Throws:
IllegalStateException
- if asecondary repository
was specified and it belongs to a differenthierarchy
than the primary repository
-
exclude
@Nonnull public CommitsBetweenRequest.Builder exclude(@Nullable String value, @Nullable String... values) -
exclude
-
include
@Nonnull public CommitsBetweenRequest.Builder include(@Nullable String value, @Nullable String... values) -
include
-
secondaryRepository
-
self
- Specified by:
self
in classAbstractCommitsRequest.AbstractCommitsRequestBuilder<CommitsBetweenRequest.Builder>
-