Class SetInsightAnnotationRequest.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.codeinsights.annotation.SetInsightAnnotationRequest.Builder
- Enclosing class:
- SetInsightAnnotationRequest
public static final class SetInsightAnnotationRequest.Builder
extends com.atlassian.bitbucket.util.BuilderSupport
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder
(InsightReport report, SingleAddInsightAnnotationRequest annotationRequest) Construct a builder to update an annotation on a report. -
Method Summary
Methods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
public Builder(@Nonnull InsightReport report, @Nonnull SingleAddInsightAnnotationRequest annotationRequest) Construct a builder to update an annotation on a report.- Parameters:
report
- report to which the annotations belongannotationRequest
- the new annotation details
-
-
Method Details
-
build
Build the request.- Returns:
- the newly constructed request
- Throws:
IllegalArgumentException
- if duplicate external ids are present in the collection of AnnotationRequests
-