Class SearchAnnotationRequest.Builder
java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.codeinsights.annotation.SearchAnnotationRequest.Builder
- Enclosing class:
- SearchAnnotationRequest
public static class SearchAnnotationRequest.Builder
extends com.atlassian.bitbucket.util.BuilderSupport
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.util.BuilderSupport
NOT_BLANK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotationLocation
(AnnotationLocation annotationLocation) build()
externalId
(String value) externalIds
(Collection<String> values) Add the path to the builder.paths
(Collection<String> values) Add all the paths to the builder.reportKeys
(Collection<String> values) severities
(Iterable<AnnotationSeverity> values) Add all the severities to the builder.severity
(AnnotationSeverity value) Add the given severity to the builder.types
(Iterable<AnnotationType> values) Add the given types to the builderMethods inherited from class com.atlassian.bitbucket.util.BuilderSupport
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank
-
Constructor Details
-
Builder
public Builder(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull String commitId) -
Builder
public Builder(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest)
-
-
Method Details
-
build
-
reportKey
-
reportKeys
-
externalIds
-
externalId
-
path
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
-
paths
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
-
severities
@Nonnull public SearchAnnotationRequest.Builder severities(@Nonnull 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
-
severity
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
-
types
Add the given types to the builder- Parameters:
values
- types to add- Returns:
- the builder
-
annotationLocation
@Nonnull public SearchAnnotationRequest.Builder annotationLocation(AnnotationLocation annotationLocation)
-