public static final class

SetInsightAnnotationRequest.Builder

extends BuilderSupport
java.lang.Object
   ↳ com.atlassian.bitbucket.util.BuilderSupport
     ↳ com.atlassian.bitbucket.codeinsights.annotation.SetInsightAnnotationRequest.Builder

Summary

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Public Constructors
Builder(InsightReport report, SingleAddInsightAnnotationRequest annotationRequest)
Construct a builder to update an annotation on a report.
Public Methods
@Nonnull SetInsightAnnotationRequest build()
Build the request.
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Public Constructors

public Builder (InsightReport report, SingleAddInsightAnnotationRequest annotationRequest)

Construct a builder to update an annotation on a report.

Parameters
report report to which the annotations belong
annotationRequest the new annotation details

Public Methods

@Nonnull public SetInsightAnnotationRequest build ()

Build the request.

Returns
  • the newly constructed request
Throws
IllegalArgumentException if duplicate external ids are present in the collection of AnnotationRequests