Class SingleAddInsightAnnotationRequest.Builder

java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.codeinsights.AbstractInsightsBuilder
com.atlassian.bitbucket.codeinsights.annotation.SingleAddInsightAnnotationRequest.Builder
Enclosing class:
SingleAddInsightAnnotationRequest

public static final class SingleAddInsightAnnotationRequest.Builder extends AbstractInsightsBuilder
  • Constructor Details

    • Builder

      public Builder(int line, @Nonnull String message, @Nonnull String path)
      Create a new builder to create a new annotation. By default the annotation will be created with a LOW severity.
      Parameters:
      line - line in the file that this annotation applies to. Must be a value greater or equal to 0. A value of 0 indicates it is a file level annotation.
      message - message for the annotation
      path - relative path to the file for this this annotation applies. A blank path indicates it is a commit-level annotation.
      Since:
      5.15
    • Builder

      public Builder(@Nonnull String message)
      Create a new builder to create a new annotation. By default the annotation will be created with a LOW severity, a line of 0 and a blank path.
      Parameters:
      message - message for the annotation
      Since:
      6.7
    • Builder

      public Builder(@Nonnull InsightAnnotation annotation)
      Create a new builder to create a new annotation, setting all fields to the values of the given annotation
      Parameters:
      annotation - The annotation to create
  • Method Details