Share via


DirectLineSite Class

public final class DirectLineSite
extends Site

A site for the Direct Line channel.

Constructor Summary

Constructor Description
DirectLineSite()

Creates an instance of DirectLineSite class.

Method Summary

Modifier and Type Method and Description
static DirectLineSite fromJson(JsonReader jsonReader)

Reads an instance of DirectLineSite from the JsonReader.

Boolean isTokenEnabled()

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

String key()

Get the key property: Primary key.

String key2()

Get the key2 property: Secondary key.

String siteId()

Get the siteId property: Site Id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DirectLineSite withAppId(String appId)

Set the appId property: DirectLine application id.

DirectLineSite withEtag(String etag)

Set the etag property: Entity Tag.

DirectLineSite withIsBlockUserUploadEnabled(Boolean isBlockUserUploadEnabled)

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

DirectLineSite withIsDetailedLoggingEnabled(Boolean isDetailedLoggingEnabled)

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

DirectLineSite withIsEnabled(boolean isEnabled)

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

DirectLineSite withIsEndpointParametersEnabled(Boolean isEndpointParametersEnabled)

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

DirectLineSite withIsNoStorageEnabled(Boolean isNoStorageEnabled)

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

DirectLineSite withIsSecureSiteEnabled(Boolean isSecureSiteEnabled)

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

DirectLineSite withIsV1Enabled(Boolean isV1Enabled)

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

DirectLineSite withIsV3Enabled(Boolean isV3Enabled)

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

DirectLineSite withIsWebchatPreviewEnabled(Boolean isWebchatPreviewEnabled)

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

DirectLineSite withIsWebChatSpeechEnabled(Boolean isWebChatSpeechEnabled)

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

DirectLineSite withSiteName(String siteName)

Set the siteName property: Site name.

DirectLineSite withTenantId(String tenantId)

Set the tenantId property: Tenant Id.

DirectLineSite withTrustedOrigins(List<String> trustedOrigins)

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

Methods inherited from Site

Methods inherited from java.lang.Object

Constructor Details

DirectLineSite

public DirectLineSite()

Creates an instance of DirectLineSite class.

Method Details

fromJson

public static DirectLineSite fromJson(JsonReader jsonReader)

Reads an instance of DirectLineSite from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DirectLineSite 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.

isTokenEnabled

public Boolean isTokenEnabled()

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

Overrides:

DirectLineSite.isTokenEnabled()

Returns:

the isTokenEnabled value.

key

public String key()

Get the key property: Primary key. Value only returned through POST to the action Channel List API, otherwise empty.

Overrides:

DirectLineSite.key()

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:

DirectLineSite.key2()

Returns:

the key2 value.

siteId

public String siteId()

Get the siteId property: Site Id.

Overrides:

DirectLineSite.siteId()

Returns:

the siteId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DirectLineSite.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DirectLineSite.validate()

withAppId

public DirectLineSite withAppId(String appId)

Set the appId property: DirectLine application id.

Overrides:

DirectLineSite.withAppId(String appId)

Parameters:

appId

withEtag

public DirectLineSite withEtag(String etag)

Set the etag property: Entity Tag.

Overrides:

DirectLineSite.withEtag(String etag)

Parameters:

etag

withIsBlockUserUploadEnabled

public DirectLineSite withIsBlockUserUploadEnabled(Boolean isBlockUserUploadEnabled)

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

Overrides:

DirectLineSite.withIsBlockUserUploadEnabled(Boolean isBlockUserUploadEnabled)

Parameters:

isBlockUserUploadEnabled

withIsDetailedLoggingEnabled

public DirectLineSite withIsDetailedLoggingEnabled(Boolean isDetailedLoggingEnabled)

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

Overrides:

DirectLineSite.withIsDetailedLoggingEnabled(Boolean isDetailedLoggingEnabled)

Parameters:

isDetailedLoggingEnabled

withIsEnabled

public DirectLineSite withIsEnabled(boolean isEnabled)

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

Overrides:

DirectLineSite.withIsEnabled(boolean isEnabled)

Parameters:

isEnabled

withIsEndpointParametersEnabled

public DirectLineSite withIsEndpointParametersEnabled(Boolean isEndpointParametersEnabled)

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

Overrides:

DirectLineSite.withIsEndpointParametersEnabled(Boolean isEndpointParametersEnabled)

Parameters:

isEndpointParametersEnabled

withIsNoStorageEnabled

public DirectLineSite withIsNoStorageEnabled(Boolean isNoStorageEnabled)

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

Overrides:

DirectLineSite.withIsNoStorageEnabled(Boolean isNoStorageEnabled)

Parameters:

isNoStorageEnabled

withIsSecureSiteEnabled

public DirectLineSite withIsSecureSiteEnabled(Boolean isSecureSiteEnabled)

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

Overrides:

DirectLineSite.withIsSecureSiteEnabled(Boolean isSecureSiteEnabled)

Parameters:

isSecureSiteEnabled

withIsV1Enabled

public DirectLineSite withIsV1Enabled(Boolean isV1Enabled)

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

Overrides:

DirectLineSite.withIsV1Enabled(Boolean isV1Enabled)

Parameters:

isV1Enabled

withIsV3Enabled

public DirectLineSite withIsV3Enabled(Boolean isV3Enabled)

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

Overrides:

DirectLineSite.withIsV3Enabled(Boolean isV3Enabled)

Parameters:

isV3Enabled

withIsWebchatPreviewEnabled

public DirectLineSite withIsWebchatPreviewEnabled(Boolean isWebchatPreviewEnabled)

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

Overrides:

DirectLineSite.withIsWebchatPreviewEnabled(Boolean isWebchatPreviewEnabled)

Parameters:

isWebchatPreviewEnabled

withIsWebChatSpeechEnabled

public DirectLineSite withIsWebChatSpeechEnabled(Boolean isWebChatSpeechEnabled)

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

Overrides:

DirectLineSite.withIsWebChatSpeechEnabled(Boolean isWebChatSpeechEnabled)

Parameters:

isWebChatSpeechEnabled

withSiteName

public DirectLineSite withSiteName(String siteName)

Set the siteName property: Site name.

Overrides:

DirectLineSite.withSiteName(String siteName)

Parameters:

siteName

withTenantId

public DirectLineSite withTenantId(String tenantId)

Set the tenantId property: Tenant Id.

Overrides:

DirectLineSite.withTenantId(String tenantId)

Parameters:

tenantId

withTrustedOrigins

public DirectLineSite 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.

Overrides:

DirectLineSite.withTrustedOrigins(List<String> trustedOrigins)

Parameters:

trustedOrigins

Applies to