Class ImmutableWebhook

java.lang.Object
com.atlassian.crowd.model.webhook.ImmutableWebhook
All Implemented Interfaces:
Webhook

public class ImmutableWebhook extends Object implements Webhook
  • Constructor Details

  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface Webhook
    • getEndpointUrl

      public String getEndpointUrl()
      Specified by:
      getEndpointUrl in interface Webhook
    • getApplication

      public Application getApplication()
      Specified by:
      getApplication in interface Webhook
    • getToken

      public String getToken()
      Specified by:
      getToken in interface Webhook
    • getOldestFailureDate

      public Date getOldestFailureDate()
      Specified by:
      getOldestFailureDate in interface Webhook
      Returns:
      Date of the last failed delivery that has not been followed by any successful delivery. May be null if the last delivery was successful, or if no delivery has been attempted yet (i.e., new Webhooks).
    • getFailuresSinceLastSuccess

      public long getFailuresSinceLastSuccess()
      Specified by:
      getFailuresSinceLastSuccess in interface Webhook
      Returns:
      Number of consecutive failed attempts to deliver the ping to the Webhook since the last successful delivery, or since the Webhook was created. May be zero if the last delivery was successful, or if the Webhook has just been created.
    • builder

      public static ImmutableWebhook.Builder builder()
    • builder

      public static ImmutableWebhook.Builder builder(Webhook data)
    • 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