public static class

SearchAnnotationRequest.Builder

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

Summary

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Public Constructors
Builder(Repository repository, String commitId)
Builder(PullRequest pullRequest)
Public Methods
@Nonnull SearchAnnotationRequest build()
@Nonnull SearchAnnotationRequest.Builder externalId(String value)
@Nonnull SearchAnnotationRequest.Builder externalIds(Collection<String> values)
@Nonnull SearchAnnotationRequest.Builder path(String value)
Add the path to the builder.
@Nonnull SearchAnnotationRequest.Builder paths(Collection<String> values)
Add all the paths to the builder.
@Nonnull SearchAnnotationRequest.Builder reportKey(String value)
@Nonnull SearchAnnotationRequest.Builder reportKeys(Collection<String> values)
@Nonnull SearchAnnotationRequest.Builder severities(Iterable<AnnotationSeverity> values)
Add all the severities to the builder.
@Nonnull SearchAnnotationRequest.Builder severity(AnnotationSeverity value)
Add the given severity to the builder.
@Nonnull SearchAnnotationRequest.Builder types(Iterable<AnnotationType> values)
Add the given types to the builder
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Public Constructors

public Builder (Repository repository, String commitId)

public Builder (PullRequest pullRequest)

Public Methods

@Nonnull public SearchAnnotationRequest build ()

@Nonnull public SearchAnnotationRequest.Builder externalId (String value)

@Nonnull public SearchAnnotationRequest.Builder externalIds (Collection<String> values)

@Nonnull public SearchAnnotationRequest.Builder path (String value)

Add the path to the builder. The path is not validated that they exist, the path is case sensitive

Parameters
value path to add
Returns
  • the builder

@Nonnull public SearchAnnotationRequest.Builder paths (Collection<String> values)

Add all the paths to the builder. The paths are not validated that they exist they are case sensitive.

Parameters
values paths to add to the request
Returns
  • the builder

@Nonnull public SearchAnnotationRequest.Builder reportKey (String value)

@Nonnull public SearchAnnotationRequest.Builder reportKeys (Collection<String> values)

@Nonnull public SearchAnnotationRequest.Builder severities (Iterable<AnnotationSeverity> values)

Add all the severities to the builder. If the same severity is added more than once, it will only be included once in the final request.

Parameters
values severities to add
Returns
  • the builder

@Nonnull public SearchAnnotationRequest.Builder severity (AnnotationSeverity value)

Add the given severity to the builder. If the severity already exists in the builder the new one will not be added.

Parameters
value severity to add
Returns
  • the builder

@Nonnull public SearchAnnotationRequest.Builder types (Iterable<AnnotationType> values)

Add the given types to the builder

Parameters
values types to add
Returns
  • the builder