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
ConstructorsConstructorDescriptionBuilder(CommitsBetweenRequest request) Creates a newBuilderby copying the specifiedrequest.Builder(PullRequest pullRequest) Creates a newBuilderwith 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.Builderself()Methods inherited from class com.atlassian.bitbucket.commit.AbstractCommitsRequest.AbstractCommitsRequestBuilder
followRenames, ignoreMissing, maxMessageLength, merges, order, path, paths, paths, propertyKey, propertyKeys, propertyKeysMethods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
-
Builder
Creates a newBuilderby copying the specifiedrequest.- Parameters:
request- the request to copy
-
Builder
Creates a newBuilderwith defaults appropriate for retrieving the commits which are included by the specifiedPullRequest.The new builder:
- Uses the
to ref'sRepositoryas therepositoryfor the request - Uses the
from ref'sRepositoryas thesecondary repository, if the providedPullRequestiscross-repository Includesthefrom refExcludestheto ref
- Parameters:
pullRequest- the pull request to retrieve commits for
- Uses the
-
-
Method Details
-
build
- Returns:
- a new
CommitsBetweenRequestassembled from the provided values - Throws:
IllegalStateException- if asecondary repositorywas specified and it belongs to a differenthierarchythan 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:
selfin classAbstractCommitsRequest.AbstractCommitsRequestBuilder<CommitsBetweenRequest.Builder>
-