public static final class

BulkAddInsightAnnotationRequest.Builder

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

Summary

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Public Constructors
Builder(InsightReport report)
Construct a builder to add annotations to a report.
Public Methods
@Nonnull BulkAddInsightAnnotationRequest.Builder annotationRequest(SingleAddInsightAnnotationRequest value)
Add a single annotation to the existing collection of annotations.
@Nonnull BulkAddInsightAnnotationRequest.Builder annotationRequests(Iterable<SingleAddInsightAnnotationRequest> values)
Add annotation requests to be stored with the report.
@Nonnull BulkAddInsightAnnotationRequest 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)

Construct a builder to add annotations to a report.

Parameters
report report to which the annotations belong.

Public Methods

@Nonnull public BulkAddInsightAnnotationRequest.Builder annotationRequest (SingleAddInsightAnnotationRequest value)

Add a single annotation to the existing collection of annotations.

Parameters
value annotation to add
Returns
  • the builder

@Nonnull public BulkAddInsightAnnotationRequest.Builder annotationRequests (Iterable<SingleAddInsightAnnotationRequest> values)

Add annotation requests to be stored with the report.

Parameters
values annotations to be stored
Returns
  • the builder

@Nonnull public BulkAddInsightAnnotationRequest build ()

Build the request.

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