Class RepositoryHookResult.Builder

java.lang.Object
com.atlassian.bitbucket.hook.repository.RepositoryHookResult.Builder
Enclosing class:
RepositoryHookResult

public static class RepositoryHookResult.Builder extends Object
  • Constructor Details

  • Method Details

    • add

      @Nonnull public RepositoryHookResult.Builder add(@Nullable RepositoryHookResult value)
      Includes all vetoes from another result
      Parameters:
      value - the other result to include
      Returns:
      this
    • build

      @Nonnull public RepositoryHookResult 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 rejected
      detailedMessage - a detailed description of the reason for rejecting the request
      Returns:
      this