Class WebhookResponseDto

java.lang.Object
com.atlassian.bamboo.webhook.WebhookResponseDto
All Implemented Interfaces:
BambooIdProvider, WebhookResponse

public class WebhookResponseDto extends Object implements WebhookResponse
  • Constructor Details

  • Method Details

    • getHttpMethod

      @NotNull public @NotNull HttpMethod getHttpMethod()
      Specified by:
      getHttpMethod in interface WebhookResponse
      Returns:
      HTTP method of sent webhook
    • getUrl

      @NotNull public @NotNull String getUrl()
      Specified by:
      getUrl in interface WebhookResponse
      Returns:
      destination URL on which webhook was sent.
    • getResponseStatus

      @NotNull public @NotNull WebhookResponseStatus getResponseStatus()
      Specified by:
      getResponseStatus in interface WebhookResponse
      Returns:
      current status of webhook response.
    • getStatusCode

      public Integer getStatusCode()
      Specified by:
      getStatusCode in interface WebhookResponse
      Returns:
      current status code of webhook response. Null if there are no status code
    • getTemplateName

      @NotNull public @NotNull String getTemplateName()
      Specified by:
      getTemplateName in interface WebhookResponse
      Returns:
      name of template of sent webhook.
    • getEventName

      @NotNull public @NotNull String getEventName()
      Specified by:
      getEventName in interface WebhookResponse
      Returns:
      name of the event which triggered sending webhook.
    • getUuid

      @NotNull public @NotNull UUID getUuid()
      Specified by:
      getUuid in interface WebhookResponse
      Returns:
      uuid of sent webhook.
    • getRetriesCount

      public int getRetriesCount()
      Specified by:
      getRetriesCount in interface WebhookResponse
      Returns:
      number of retries of sending webhook.
    • getPlanResultKey

      @Nullable public @Nullable String getPlanResultKey()
      Specified by:
      getPlanResultKey in interface WebhookResponse
      Returns:
      plan result key associated with webhook. Null if webhook is not associated with any plan result.
    • getDeploymentResultId

      @Nullable public @Nullable Long getDeploymentResultId()
      Specified by:
      getDeploymentResultId in interface WebhookResponse
      Returns:
      deployment result id associated with webhook. Null if webhook is not associated with any deployment result.
    • getSendTime

      @NotNull public @NotNull Date getSendTime()
      Specified by:
      getSendTime in interface WebhookResponse
      Returns:
      time of sending webhook.
    • getReceiveTime

      @Nullable public @Nullable Date getReceiveTime()
      Specified by:
      getReceiveTime in interface WebhookResponse
      Returns:
      time of receiving webhook response.
    • getId

      public long getId()
      Specified by:
      getId in interface BambooIdProvider