Class DirectLineSite

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

public final class DirectLineSite extends Site
A site for the Direct Line channel.
  • Constructor Details

    • DirectLineSite

      public DirectLineSite()
      Creates an instance of DirectLineSite 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 DirectLineSite 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 DirectLineSite 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 DirectLineSite 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 DirectLineSite 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 DirectLineSite 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 DirectLineSite 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 DirectLineSite 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 DirectLineSite 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 DirectLineSite 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 DirectLineSite 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 DirectLineSite 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 DirectLineSite 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 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.
      Overrides:
      withTrustedOrigins in class Site
      Parameters:
      trustedOrigins - the trustedOrigins value to set.
      Returns:
      the Site object itself.
    • withIsWebChatSpeechEnabled

      public DirectLineSite 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 DirectLineSite 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 DirectLineSite fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DirectLineSite from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DirectLineSite 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 DirectLineSite.