Class Site
java.lang.Object
com.azure.resourcemanager.botservice.models.Site
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Site>
- Direct Known Subclasses:
DirectLineSite,WebChatSite
A site for the channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappId()Get the appId property: DirectLine application id.etag()Get the etag property: Entity Tag.static SitefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Site from the JsonReader.Get the isBlockUserUploadEnabled property: Whether this site is enabled for block user upload.Get the isDetailedLoggingEnabled property: Whether this site is disabled detailed logging for.booleanGet the isEnabled property: Whether this site is enabled for DirectLine channel.Get the isEndpointParametersEnabled property: Whether this site is EndpointParameters enabled for channel.Get the isNoStorageEnabled property: Whether this no-storage site is disabled detailed logging for.Get the isSecureSiteEnabled property: Whether this site is enabled for authentication with Bot Framework.Get the isTokenEnabled property: Whether this site is token enabled for channel.Get the isV1Enabled property: Whether this site is enabled for Bot Framework V1 protocol.Get the isV3Enabled property: Whether this site is enabled for Bot Framework V3 protocol.Get the isWebchatPreviewEnabled property: Whether this site is enabled for preview versions of Webchat.Get the isWebChatSpeechEnabled property: Whether this site is enabled for Webchat Speech.key()Get the key property: Primary key.key2()Get the key2 property: Secondary key.siteId()Get the siteId property: Site Id.siteName()Get the siteName property: Site name.tenantId()Get the tenantId property: Tenant Id.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the trustedOrigins property: List of Trusted Origin URLs for this site.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 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
-
Site
public Site()Creates an instance of Site class.
-
-
Method Details
-
tenantId
Get the tenantId property: Tenant Id.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: Tenant Id.- Parameters:
tenantId- the tenantId value to set.- Returns:
- the Site object itself.
-
siteId
Get the siteId property: Site Id.- Returns:
- the siteId value.
-
siteName
Get the siteName property: Site name.- Returns:
- the siteName value.
-
withSiteName
Set the siteName property: Site name.- Parameters:
siteName- the siteName value to set.- Returns:
- the Site object itself.
-
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
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
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
Get the isTokenEnabled property: Whether this site is token enabled for channel.- Returns:
- the isTokenEnabled value.
-
isEndpointParametersEnabled
Get the isEndpointParametersEnabled property: Whether this site is EndpointParameters enabled for channel.- Returns:
- the isEndpointParametersEnabled value.
-
withIsEndpointParametersEnabled
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
Get the isDetailedLoggingEnabled property: Whether this site is disabled detailed logging for.- Returns:
- the isDetailedLoggingEnabled value.
-
withIsDetailedLoggingEnabled
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
Get the isBlockUserUploadEnabled property: Whether this site is enabled for block user upload.- Returns:
- the isBlockUserUploadEnabled value.
-
withIsBlockUserUploadEnabled
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
Get the isNoStorageEnabled property: Whether this no-storage site is disabled detailed logging for.- Returns:
- the isNoStorageEnabled value.
-
withIsNoStorageEnabled
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
Get the etag property: Entity Tag.- Returns:
- the etag value.
-
withEtag
Set the etag property: Entity Tag.- Parameters:
etag- the etag value to set.- Returns:
- the Site object itself.
-
appId
Get the appId property: DirectLine application id.- Returns:
- the appId value.
-
withAppId
Set the appId property: DirectLine application id.- Parameters:
appId- the appId value to set.- Returns:
- the Site object itself.
-
isV1Enabled
Get the isV1Enabled property: Whether this site is enabled for Bot Framework V1 protocol.- Returns:
- the isV1Enabled value.
-
withIsV1Enabled
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
Get the isV3Enabled property: Whether this site is enabled for Bot Framework V3 protocol.- Returns:
- the isV3Enabled value.
-
withIsV3Enabled
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
Get the isSecureSiteEnabled property: Whether this site is enabled for authentication with Bot Framework.- Returns:
- the isSecureSiteEnabled value.
-
withIsSecureSiteEnabled
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
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
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
Get the isWebChatSpeechEnabled property: Whether this site is enabled for Webchat Speech.- Returns:
- the isWebChatSpeechEnabled value.
-
withIsWebChatSpeechEnabled
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
Get the isWebchatPreviewEnabled property: Whether this site is enabled for preview versions of Webchat.- Returns:
- the isWebchatPreviewEnabled value.
-
withIsWebchatPreviewEnabled
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Site>- Throws:
IOException
-
fromJson
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.
-