public class Webhook extends NamedModel<Long>
| Constructor and Description |
|---|
Webhook() |
| Modifier and Type | Method and Description |
|---|---|
String |
getApiClientId()
Get the API client Id corresponding to third-party app that created the webhook.
|
String |
getApiClientName()
Get the API client name corresponding to third-party app that created the webhook.
|
String |
getCallbackUrl()
Get the HTTPS URL where callbacks will be sent
|
Date |
getCreatedAt()
Gets the time that the webhook was created.
|
String |
getDisabledDetails()
Get the details about the reason the webhook was disabled.
|
List<String> |
getEvents()
Get the array of events that are subscribed to
|
Date |
getModifiedAt()
Get the time that the webhook was last modified.
|
String |
getScope()
Get the scope of the subscription.
|
Long |
getScopeObjectId()
Get the Id of the object that is subscripted to
|
String |
getSharedSecret()
Get the shared secret for this webhook, randomly generated by Smartsheet
|
WebhookStats |
getStats()
Get the statistics for this webhook.
|
WebhookStatus |
getStatus()
Get the webhook status
|
Integer |
getVersion()
Get the webhook version.
|
Boolean |
isEnabled()
Get flag indicating whether the webhook is on(true) or off(false)
|
Webhook |
setApiClientId(String apiClientId)
Set the API client Id corresponding to third-party app that created the webhook.
|
Webhook |
setApiClientName(String apiClientName)
Set the API client name corresponding to third-party app that created the webhook.
|
Webhook |
setCallbackUrl(String callbackUrl)
Set the HTTPS URL where callbacks will be sent
|
Webhook |
setCreatedAt(Date createdAt)
Set the time the webhook was created.
|
Webhook |
setDisabledDetails(String disabledDetails)
Set the details about the reason the webhook was disabled.
|
Webhook |
setEnabled(Boolean enabled)
Set flag indicating whether the webhook is on or off.
|
Webhook |
setEvents(List<String> events)
Set the array of events that are subscribed to
|
Webhook |
setModifiedAt(Date modifiedAt)
Set the time that the webhook was last modified.
|
Webhook |
setScope(String scope)
Set the scope of the subscription
|
Webhook |
setScopeObjectId(Long scopeObjectId)
Set the Id of the object that is subscribed to
|
Webhook |
setSharedSecret(String sharedSecret)
Set the shared secret for this webhook
|
Webhook |
setStats(WebhookStats stats)
Set the statistics for this webhook.
|
Webhook |
setStatus(WebhookStatus status)
Set the webhook status
|
Webhook |
setVersion(Integer version)
Set the webhook version
|
getName, setNameequals, getId, hashCode, setIdpublic String getApiClientId()
public Webhook setApiClientId(String apiClientId)
apiClientId - public String getApiClientName()
public Webhook setApiClientName(String apiClientName)
apiClientName - public String getScope()
public Webhook setScope(String scope)
scope - public Long getScopeObjectId()
public Webhook setScopeObjectId(Long scopeObjectId)
scopeObjectId - public List<String> getEvents()
public Webhook setEvents(List<String> events)
events - public String getCallbackUrl()
public Webhook setCallbackUrl(String callbackUrl)
callbackUrl - public String getSharedSecret()
public Webhook setSharedSecret(String sharedSecret)
sharedSecret - public Boolean isEnabled()
public Webhook setEnabled(Boolean enabled)
enabled - public WebhookStatus getStatus()
public Webhook setStatus(WebhookStatus status)
status - public String getDisabledDetails()
public Webhook setDisabledDetails(String disabledDetails)
disabledDetails - public Integer getVersion()
public WebhookStats getStats()
public Webhook setStats(WebhookStats stats)
stats - public Date getCreatedAt()
public Webhook setCreatedAt(Date createdAt)
createdAt - public Date getModifiedAt()
Copyright © 2014–2017 Smartsheet. All rights reserved.