Class ResthookSubscription


  • public final class ResthookSubscription
    extends Object
    The ResthookSubscription model.
    • Constructor Detail

      • ResthookSubscription

        public ResthookSubscription()
    • Method Detail

      • getId

        public int getId()
        Get the id property: Resthook subscription's ID.
        Returns:
        the id value.
      • setId

        public ResthookSubscription setId​(int id)
        Set the id property: Resthook subscription's ID.
        Parameters:
        id - the id value to set.
        Returns:
        the ResthookSubscription object itself.
      • getEvent

        public ResthookEvent getEvent()
        Get the event property: The event name to subscribe to.
        Returns:
        the event value.
      • setEvent

        public ResthookSubscription setEvent​(ResthookEvent event)
        Set the event property: The event name to subscribe to.
        Parameters:
        event - the event value to set.
        Returns:
        the ResthookSubscription object itself.
      • getOrganization

        public Organization getOrganization()
        Get the organization property: The organization property.
        Returns:
        the organization value.
      • setOrganization

        public ResthookSubscription setOrganization​(Organization organization)
        Set the organization property: The organization property.
        Parameters:
        organization - the organization value to set.
        Returns:
        the ResthookSubscription object itself.
      • getTargetUrl

        public String getTargetUrl()
        Get the targetUrl property: URL of the resthook's receiver.
        Returns:
        the targetUrl value.
      • setTargetUrl

        public ResthookSubscription setTargetUrl​(String targetUrl)
        Set the targetUrl property: URL of the resthook's receiver.
        Parameters:
        targetUrl - the targetUrl value to set.
        Returns:
        the ResthookSubscription object itself.
      • isActive

        public boolean isActive()
        Get the active property: Resthooks only fire for active subscriptions.
        Returns:
        the active value.
      • setActive

        public ResthookSubscription setActive​(boolean active)
        Set the active property: Resthooks only fire for active subscriptions.
        Parameters:
        active - the active value to set.
        Returns:
        the ResthookSubscription object itself.
      • isAutoDeactivated

        public boolean isAutoDeactivated()
        Get the autoDeactivated property: Resthook subscriptions can be auto deactivated if the receiver continuously returns error status code over a period of time.
        Returns:
        the autoDeactivated value.
      • setAutoDeactivated

        public ResthookSubscription setAutoDeactivated​(boolean autoDeactivated)
        Set the autoDeactivated property: Resthook subscriptions can be auto deactivated if the receiver continuously returns error status code over a period of time.
        Parameters:
        autoDeactivated - the autoDeactivated value to set.
        Returns:
        the ResthookSubscription object itself.
      • getAutoDeactivateReason

        public String getAutoDeactivateReason()
        Get the autoDeactivateReason property: The reason for the subscription being auto deactivated. May contains the error response that the receiver returned.
        Returns:
        the autoDeactivateReason value.
      • setAutoDeactivateReason

        public ResthookSubscription setAutoDeactivateReason​(String autoDeactivateReason)
        Set the autoDeactivateReason property: The reason for the subscription being auto deactivated. May contains the error response that the receiver returned.
        Parameters:
        autoDeactivateReason - the autoDeactivateReason value to set.
        Returns:
        the ResthookSubscription object itself.
      • getVersion

        public ResthookSubscriptionVersion getVersion()
        Get the version property: Version of the resthook subscription. Determines the resthook body being fired.
        Returns:
        the version value.
      • setVersion

        public ResthookSubscription setVersion​(ResthookSubscriptionVersion version)
        Set the version property: Version of the resthook subscription. Determines the resthook body being fired.
        Parameters:
        version - the version value to set.
        Returns:
        the ResthookSubscription object itself.