Class DirectLineSite


  • public class DirectLineSite
    extends Object
    A site for the Direct Line channel.
    • Constructor Detail

      • DirectLineSite

        public DirectLineSite()
    • 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 DirectLineSite withSiteName​(String siteName)
        Set the siteName property: Site name.
        Parameters:
        siteName - the siteName value to set.
        Returns:
        the DirectLineSite 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 DirectLineSite withIsEnabled​(boolean isEnabled)
        Set the isEnabled property: Whether this site is enabled for DirectLine channel.
        Parameters:
        isEnabled - the isEnabled value to set.
        Returns:
        the DirectLineSite object itself.
      • isV1Enabled

        public boolean isV1Enabled()
        Get the isV1Enabled property: Whether this site is enabled for Bot Framework V1 protocol.
        Returns:
        the isV1Enabled value.
      • withIsV1Enabled

        public DirectLineSite withIsV1Enabled​(boolean isV1Enabled)
        Set the isV1Enabled property: Whether this site is enabled for Bot Framework V1 protocol.
        Parameters:
        isV1Enabled - the isV1Enabled value to set.
        Returns:
        the DirectLineSite object itself.
      • isV3Enabled

        public boolean isV3Enabled()
        Get the isV3Enabled property: Whether this site is enabled for Bot Framework V1 protocol.
        Returns:
        the isV3Enabled value.
      • withIsV3Enabled

        public DirectLineSite withIsV3Enabled​(boolean isV3Enabled)
        Set the isV3Enabled property: Whether this site is enabled for Bot Framework V1 protocol.
        Parameters:
        isV3Enabled - the isV3Enabled value to set.
        Returns:
        the DirectLineSite object itself.
      • isSecureSiteEnabled

        public Boolean isSecureSiteEnabled()
        Get the isSecureSiteEnabled property: Whether this site is enabled for authentication with Bot Framework.
        Returns:
        the isSecureSiteEnabled value.
      • withIsSecureSiteEnabled

        public DirectLineSite withIsSecureSiteEnabled​(Boolean isSecureSiteEnabled)
        Set the isSecureSiteEnabled property: Whether this site is enabled for authentication with Bot Framework.
        Parameters:
        isSecureSiteEnabled - the isSecureSiteEnabled value to set.
        Returns:
        the DirectLineSite object itself.
      • isBlockUserUploadEnabled

        public Boolean isBlockUserUploadEnabled()
        Get the isBlockUserUploadEnabled property: Whether this site is enabled for block user upload.
        Returns:
        the isBlockUserUploadEnabled value.
      • withIsBlockUserUploadEnabled

        public DirectLineSite withIsBlockUserUploadEnabled​(Boolean isBlockUserUploadEnabled)
        Set the isBlockUserUploadEnabled property: Whether this site is enabled for block user upload.
        Parameters:
        isBlockUserUploadEnabled - the isBlockUserUploadEnabled value to set.
        Returns:
        the DirectLineSite object itself.
      • trustedOrigins

        public List<String> trustedOrigins()
        Get the trustedOrigins property: List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True.
        Returns:
        the trustedOrigins value.
      • withTrustedOrigins

        public DirectLineSite withTrustedOrigins​(List<String> trustedOrigins)
        Set the trustedOrigins property: List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True.
        Parameters:
        trustedOrigins - the trustedOrigins value to set.
        Returns:
        the DirectLineSite object itself.
      • validate

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