Class SearchInsightReportRequest.Builder
java.lang.Object
com.atlassian.bitbucket.codeinsights.report.AbstractInsightReportRequest.AbstractBuilder<SearchInsightReportRequest.Builder>
com.atlassian.bitbucket.codeinsights.report.SearchInsightReportRequest.Builder
- Enclosing class:
- SearchInsightReportRequest
public static final class SearchInsightReportRequest.Builder
extends AbstractInsightReportRequest.AbstractBuilder<SearchInsightReportRequest.Builder>
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder
(com.atlassian.bitbucket.pull.PullRequest pullRequest) Construct a builder scoped the to search to the given pull request.Construct a builder scoped the to search to the given repository and commit. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
reportKeys
(Collection<String> reportKeys) Search for reports with the given report keys.protected SearchInsightReportRequest.Builder
self()
-
Constructor Details
-
Builder
public Builder(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest) Construct a builder scoped the to search to the given pull request. -
Builder
public Builder(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull String commit) Construct a builder scoped the to search to the given repository and commit. It is not possible to fetch reports across multiple repositories or multiple commits.
-
-
Method Details
-
build
-
reportKeys
@Nonnull public SearchInsightReportRequest.Builder reportKeys(@Nonnull Collection<String> reportKeys) Search for reports with the given report keys.- Parameters:
reportKeys
- the keys of the reports to search for- Returns:
- this builder
- Since:
- 6.9
-
self
- Specified by:
self
in classAbstractInsightReportRequest.AbstractBuilder<SearchInsightReportRequest.Builder>
-