public final class ResthookSubscription extends Object
| Constructor and Description |
|---|
ResthookSubscription() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAutoDeactivateReason()
Get the autoDeactivateReason property: The reason for the subscription being auto deactivated.
|
ResthookEvent |
getEvent()
Get the event property: The event name to subscribe to.
|
Integer |
getId()
Get the id property: Resthook subscription's ID.
|
String |
getTargetUrl()
Get the targetUrl property: URL of the resthook's receiver.
|
ResthookSubscriptionVersion |
getVersion()
Get the version property: Version of the resthook subscription.
|
Boolean |
isActive()
Get the active property: Resthooks only fire for active subscriptions.
|
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.
|
ResthookSubscription |
setActive(Boolean active)
Set the active property: Resthooks only fire for active subscriptions.
|
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.
|
ResthookSubscription |
setAutoDeactivateReason(String autoDeactivateReason)
Set the autoDeactivateReason property: The reason for the subscription being auto deactivated.
|
ResthookSubscription |
setEvent(ResthookEvent event)
Set the event property: The event name to subscribe to.
|
ResthookSubscription |
setId(Integer id)
Set the id property: Resthook subscription's ID.
|
ResthookSubscription |
setTargetUrl(String targetUrl)
Set the targetUrl property: URL of the resthook's receiver.
|
ResthookSubscription |
setVersion(ResthookSubscriptionVersion version)
Set the version property: Version of the resthook subscription.
|
public Integer getId()
public ResthookSubscription setId(Integer id)
id - the id value to set.public ResthookEvent getEvent()
public ResthookSubscription setEvent(ResthookEvent event)
event - the event value to set.public String getTargetUrl()
public ResthookSubscription setTargetUrl(String targetUrl)
targetUrl - the targetUrl value to set.public Boolean isActive()
public ResthookSubscription setActive(Boolean active)
active - the active value to set.public Boolean isAutoDeactivated()
public ResthookSubscription setAutoDeactivated(Boolean autoDeactivated)
autoDeactivated - the autoDeactivated value to set.public String getAutoDeactivateReason()
public ResthookSubscription setAutoDeactivateReason(String autoDeactivateReason)
autoDeactivateReason - the autoDeactivateReason value to set.public ResthookSubscriptionVersion getVersion()
public ResthookSubscription setVersion(ResthookSubscriptionVersion version)
version - the version value to set.Copyright © 2023. All rights reserved.