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>
A site for the Webchat channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WebChatSitefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WebChatSite from the JsonReader.Get the isTokenEnabled property: Whether this site is token enabled for channel.key()Get the key property: Primary key.key2()Get the key2 property: Secondary key.siteId()Get the siteId property: Site Id.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the appId property: DirectLine application id.Set the etag property: Entity Tag.withIsBlockUserUploadEnabled(Boolean isBlockUserUploadEnabled) Set the isBlockUserUploadEnabled property: Whether this site is enabled for block user upload.withIsDetailedLoggingEnabled(Boolean isDetailedLoggingEnabled) Set the isDetailedLoggingEnabled property: Whether this site is disabled detailed logging for.withIsEnabled(boolean isEnabled) Set the isEnabled property: Whether this site is enabled for DirectLine channel.withIsEndpointParametersEnabled(Boolean isEndpointParametersEnabled) Set the isEndpointParametersEnabled property: Whether this site is EndpointParameters enabled for channel.withIsNoStorageEnabled(Boolean isNoStorageEnabled) Set the isNoStorageEnabled property: Whether this no-storage site is disabled detailed logging for.withIsSecureSiteEnabled(Boolean isSecureSiteEnabled) Set the isSecureSiteEnabled property: Whether this site is enabled for authentication with Bot Framework.withIsV1Enabled(Boolean isV1Enabled) Set the isV1Enabled property: Whether this site is enabled for Bot Framework V1 protocol.withIsV3Enabled(Boolean isV3Enabled) Set the isV3Enabled property: Whether this site is enabled for Bot Framework V3 protocol.withIsWebchatPreviewEnabled(Boolean isWebchatPreviewEnabled) Set the isWebchatPreviewEnabled property: Whether this site is enabled for preview versions of Webchat.withIsWebChatSpeechEnabled(Boolean isWebChatSpeechEnabled) Set the isWebChatSpeechEnabled property: Whether this site is enabled for Webchat Speech.withSiteName(String siteName) Set the siteName property: Site name.withTenantId(String tenantId) Set the tenantId property: Tenant Id.withTrustedOrigins(List<String> trustedOrigins) Set the trustedOrigins property: List of Trusted Origin URLs for this site.Methods inherited from class com.azure.resourcemanager.botservice.models.Site
appId, etag, isBlockUserUploadEnabled, isDetailedLoggingEnabled, isEnabled, isEndpointParametersEnabled, isNoStorageEnabled, isSecureSiteEnabled, isV1Enabled, isV3Enabled, isWebchatPreviewEnabled, isWebChatSpeechEnabled, siteName, tenantId, trustedOriginsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WebChatSite
public WebChatSite()Creates an instance of WebChatSite class.
-
-
Method Details
-
isTokenEnabled
Get the isTokenEnabled property: Whether this site is token enabled for channel.- Overrides:
isTokenEnabledin classSite- Returns:
- the isTokenEnabled value.
-
key2
Get the key2 property: Secondary key. Value only returned through POST to the action Channel List API, otherwise empty. -
key
Get the key property: Primary key. Value only returned through POST to the action Channel List API, otherwise empty. -
siteId
Get the siteId property: Site Id. -
withTenantId
Set the tenantId property: Tenant Id.- Overrides:
withTenantIdin classSite- Parameters:
tenantId- the tenantId value to set.- Returns:
- the Site object itself.
-
withSiteName
Set the siteName property: Site name.- Overrides:
withSiteNamein classSite- Parameters:
siteName- the siteName value to set.- Returns:
- the Site object itself.
-
withIsEnabled
Set the isEnabled property: Whether this site is enabled for DirectLine channel.- Overrides:
withIsEnabledin classSite- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the Site object itself.
-
withIsEndpointParametersEnabled
Set the isEndpointParametersEnabled property: Whether this site is EndpointParameters enabled for channel.- Overrides:
withIsEndpointParametersEnabledin classSite- Parameters:
isEndpointParametersEnabled- the isEndpointParametersEnabled value to set.- Returns:
- the Site object itself.
-
withIsDetailedLoggingEnabled
Set the isDetailedLoggingEnabled property: Whether this site is disabled detailed logging for.- Overrides:
withIsDetailedLoggingEnabledin classSite- Parameters:
isDetailedLoggingEnabled- the isDetailedLoggingEnabled value to set.- Returns:
- the Site object itself.
-
withIsBlockUserUploadEnabled
Set the isBlockUserUploadEnabled property: Whether this site is enabled for block user upload.- Overrides:
withIsBlockUserUploadEnabledin classSite- Parameters:
isBlockUserUploadEnabled- the isBlockUserUploadEnabled value to set.- Returns:
- the Site object itself.
-
withIsNoStorageEnabled
Set the isNoStorageEnabled property: Whether this no-storage site is disabled detailed logging for.- Overrides:
withIsNoStorageEnabledin classSite- Parameters:
isNoStorageEnabled- the isNoStorageEnabled value to set.- Returns:
- the Site object itself.
-
withEtag
Set the etag property: Entity Tag. -
withAppId
Set the appId property: DirectLine application id. -
withIsV1Enabled
Set the isV1Enabled property: Whether this site is enabled for Bot Framework V1 protocol.- Overrides:
withIsV1Enabledin classSite- Parameters:
isV1Enabled- the isV1Enabled value to set.- Returns:
- the Site object itself.
-
withIsV3Enabled
Set the isV3Enabled property: Whether this site is enabled for Bot Framework V3 protocol.- Overrides:
withIsV3Enabledin classSite- Parameters:
isV3Enabled- the isV3Enabled value to set.- Returns:
- the Site object itself.
-
withIsSecureSiteEnabled
Set the isSecureSiteEnabled property: Whether this site is enabled for authentication with Bot Framework.- Overrides:
withIsSecureSiteEnabledin classSite- Parameters:
isSecureSiteEnabled- the isSecureSiteEnabled value to set.- Returns:
- the Site object itself.
-
withTrustedOrigins
Set the trustedOrigins property: List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True.- Overrides:
withTrustedOriginsin classSite- Parameters:
trustedOrigins- the trustedOrigins value to set.- Returns:
- the Site object itself.
-
withIsWebChatSpeechEnabled
Set the isWebChatSpeechEnabled property: Whether this site is enabled for Webchat Speech.- Overrides:
withIsWebChatSpeechEnabledin classSite- Parameters:
isWebChatSpeechEnabled- the isWebChatSpeechEnabled value to set.- Returns:
- the Site object itself.
-
withIsWebchatPreviewEnabled
Set the isWebchatPreviewEnabled property: Whether this site is enabled for preview versions of Webchat.- Overrides:
withIsWebchatPreviewEnabledin classSite- Parameters:
isWebchatPreviewEnabled- the isWebchatPreviewEnabled value to set.- Returns:
- the Site object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classSite- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Site>- Overrides:
toJsonin classSite- Throws:
IOException
-
fromJson
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.
-