Package com.smartsheet.api.models
Class Webhook
- java.lang.Object
-
- com.smartsheet.api.models.IdentifiableModel<T>
-
- com.smartsheet.api.models.NamedModel<java.lang.Long>
-
- com.smartsheet.api.models.Webhook
-
public class Webhook extends NamedModel<java.lang.Long>
-
-
Constructor Summary
Constructors Constructor Description Webhook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getApiClientId()
Get the API client ID corresponding to third-party app that created the webhook.java.lang.String
getApiClientName()
Get the API client name corresponding to third-party app that created the webhook.java.lang.String
getCallbackUrl()
Get the HTTPS URL where callbacks will be sentjava.util.Date
getCreatedAt()
Gets the time that the webhook was created.java.lang.String
getDisabledDetails()
Get the details about the reason the webhook was disabled.java.util.List<java.lang.String>
getEvents()
Get the array of events that are subscribed tojava.util.Date
getModifiedAt()
Get the time that the webhook was last modified.java.lang.String
getScope()
Get the scope of the subscription.java.lang.Long
getScopeObjectId()
Get the ID of the object that is subscripted tojava.lang.String
getSharedSecret()
Get the shared secret for this webhook, randomly generated by SmartsheetWebhookStats
getStats()
Get the statistics for this webhook.WebhookStatus
getStatus()
Get the webhook statusWebhookSubscope
getSubscope()
Get the webhook subscopejava.lang.Integer
getVersion()
Get the webhook version.java.lang.Boolean
isEnabled()
Get flag indicating whether the webhook is on(true) or off(false)Webhook
setApiClientId(java.lang.String apiClientId)
Set the API client ID corresponding to third-party app that created the webhook.Webhook
setApiClientName(java.lang.String apiClientName)
Set the API client name corresponding to third-party app that created the webhook.Webhook
setCallbackUrl(java.lang.String callbackUrl)
Set the HTTPS URL where callbacks will be sentWebhook
setCreatedAt(java.util.Date createdAt)
Set the time the webhook was created.Webhook
setDisabledDetails(java.lang.String disabledDetails)
Set the details about the reason the webhook was disabled.Webhook
setEnabled(java.lang.Boolean enabled)
Set flag indicating whether the webhook is on or off.Webhook
setEvents(java.util.List<java.lang.String> events)
Set the array of events that are subscribed toWebhook
setModifiedAt(java.util.Date modifiedAt)
Set the time that the webhook was last modified.Webhook
setName(java.lang.String name)
Provide an 'override' of setName (returns Webhook not NamedModel)Webhook
setScope(java.lang.String scope)
Set the scope of the subscriptionWebhook
setScopeObjectId(java.lang.Long scopeObjectId)
Set the ID of the object that is subscribed toWebhook
setSharedSecret(java.lang.String sharedSecret)
Set the shared secret for this webhookWebhook
setStats(WebhookStats stats)
Set the statistics for this webhook.Webhook
setStatus(WebhookStatus status)
Set the webhook statusWebhook
setSubscope(WebhookSubscope subscope)
Set the Webhook subscopeWebhook
setVersion(java.lang.Integer version)
Set the webhook version-
Methods inherited from class com.smartsheet.api.models.NamedModel
getName
-
Methods inherited from class com.smartsheet.api.models.IdentifiableModel
equals, getId, hashCode, setId
-
-
-
-
Method Detail
-
getApiClientId
public java.lang.String getApiClientId()
Get the API client ID corresponding to third-party app that created the webhook.- Returns:
- apiClientId
-
setApiClientId
public Webhook setApiClientId(java.lang.String apiClientId)
Set the API client ID corresponding to third-party app that created the webhook.
-
getScopeObjectId
public java.lang.Long getScopeObjectId()
Get the ID of the object that is subscripted to- Returns:
- scopeObjectId
-
setScopeObjectId
public Webhook setScopeObjectId(java.lang.Long scopeObjectId)
Set the ID of the object that is subscribed to
-
getApiClientName
public java.lang.String getApiClientName()
Get the API client name corresponding to third-party app that created the webhook.- Returns:
- apiClientName;
-
setApiClientName
public Webhook setApiClientName(java.lang.String apiClientName)
Set the API client name corresponding to third-party app that created the webhook.
-
getCallbackUrl
public java.lang.String getCallbackUrl()
Get the HTTPS URL where callbacks will be sent
-
setCallbackUrl
public Webhook setCallbackUrl(java.lang.String callbackUrl)
Set the HTTPS URL where callbacks will be sent
-
getCreatedAt
public java.util.Date getCreatedAt()
Gets the time that the webhook was created.- Returns:
- createdAt
-
setCreatedAt
public Webhook setCreatedAt(java.util.Date createdAt)
Set the time the webhook was created.
-
getDisabledDetails
public java.lang.String getDisabledDetails()
Get the details about the reason the webhook was disabled.- Returns:
- disabledDetails
-
setDisabledDetails
public Webhook setDisabledDetails(java.lang.String disabledDetails)
Set the details about the reason the webhook was disabled.
-
isEnabled
public java.lang.Boolean isEnabled()
Get flag indicating whether the webhook is on(true) or off(false)- Returns:
- enabled
-
setEnabled
public Webhook setEnabled(java.lang.Boolean enabled)
Set flag indicating whether the webhook is on or off.
-
getEvents
public java.util.List<java.lang.String> getEvents()
Get the array of events that are subscribed to- Returns:
- events
-
setEvents
public Webhook setEvents(java.util.List<java.lang.String> events)
Set the array of events that are subscribed to
-
getModifiedAt
public java.util.Date getModifiedAt()
Get the time that the webhook was last modified.- Returns:
- modifiedAt
-
setModifiedAt
public Webhook setModifiedAt(java.util.Date modifiedAt)
Set the time that the webhook was last modified.
-
setName
public Webhook setName(java.lang.String name)
Provide an 'override' of setName (returns Webhook not NamedModel)- Overrides:
setName
in classNamedModel<java.lang.Long>
- Parameters:
name
- the new name
-
getScope
public java.lang.String getScope()
Get the scope of the subscription.- Returns:
- scope
-
setScope
public Webhook setScope(java.lang.String scope)
Set the scope of the subscription
-
getSharedSecret
public java.lang.String getSharedSecret()
Get the shared secret for this webhook, randomly generated by Smartsheet- Returns:
- sharedSecret
-
setSharedSecret
public Webhook setSharedSecret(java.lang.String sharedSecret)
Set the shared secret for this webhook
-
getStats
public WebhookStats getStats()
Get the statistics for this webhook.- Returns:
- stats
-
setStats
public Webhook setStats(WebhookStats stats)
Set the statistics for this webhook.
-
getStatus
public WebhookStatus getStatus()
Get the webhook status- Returns:
- status
-
setStatus
public Webhook setStatus(WebhookStatus status)
Set the webhook status
-
getSubscope
public WebhookSubscope getSubscope()
Get the webhook subscope- Returns:
- subscope
-
setSubscope
public Webhook setSubscope(WebhookSubscope subscope)
Set the Webhook subscope
-
getVersion
public java.lang.Integer getVersion()
Get the webhook version.- Returns:
- version
-
setVersion
public Webhook setVersion(java.lang.Integer version)
Set the webhook version
-
-