java.lang.Object
com.azure.resourcemanager.botservice.models.Site
All Implemented Interfaces:
com.azure.json.JsonSerializable<Site>
Direct Known Subclasses:
DirectLineSite, WebChatSite

public class Site extends Object implements com.azure.json.JsonSerializable<Site>
A site for the channel.
  • Constructor Details

    • Site

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

    • tenantId

      public String tenantId()
      Get the tenantId property: Tenant Id.
      Returns:
      the tenantId value.
    • withTenantId

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

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

      public Boolean isEndpointParametersEnabled()
      Get the isEndpointParametersEnabled property: Whether this site is EndpointParameters enabled for channel.
      Returns:
      the isEndpointParametersEnabled value.
    • withIsEndpointParametersEnabled

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

      public Boolean isDetailedLoggingEnabled()
      Get the isDetailedLoggingEnabled property: Whether this site is disabled detailed logging for.
      Returns:
      the isDetailedLoggingEnabled value.
    • withIsDetailedLoggingEnabled

      public Site withIsDetailedLoggingEnabled(Boolean isDetailedLoggingEnabled)
      Set the isDetailedLoggingEnabled property: Whether this site is disabled detailed logging for.
      Parameters:
      isDetailedLoggingEnabled - the isDetailedLoggingEnabled 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.
    • isNoStorageEnabled

      public Boolean isNoStorageEnabled()
      Get the isNoStorageEnabled property: Whether this no-storage site is disabled detailed logging for.
      Returns:
      the isNoStorageEnabled value.
    • withIsNoStorageEnabled

      public Site withIsNoStorageEnabled(Boolean isNoStorageEnabled)
      Set the isNoStorageEnabled property: Whether this no-storage site is disabled detailed logging for.
      Parameters:
      isNoStorageEnabled - the isNoStorageEnabled 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.
    • appId

      public String appId()
      Get the appId property: DirectLine application id.
      Returns:
      the appId value.
    • withAppId

      public Site withAppId(String appId)
      Set the appId property: DirectLine application id.
      Parameters:
      appId - the appId 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 V3 protocol.
      Returns:
      the isV3Enabled value.
    • withIsV3Enabled

      public Site withIsV3Enabled(Boolean isV3Enabled)
      Set the isV3Enabled property: Whether this site is enabled for Bot Framework V3 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.
    • 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.
    • isWebChatSpeechEnabled

      public Boolean isWebChatSpeechEnabled()
      Get the isWebChatSpeechEnabled property: Whether this site is enabled for Webchat Speech.
      Returns:
      the isWebChatSpeechEnabled value.
    • withIsWebChatSpeechEnabled

      public Site withIsWebChatSpeechEnabled(Boolean isWebChatSpeechEnabled)
      Set the isWebChatSpeechEnabled property: Whether this site is enabled for Webchat Speech.
      Parameters:
      isWebChatSpeechEnabled - the isWebChatSpeechEnabled value to set.
      Returns:
      the Site 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 Site 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 Site object itself.
    • validate

      public void validate()
      Validates the instance.
      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>
      Throws:
      IOException
    • fromJson

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