Class Site
- java.lang.Object
-
- com.azure.resourcemanager.botservice.models.WebChatSite
-
- com.azure.resourcemanager.botservice.models.Site
-
public final class Site extends WebChatSite
A site for the channel.
-
-
Constructor Summary
Constructors Constructor Description Site()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
etag()
Get the etag property: Entity Tag.Boolean
isBlockUserUploadEnabled()
Get the isBlockUserUploadEnabled property: Whether this site is enabled for block user upload.boolean
isEnabled()
Get the isEnabled property: Whether this site is enabled for DirectLine channel.Boolean
isSecureSiteEnabled()
Get the isSecureSiteEnabled property: Whether this site is enabled for authentication with Bot Framework.Boolean
isTokenEnabled()
Get the isTokenEnabled property: Whether this site is token enabled for channel.boolean
isV1Enabled()
Get the isV1Enabled property: Whether this site is enabled for Bot Framework V1 protocol.boolean
isV3Enabled()
Get the isV3Enabled property: Whether this site is enabled for Bot Framework V1 protocol.String
key()
Get the key property: Primary key.String
key2()
Get the key2 property: Secondary key.String
siteId()
Get the siteId property: Site Id.String
siteName()
Get the siteName property: Site name.List<String>
trustedOrigins()
Get the trustedOrigins property: List of Trusted Origin URLs for this site.void
validate()
Validates the instance.Site
withEtag(String etag)
Set the etag property: Entity Tag.Site
withIsBlockUserUploadEnabled(Boolean isBlockUserUploadEnabled)
Set the isBlockUserUploadEnabled property: Whether this site is enabled for block user upload.Site
withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this site is enabled for DirectLine channel.Site
withIsSecureSiteEnabled(Boolean isSecureSiteEnabled)
Set the isSecureSiteEnabled property: Whether this site is enabled for authentication with Bot Framework.Site
withIsTokenEnabled(Boolean isTokenEnabled)
Set the isTokenEnabled property: Whether this site is token enabled for channel.Site
withIsV1Enabled(boolean isV1Enabled)
Set the isV1Enabled property: Whether this site is enabled for Bot Framework V1 protocol.Site
withIsV3Enabled(boolean isV3Enabled)
Set the isV3Enabled property: Whether this site is enabled for Bot Framework V1 protocol.Site
withIsWebchatPreviewEnabled(boolean isWebchatPreviewEnabled)
Set the isWebchatPreviewEnabled property: Whether this site is enabled for preview versions of Webchat.Site
withSiteName(String siteName)
Set the siteName property: Site name.Site
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.WebChatSite
isWebchatPreviewEnabled
-
-
-
-
Method Detail
-
isTokenEnabled
public Boolean isTokenEnabled()
Get the isTokenEnabled property: Whether this site is token enabled for channel.- Returns:
- the isTokenEnabled value.
-
withIsTokenEnabled
public Site withIsTokenEnabled(Boolean isTokenEnabled)
Set the isTokenEnabled property: Whether this site is token enabled for channel.- Parameters:
isTokenEnabled
- the isTokenEnabled 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.
-
siteId
public String siteId()
Get the siteId property: Site Id.- Overrides:
siteId
in classWebChatSite
- Returns:
- the siteId value.
-
siteName
public String siteName()
Get the siteName property: Site name.- Overrides:
siteName
in classWebChatSite
- Returns:
- the siteName value.
-
withSiteName
public Site withSiteName(String siteName)
Set the siteName property: Site name.- Overrides:
withSiteName
in classWebChatSite
- 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.- Overrides:
key
in classWebChatSite
- 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.- Overrides:
key2
in classWebChatSite
- Returns:
- the key2 value.
-
isEnabled
public boolean isEnabled()
Get the isEnabled property: Whether this site is enabled for DirectLine channel.- Overrides:
isEnabled
in classWebChatSite
- Returns:
- the isEnabled value.
-
withIsEnabled
public Site withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this site is enabled for DirectLine channel.- Overrides:
withIsEnabled
in classWebChatSite
- Parameters:
isEnabled
- the isEnabled 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 V1 protocol.- Returns:
- the isV3Enabled value.
-
withIsV3Enabled
public Site withIsV3Enabled(boolean isV3Enabled)
Set the isV3Enabled property: Whether this site is enabled for Bot Framework V1 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.
-
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.
-
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.
-
withIsWebchatPreviewEnabled
public Site withIsWebchatPreviewEnabled(boolean isWebchatPreviewEnabled)
Set the isWebchatPreviewEnabled property: Whether this site is enabled for preview versions of Webchat.- Overrides:
withIsWebchatPreviewEnabled
in classWebChatSite
- Parameters:
isWebchatPreviewEnabled
- the isWebchatPreviewEnabled value to set.- Returns:
- the WebChatSite object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classWebChatSite
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-