Class WebChatSite

  • Direct Known Subclasses:
    Site

    public class WebChatSite
    extends Object
    A site for the Webchat channel.
    • Constructor Detail

      • WebChatSite

        public WebChatSite()
    • Method Detail

      • siteId

        public String siteId()
        Get the siteId property: Site Id.
        Returns:
        the siteId value.
      • siteName

        public String siteName()
        Get the siteName property: Site name.
        Returns:
        the siteName value.
      • withSiteName

        public WebChatSite withSiteName​(String siteName)
        Set the siteName property: Site name.
        Parameters:
        siteName - the siteName value to set.
        Returns:
        the WebChatSite object itself.
      • key

        public String key()
        Get the key property: Primary key. Value only returned through POST to the action Channel List API, otherwise empty.
        Returns:
        the key value.
      • key2

        public String key2()
        Get the key2 property: Secondary key. Value only returned through POST to the action Channel List API, otherwise empty.
        Returns:
        the key2 value.
      • isEnabled

        public boolean isEnabled()
        Get the isEnabled property: Whether this site is enabled for DirectLine channel.
        Returns:
        the isEnabled value.
      • withIsEnabled

        public WebChatSite withIsEnabled​(boolean isEnabled)
        Set the isEnabled property: Whether this site is enabled for DirectLine channel.
        Parameters:
        isEnabled - the isEnabled value to set.
        Returns:
        the WebChatSite object itself.
      • isWebchatPreviewEnabled

        public boolean isWebchatPreviewEnabled()
        Get the isWebchatPreviewEnabled property: Whether this site is enabled for preview versions of Webchat.
        Returns:
        the isWebchatPreviewEnabled value.
      • withIsWebchatPreviewEnabled

        public WebChatSite withIsWebchatPreviewEnabled​(boolean isWebchatPreviewEnabled)
        Set the isWebchatPreviewEnabled property: Whether this site is enabled for preview versions of Webchat.
        Parameters:
        isWebchatPreviewEnabled - the isWebchatPreviewEnabled value to set.
        Returns:
        the WebChatSite object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.