Class RepositoryHookResult.Builder
java.lang.Object
com.atlassian.bitbucket.hook.repository.RepositoryHookResult.Builder
- Enclosing class:
- RepositoryHookResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(RepositoryHookResult value) Includes allvetoes
from another resultbuild()
boolean
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
add
Includes allvetoes
from another result- Parameters:
value
- the other result to include- Returns:
this
-
build
- Returns:
- the result
-
isRejected
public boolean isRejected() -
veto
@Nonnull public RepositoryHookResult.Builder veto(@Nonnull String summaryMessage, @Nonnull String detailedMessage) - Parameters:
summaryMessage
- a short summary of the reason the request is rejecteddetailedMessage
- a detailed description of the reason for rejecting the request- Returns:
this
-