java.lang.Object
com.azure.resourcemanager.botservice.models.WebChatSite
com.azure.resourcemanager.botservice.models.Site

public final class Site extends WebChatSite
A site for the channel.
  • Constructor Details

    • Site

      public Site()
  • Method Details

    • isTokenEnabled

      public Boolean isTokenEnabled()
      Get the isTokenEnabled property: Whether this site is token enabled for channel.
      Returns:
      the isTokenEnabled value.
    • withIsTokenEnabled

      public Site withIsTokenEnabled(Boolean isTokenEnabled)
      Set the isTokenEnabled property: Whether this site is token enabled for channel.
      Parameters:
      isTokenEnabled - the isTokenEnabled value to set.
      Returns:
      the Site object itself.
    • etag

      public String etag()
      Get the etag property: Entity Tag.
      Returns:
      the etag value.
    • withEtag

      public Site withEtag(String etag)
      Set the etag property: Entity Tag.
      Parameters:
      etag - the etag value to set.
      Returns:
      the Site object itself.
    • siteId

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

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

      public Site withSiteName(String siteName)
      Set the siteName property: Site name.
      Overrides:
      withSiteName in class WebChatSite
      Parameters:
      siteName - the siteName value to set.
      Returns:
      the Site 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.
      Overrides:
      key in class WebChatSite
      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.
      Overrides:
      key2 in class WebChatSite
      Returns:
      the key2 value.
    • isEnabled

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

      public Site withIsEnabled(boolean isEnabled)
      Set the isEnabled property: Whether this site is enabled for DirectLine channel.
      Overrides:
      withIsEnabled in class WebChatSite
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the Site 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 Site 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 Site 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 Site 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 Site 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 Site 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 Site 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 Site 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 Site 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 Site 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 Site object itself.
    • withIsWebchatPreviewEnabled

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

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