public static class

RepositoryHookResult.Builder

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.hook.repository.RepositoryHookResult.Builder

Summary

Public Constructors
Builder()
Builder(RepositoryHookResult result)
Public Methods
@Nonnull RepositoryHookResult.Builder add(RepositoryHookResult value)
Includes all vetoes from another result
@Nonnull RepositoryHookResult build()
boolean isRejected()
@Nonnull RepositoryHookResult.Builder veto(String summaryMessage, String detailedMessage)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

public Builder (RepositoryHookResult result)

Public Methods

@Nonnull public RepositoryHookResult.Builder add (RepositoryHookResult value)

Includes all vetoes from another result

Parameters
value the other result to include
Returns
  • the builder

@Nonnull public RepositoryHookResult build ()

Returns
  • the result

public boolean isRejected ()

@Nonnull public RepositoryHookResult.Builder veto (String summaryMessage, 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
  • the builder