Class WebChatSite

java.lang.Object
com.azure.resourcemanager.botservice.models.Site
com.azure.resourcemanager.botservice.models.WebChatSite
All Implemented Interfaces:
com.azure.json.JsonSerializable<Site>

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

    • WebChatSite

      public WebChatSite()
      Creates an instance of WebChatSite class.
  • Method Details

    • isTokenEnabled

      public Boolean isTokenEnabled()
      Get the isTokenEnabled property: Whether this site is token enabled for channel.
      Overrides:
      isTokenEnabled in class Site
      Returns:
      the isTokenEnabled 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 Site
      Returns:
      the key2 value.
    • 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 Site
      Returns:
      the key value.
    • siteId

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

      public WebChatSite withTenantId(String tenantId)
      Set the tenantId property: Tenant Id.
      Overrides:
      withTenantId in class Site
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the Site object itself.
    • withSiteName

      public WebChatSite withSiteName(String siteName)
      Set the siteName property: Site name.
      Overrides:
      withSiteName in class Site
      Parameters:
      siteName - the siteName value to set.
      Returns:
      the Site object itself.
    • withIsEnabled

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

      public WebChatSite withIsEndpointParametersEnabled(Boolean isEndpointParametersEnabled)
      Set the isEndpointParametersEnabled property: Whether this site is EndpointParameters enabled for channel.
      Overrides:
      withIsEndpointParametersEnabled in class Site
      Parameters:
      isEndpointParametersEnabled - the isEndpointParametersEnabled value to set.
      Returns:
      the Site object itself.
    • withIsDetailedLoggingEnabled

      public WebChatSite withIsDetailedLoggingEnabled(Boolean isDetailedLoggingEnabled)
      Set the isDetailedLoggingEnabled property: Whether this site is disabled detailed logging for.
      Overrides:
      withIsDetailedLoggingEnabled in class Site
      Parameters:
      isDetailedLoggingEnabled - the isDetailedLoggingEnabled value to set.
      Returns:
      the Site object itself.
    • withIsBlockUserUploadEnabled

      public WebChatSite withIsBlockUserUploadEnabled(Boolean isBlockUserUploadEnabled)
      Set the isBlockUserUploadEnabled property: Whether this site is enabled for block user upload.
      Overrides:
      withIsBlockUserUploadEnabled in class Site
      Parameters:
      isBlockUserUploadEnabled - the isBlockUserUploadEnabled value to set.
      Returns:
      the Site object itself.
    • withIsNoStorageEnabled

      public WebChatSite withIsNoStorageEnabled(Boolean isNoStorageEnabled)
      Set the isNoStorageEnabled property: Whether this no-storage site is disabled detailed logging for.
      Overrides:
      withIsNoStorageEnabled in class Site
      Parameters:
      isNoStorageEnabled - the isNoStorageEnabled value to set.
      Returns:
      the Site object itself.
    • withEtag

      public WebChatSite withEtag(String etag)
      Set the etag property: Entity Tag.
      Overrides:
      withEtag in class Site
      Parameters:
      etag - the etag value to set.
      Returns:
      the Site object itself.
    • withAppId

      public WebChatSite withAppId(String appId)
      Set the appId property: DirectLine application id.
      Overrides:
      withAppId in class Site
      Parameters:
      appId - the appId value to set.
      Returns:
      the Site object itself.
    • withIsV1Enabled

      public WebChatSite withIsV1Enabled(Boolean isV1Enabled)
      Set the isV1Enabled property: Whether this site is enabled for Bot Framework V1 protocol.
      Overrides:
      withIsV1Enabled in class Site
      Parameters:
      isV1Enabled - the isV1Enabled value to set.
      Returns:
      the Site object itself.
    • withIsV3Enabled

      public WebChatSite withIsV3Enabled(Boolean isV3Enabled)
      Set the isV3Enabled property: Whether this site is enabled for Bot Framework V3 protocol.
      Overrides:
      withIsV3Enabled in class Site
      Parameters:
      isV3Enabled - the isV3Enabled value to set.
      Returns:
      the Site object itself.
    • withIsSecureSiteEnabled

      public WebChatSite withIsSecureSiteEnabled(Boolean isSecureSiteEnabled)
      Set the isSecureSiteEnabled property: Whether this site is enabled for authentication with Bot Framework.
      Overrides:
      withIsSecureSiteEnabled in class Site
      Parameters:
      isSecureSiteEnabled - the isSecureSiteEnabled value to set.
      Returns:
      the Site object itself.
    • withTrustedOrigins

      public WebChatSite 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.
      Overrides:
      withTrustedOrigins in class Site
      Parameters:
      trustedOrigins - the trustedOrigins value to set.
      Returns:
      the Site object itself.
    • withIsWebChatSpeechEnabled

      public WebChatSite withIsWebChatSpeechEnabled(Boolean isWebChatSpeechEnabled)
      Set the isWebChatSpeechEnabled property: Whether this site is enabled for Webchat Speech.
      Overrides:
      withIsWebChatSpeechEnabled in class Site
      Parameters:
      isWebChatSpeechEnabled - the isWebChatSpeechEnabled value to set.
      Returns:
      the Site object itself.
    • withIsWebchatPreviewEnabled

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

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Site>
      Overrides:
      toJson in class Site
      Throws:
      IOException
    • fromJson

      public static WebChatSite fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WebChatSite from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WebChatSite if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the WebChatSite.