Class WebhookResponseDto

    • Constructor Detail

    • Method Detail

      • getHttpMethod

        @NotNull
        public @NotNull org.springframework.http.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.
      • getStatusCode

        public Integer getStatusCode()
        Specified by:
        getStatusCode in interface WebhookResponse
        Returns:
        current status code of webhook response. Null if there are no status code
      • 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 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 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.