Class WebhookBody
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.WebhookBody
-
- Direct Known Subclasses:
WebhookCreateBody
public class WebhookBody extends java.lang.ObjectWebhookBody
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_INCLUDE_FULL_SOURCEstatic java.lang.StringJSON_PROPERTY_INCLUDE_FULL_USERstatic java.lang.StringJSON_PROPERTY_TARGETstatic java.lang.StringJSON_PROPERTY_TRIGGERS
-
Constructor Summary
Constructors Constructor Description WebhookBody()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookBodyaddTriggersItem(java.lang.String triggersItem)booleanequals(java.lang.Object o)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.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.inthashCode()WebhookBodyincludeFullSource(java.lang.Boolean includeFullSource)WebhookBodyincludeFullUser(java.lang.Boolean includeFullUser)voidsetIncludeFullSource(java.lang.Boolean includeFullSource)voidsetIncludeFullUser(java.lang.Boolean includeFullUser)voidsetTarget(java.lang.String target)voidsetTriggers(java.util.List<java.lang.String> triggers)WebhookBodytarget(java.lang.String target)java.lang.StringtoString()WebhookBodytriggers(java.util.List<java.lang.String> triggers)
-
-
-
Field Detail
-
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_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
-
target
public WebhookBody target(java.lang.String target)
-
getTarget
@Nullable 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 WebhookBody triggers(java.util.List<java.lang.String> triggers)
-
addTriggersItem
public WebhookBody addTriggersItem(java.lang.String triggersItem)
-
getTriggers
@Nullable 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)
-
includeFullUser
public WebhookBody 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 WebhookBody 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
-
-