Package com.atlassian.bamboo.webhook
Class WebhookResponseDto
- java.lang.Object
-
- com.atlassian.bamboo.webhook.WebhookResponseDto
-
- All Implemented Interfaces:
BambooIdProvider,WebhookResponse
public class WebhookResponseDto extends Object implements WebhookResponse
-
-
Constructor Summary
Constructors Constructor Description WebhookResponseDto(Long responseWebhookId, UUID uuid, String templateName, String eventName, String url, org.springframework.http.HttpMethod httpMethod, WebhookResponseStatus responseStatus, Integer statusCode, String planResultKey, Long deploymentResultId, int retriesCount, Date sendTime, Date receiveTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable LonggetDeploymentResultId()@NotNull StringgetEventName()@NotNull org.springframework.http.HttpMethodgetHttpMethod()longgetId()@Nullable StringgetPlanResultKey()@Nullable DategetReceiveTime()@NotNull WebhookResponseStatusgetResponseStatus()intgetRetriesCount()@NotNull DategetSendTime()IntegergetStatusCode()@NotNull StringgetTemplateName()@NotNull StringgetUrl()@NotNull UUIDgetUuid()
-
-
-
Constructor Detail
-
WebhookResponseDto
public WebhookResponseDto(Long responseWebhookId, UUID uuid, String templateName, String eventName, String url, org.springframework.http.HttpMethod httpMethod, WebhookResponseStatus responseStatus, Integer statusCode, String planResultKey, Long deploymentResultId, int retriesCount, Date sendTime, Date receiveTime)
-
-
Method Detail
-
getHttpMethod
@NotNull public @NotNull org.springframework.http.HttpMethod getHttpMethod()
- Specified by:
getHttpMethodin interfaceWebhookResponse- Returns:
- HTTP method of sent webhook
-
getUrl
@NotNull public @NotNull String getUrl()
- Specified by:
getUrlin interfaceWebhookResponse- Returns:
- destination URL on which webhook was sent.
-
getResponseStatus
@NotNull public @NotNull WebhookResponseStatus getResponseStatus()
- Specified by:
getResponseStatusin interfaceWebhookResponse- Returns:
- current status of webhook response.
-
getStatusCode
public Integer getStatusCode()
- Specified by:
getStatusCodein interfaceWebhookResponse- Returns:
- current status code of webhook response. Null if there are no status code
-
getTemplateName
@NotNull public @NotNull String getTemplateName()
- Specified by:
getTemplateNamein interfaceWebhookResponse- Returns:
- name of template of sent webhook.
-
getEventName
@NotNull public @NotNull String getEventName()
- Specified by:
getEventNamein interfaceWebhookResponse- Returns:
- name of the event which triggered sending webhook.
-
getUuid
@NotNull public @NotNull UUID getUuid()
- Specified by:
getUuidin interfaceWebhookResponse- Returns:
- uuid of sent webhook.
-
getRetriesCount
public int getRetriesCount()
- Specified by:
getRetriesCountin interfaceWebhookResponse- Returns:
- number of retries of sending webhook.
-
getPlanResultKey
@Nullable public @Nullable String getPlanResultKey()
- Specified by:
getPlanResultKeyin interfaceWebhookResponse- 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:
getDeploymentResultIdin interfaceWebhookResponse- 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:
getSendTimein interfaceWebhookResponse- Returns:
- time of sending webhook.
-
getReceiveTime
@Nullable public @Nullable Date getReceiveTime()
- Specified by:
getReceiveTimein interfaceWebhookResponse- Returns:
- time of receiving webhook response.
-
getId
public long getId()
- Specified by:
getIdin interfaceBambooIdProvider
-
-