Class Webhook
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.Webhook
-
public class Webhook extends java.lang.ObjectWebhook
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_IDstatic java.lang.StringJSON_PROPERTY_INCLUDE_FULL_SOURCEstatic java.lang.StringJSON_PROPERTY_INCLUDE_FULL_USERstatic java.lang.StringJSON_PROPERTY_SECRETstatic java.lang.StringJSON_PROPERTY_TARGETstatic java.lang.StringJSON_PROPERTY_TRIGGERSstatic java.lang.StringJSON_PROPERTY_VERSION
-
Constructor Summary
Constructors Constructor Description Webhook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookaddTriggersItem(java.lang.String triggersItem)booleanequals(java.lang.Object o)java.lang.StringgetId()A unique identifier for the webhook.java.lang.BooleangetIncludeFullSource()A boolean specifying whether webhook payloads should include the client and device object (when applicable).java.lang.BooleangetIncludeFullUser()A boolean specifying whether webhook payloads should include the complete user schema for events involving a specific user.java.lang.StringgetSecret()Webhook secret, used to verify the origin of incoming requests.java.lang.StringgetTarget()URL to be called when the webhook is triggered.java.util.List<java.lang.String>getTriggers()An array of triggers the integration is subscribed to.java.lang.StringgetVersion()Schema version of the payload delivered to this webhook.inthashCode()WebhookincludeFullSource(java.lang.Boolean includeFullSource)WebhookincludeFullUser(java.lang.Boolean includeFullUser)Webhooksecret(java.lang.String secret)voidsetIncludeFullSource(java.lang.Boolean includeFullSource)voidsetIncludeFullUser(java.lang.Boolean includeFullUser)voidsetSecret(java.lang.String secret)voidsetTarget(java.lang.String target)voidsetTriggers(java.util.List<java.lang.String> triggers)Webhooktarget(java.lang.String target)java.lang.StringtoString()Webhooktriggers(java.util.List<java.lang.String> triggers)
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final java.lang.String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VERSION
public static final java.lang.String JSON_PROPERTY_VERSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TARGET
public static final java.lang.String JSON_PROPERTY_TARGET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRIGGERS
public static final java.lang.String JSON_PROPERTY_TRIGGERS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SECRET
public static final java.lang.String JSON_PROPERTY_SECRET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INCLUDE_FULL_USER
public static final java.lang.String JSON_PROPERTY_INCLUDE_FULL_USER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INCLUDE_FULL_SOURCE
public static final java.lang.String JSON_PROPERTY_INCLUDE_FULL_SOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
@Nullable public java.lang.String getId()
A unique identifier for the webhook.- Returns:
- id
-
getVersion
@Nullable public java.lang.String getVersion()
Schema version of the payload delivered to this webhook. Can be `v1`, `v1.1` or `v2`.- Returns:
- version
-
target
public Webhook target(java.lang.String target)
-
getTarget
public java.lang.String getTarget()
URL to be called when the webhook is triggered.- Returns:
- target
-
setTarget
public void setTarget(java.lang.String target)
-
triggers
public Webhook triggers(java.util.List<java.lang.String> triggers)
-
addTriggersItem
public Webhook addTriggersItem(java.lang.String triggersItem)
-
getTriggers
public java.util.List<java.lang.String> getTriggers()
An array of triggers the integration is subscribed to. This property is case sensitive. [More details](https://docs.smooch.io/rest/#section/Webhook-Triggers).- Returns:
- triggers
-
setTriggers
public void setTriggers(java.util.List<java.lang.String> triggers)
-
secret
public Webhook secret(java.lang.String secret)
-
getSecret
@Nullable public java.lang.String getSecret()
Webhook secret, used to verify the origin of incoming requests.- Returns:
- secret
-
setSecret
public void setSecret(java.lang.String secret)
-
includeFullUser
public Webhook includeFullUser(java.lang.Boolean includeFullUser)
-
getIncludeFullUser
@Nullable public java.lang.Boolean getIncludeFullUser()
A boolean specifying whether webhook payloads should include the complete user schema for events involving a specific user.- Returns:
- includeFullUser
-
setIncludeFullUser
public void setIncludeFullUser(java.lang.Boolean includeFullUser)
-
includeFullSource
public Webhook includeFullSource(java.lang.Boolean includeFullSource)
-
getIncludeFullSource
@Nullable public java.lang.Boolean getIncludeFullSource()
A boolean specifying whether webhook payloads should include the client and device object (when applicable).- Returns:
- includeFullSource
-
setIncludeFullSource
public void setIncludeFullSource(java.lang.Boolean includeFullSource)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-