Class PullRequestDeclinedForIssueBean

java.lang.Object
com.codebarrel.automation.api.devops.event.PullRequestDeclinedForIssueBean
All Implemented Interfaces:
IssueAssociatedBean<com.atlassian.devops.schemas.pullrequest.PullRequestDeclined>

public class PullRequestDeclinedForIssueBean extends Object implements IssueAssociatedBean<com.atlassian.devops.schemas.pullrequest.PullRequestDeclined>
A "fan-out" of the original PullRequestDeclined event associated with a single issue.

This model is used rather than the external PullRequestDeclined so that rules can execute in the context of a single issue without requiring branching.

  • Constructor Details

    • PullRequestDeclinedForIssueBean

      public PullRequestDeclinedForIssueBean(@Nonnull com.atlassian.devops.schemas.IssueAssociation associatedIssue, @Nonnull com.atlassian.devops.schemas.pullrequest.PullRequestDeclined pullRequestDeclinedEvent)
  • Method Details

    • getDevopsEvent

      @Nonnull public com.atlassian.devops.schemas.pullrequest.PullRequestDeclined getDevopsEvent()
      Specified by:
      getDevopsEvent in interface IssueAssociatedBean<com.atlassian.devops.schemas.pullrequest.PullRequestDeclined>
    • getAssociatedIssue

      @Nonnull public com.atlassian.devops.schemas.IssueAssociation getAssociatedIssue()
      Specified by:
      getAssociatedIssue in interface IssueAssociatedBean<com.atlassian.devops.schemas.pullrequest.PullRequestDeclined>
    • getSmartValueProvider

      public SmartValueProvider getSmartValueProvider()
      Specified by:
      getSmartValueProvider in interface IssueAssociatedBean<com.atlassian.devops.schemas.pullrequest.PullRequestDeclined>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object