public static class CompareRequest.Builder extends Object
Constructor and Description |
---|
Builder() |
Builder(CompareDiffRequest request) |
Builder(PullRequest pullRequest)
Convenience constructor for creating a
Builder using the refs from a provided PullRequest . |
Modifier and Type | Method and Description |
---|---|
CompareRequest |
build() |
CompareRequest.Builder |
fromRef(CompareRef fromRef) |
CompareRequest.Builder |
fromRef(String id,
Repository repository) |
CompareRequest.Builder |
toRef(CompareRef toRef) |
CompareRequest.Builder |
toRef(String id,
Repository repository) |
public Builder()
public Builder(@Nonnull CompareDiffRequest request)
public Builder(@Nonnull PullRequest pullRequest)
Builder
using the refs from a provided PullRequest
.pullRequest
- the pull request to build a CompareRequest
from@Nonnull public CompareRequest build()
@Nonnull public CompareRequest.Builder fromRef(@Nonnull CompareRef fromRef)
@Nonnull public CompareRequest.Builder fromRef(@Nonnull String id, @Nonnull Repository repository)
@Nonnull public CompareRequest.Builder toRef(@Nonnull CompareRef toRef)
@Nonnull public CompareRequest.Builder toRef(@Nonnull String id, @Nonnull Repository repository)
Copyright © 2022 Atlassian. All rights reserved.