Share via


Site Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.Site

Implements

public class Site
implements JsonSerializable<Site>

A site for the channel.

Constructor Summary

Constructor Description
Site()

Creates an instance of Site class.

Method Summary

Modifier and Type Method and Description
String appId()

Get the appId property: DirectLine application id.

String etag()

Get the etag property: Entity Tag.

static Site fromJson(JsonReader jsonReader)

Reads an instance of Site from the JsonReader.

Boolean isBlockUserUploadEnabled()

Get the isBlockUserUploadEnabled property: Whether this site is enabled for block user upload.

Boolean isDetailedLoggingEnabled()

Get the isDetailedLoggingEnabled property: Whether this site is disabled detailed logging for.

boolean isEnabled()

Get the isEnabled property: Whether this site is enabled for DirectLine channel.

Boolean isEndpointParametersEnabled()

Get the isEndpointParametersEnabled property: Whether this site is EndpointParameters enabled for channel.

Boolean isNoStorageEnabled()

Get the isNoStorageEnabled property: Whether this no-storage site is disabled detailed logging for.

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 V3 protocol.

Boolean isWebchatPreviewEnabled()

Get the isWebchatPreviewEnabled property: Whether this site is enabled for preview versions of Webchat.

Boolean isWebChatSpeechEnabled()

Get the isWebChatSpeechEnabled property: Whether this site is enabled for Webchat Speech.

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.

String tenantId()

Get the tenantId property: Tenant Id.

JsonWriter toJson(JsonWriter jsonWriter)
List<String> trustedOrigins()

Get the trustedOrigins property: List of Trusted Origin URLs for this site.

void validate()

Validates the instance.

Site withAppId(String appId)

Set the appId property: DirectLine application id.

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 withIsDetailedLoggingEnabled(Boolean isDetailedLoggingEnabled)

Set the isDetailedLoggingEnabled property: Whether this site is disabled detailed logging for.

Site withIsEnabled(boolean isEnabled)

Set the isEnabled property: Whether this site is enabled for DirectLine channel.

Site withIsEndpointParametersEnabled(Boolean isEndpointParametersEnabled)

Set the isEndpointParametersEnabled property: Whether this site is EndpointParameters enabled for channel.

Site withIsNoStorageEnabled(Boolean isNoStorageEnabled)

Set the isNoStorageEnabled property: Whether this no-storage site is disabled detailed logging for.

Site withIsSecureSiteEnabled(Boolean isSecureSiteEnabled)

Set the isSecureSiteEnabled property: Whether this site is enabled for authentication with Bot Framework.

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 V3 protocol.

Site withIsWebchatPreviewEnabled(Boolean isWebchatPreviewEnabled)

Set the isWebchatPreviewEnabled property: Whether this site is enabled for preview versions of Webchat.

Site withIsWebChatSpeechEnabled(Boolean isWebChatSpeechEnabled)

Set the isWebChatSpeechEnabled property: Whether this site is enabled for Webchat Speech.

Site withSiteName(String siteName)

Set the siteName property: Site name.

Site withTenantId(String tenantId)

Set the tenantId property: Tenant Id.

Site withTrustedOrigins(List<String> trustedOrigins)

Set the trustedOrigins property: List of Trusted Origin URLs for this site.

Methods inherited from java.lang.Object

Constructor Details

Site

public Site()

Creates an instance of Site class.

Method Details

appId

public String appId()

Get the appId property: DirectLine application id.

Returns:

the appId value.

etag

public String etag()

Get the etag property: Entity Tag.

Returns:

the etag value.

fromJson

public static Site fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

isBlockUserUploadEnabled

public Boolean isBlockUserUploadEnabled()

Get the isBlockUserUploadEnabled property: Whether this site is enabled for block user upload.

Returns:

the isBlockUserUploadEnabled value.

isDetailedLoggingEnabled

public Boolean isDetailedLoggingEnabled()

Get the isDetailedLoggingEnabled property: Whether this site is disabled detailed logging for.

Returns:

the isDetailedLoggingEnabled value.

isEnabled

public boolean isEnabled()

Get the isEnabled property: Whether this site is enabled for DirectLine channel.

Returns:

the isEnabled value.

isEndpointParametersEnabled

public Boolean isEndpointParametersEnabled()

Get the isEndpointParametersEnabled property: Whether this site is EndpointParameters enabled for channel.

Returns:

the isEndpointParametersEnabled value.

isNoStorageEnabled

public Boolean isNoStorageEnabled()

Get the isNoStorageEnabled property: Whether this no-storage site is disabled detailed logging for.

Returns:

the isNoStorageEnabled value.

isSecureSiteEnabled

public Boolean isSecureSiteEnabled()

Get the isSecureSiteEnabled property: Whether this site is enabled for authentication with Bot Framework.

Returns:

the isSecureSiteEnabled value.

isTokenEnabled

public Boolean isTokenEnabled()

Get the isTokenEnabled property: Whether this site is token enabled for channel.

Returns:

the isTokenEnabled value.

isV1Enabled

public Boolean isV1Enabled()

Get the isV1Enabled property: Whether this site is enabled for Bot Framework V1 protocol.

Returns:

the isV1Enabled value.

isV3Enabled

public Boolean isV3Enabled()

Get the isV3Enabled property: Whether this site is enabled for Bot Framework V3 protocol.

Returns:

the isV3Enabled value.

isWebchatPreviewEnabled

public Boolean isWebchatPreviewEnabled()

Get the isWebchatPreviewEnabled property: Whether this site is enabled for preview versions of Webchat.

Returns:

the isWebchatPreviewEnabled value.

isWebChatSpeechEnabled

public Boolean isWebChatSpeechEnabled()

Get the isWebChatSpeechEnabled property: Whether this site is enabled for Webchat Speech.

Returns:

the isWebChatSpeechEnabled value.

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.

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.

tenantId

public String tenantId()

Get the tenantId property: Tenant Id.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

validate

public void validate()

Validates the instance.

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.

withEtag

public Site withEtag(String etag)

Set the etag property: Entity Tag.

Parameters:

etag - the etag value to set.

Returns:

the Site object itself.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

withSiteName

public Site withSiteName(String siteName)

Set the siteName property: Site name.

Parameters:

siteName - the siteName value to set.

Returns:

the Site object itself.

withTenantId

public Site withTenantId(String tenantId)

Set the tenantId property: Tenant Id.

Parameters:

tenantId - the tenantId value to set.

Returns:

the Site object itself.

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.

Applies to