Class RepositoryHookResult.Builder
java.lang.Object
com.atlassian.bitbucket.hook.repository.RepositoryHookResult.Builder
- Enclosing class:
- RepositoryHookResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(RepositoryHookResult value) Includes allvetoesfrom another resultbuild()boolean
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
add
Includes allvetoesfrom 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
-