Class WebhookBody

  • Direct Known Subclasses:
    WebhookCreateBody

    public class WebhookBody
    extends java.lang.Object
    WebhookBody
    • 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
    • Constructor Detail

      • WebhookBody

        public WebhookBody()
    • 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object