Class SetInsightReportRequest.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.codeinsights.AbstractInsightsBuilder
com.atlassian.bitbucket.codeinsights.report.SetInsightReportRequest.Builder
- Enclosing class:
SetInsightReportRequest
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
coverageProviderKey
(String value) A key representing the coverage provider.data
(InsightReportData value) data
(List<InsightReportData> values) Some text to display on the insight report.The URL to the product's page that contains the original insight dataLogo to display on the report.The reporter of the tool that created the report.result
(InsightResult value) Result of the report.Methods inherited from class com.atlassian.bitbucket.codeinsights.AbstractInsightsBuilder
validate
Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
public Builder(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull String commitId, @Nonnull String key, @Nonnull String title) Create a builder with all the required fields.- Parameters:
repository
- repository that the report belongs tocommitId
- the hash for the commit to associate with this reportkey
- the key for the report to create. Cannot be blank and must be under 450 characters longtitle
- the title for the report to create. Cannot be blank and must be under 450 characters long- Throws:
IllegalArgumentException
- if any value does not pass validation. See message for details
-
-
Method Details
-
build
-
coverageProviderKey
A key representing the coverage provider.- Parameters:
value
- if present must be shorter than 2000 chars- Returns:
- the builder
- Since:
- 6.8
-
data
-
data
-
details
Some text to display on the insight report. A longer text field providing more details about the report.- Parameters:
value
- if present must be shorter than 2000 chars- Returns:
- the builder
-
link
The URL to the product's page that contains the original insight data- Parameters:
value
- link to the reporting tool- Returns:
- the builder
-
logoUrl
Logo to display on the report.- Parameters:
value
- the reporter's logo to display on the insight report- Returns:
- the builder
-
result
Result of the report.- Parameters:
value
- the result of the report- Returns:
- the builder
-
reporter
The reporter of the tool that created the report.- Parameters:
value
- if present, must be under 450 characters long- Returns:
- the builder
-