DirectLineChannelProperties Class

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

Implements

public final class DirectLineChannelProperties
implements JsonSerializable<DirectLineChannelProperties>

The parameters to provide for the Direct Line channel.

Constructor Summary

Constructor Description
DirectLineChannelProperties()

Creates an instance of DirectLineChannelProperties class.

Method Summary

Modifier and Type Method and Description
String directLineEmbedCode()

Get the directLineEmbedCode property: Direct Line embed code of the resource.

String extensionKey1()

Get the extensionKey1 property: The extensionKey1.

String extensionKey2()

Get the extensionKey2 property: The extensionKey2.

static DirectLineChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of DirectLineChannelProperties from the JsonReader.

List<DirectLineSite> sites()

Get the sites property: The list of Direct Line sites.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DirectLineChannelProperties withDirectLineEmbedCode(String directLineEmbedCode)

Set the directLineEmbedCode property: Direct Line embed code of the resource.

DirectLineChannelProperties withExtensionKey1(String extensionKey1)

Set the extensionKey1 property: The extensionKey1.

DirectLineChannelProperties withExtensionKey2(String extensionKey2)

Set the extensionKey2 property: The extensionKey2.

DirectLineChannelProperties withSites(List<DirectLineSite> sites)

Set the sites property: The list of Direct Line sites.

Methods inherited from java.lang.Object

Constructor Details

DirectLineChannelProperties

public DirectLineChannelProperties()

Creates an instance of DirectLineChannelProperties class.

Method Details

directLineEmbedCode

public String directLineEmbedCode()

Get the directLineEmbedCode property: Direct Line embed code of the resource.

Returns:

the directLineEmbedCode value.

extensionKey1

public String extensionKey1()

Get the extensionKey1 property: The extensionKey1.

Returns:

the extensionKey1 value.

extensionKey2

public String extensionKey2()

Get the extensionKey2 property: The extensionKey2.

Returns:

the extensionKey2 value.

fromJson

public static DirectLineChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of DirectLineChannelProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DirectLineChannelProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DirectLineChannelProperties.

sites

public List<DirectLineSite> sites()

Get the sites property: The list of Direct Line sites.

Returns:

the sites value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDirectLineEmbedCode

public DirectLineChannelProperties withDirectLineEmbedCode(String directLineEmbedCode)

Set the directLineEmbedCode property: Direct Line embed code of the resource.

Parameters:

directLineEmbedCode - the directLineEmbedCode value to set.

Returns:

the DirectLineChannelProperties object itself.

withExtensionKey1

public DirectLineChannelProperties withExtensionKey1(String extensionKey1)

Set the extensionKey1 property: The extensionKey1.

Parameters:

extensionKey1 - the extensionKey1 value to set.

Returns:

the DirectLineChannelProperties object itself.

withExtensionKey2

public DirectLineChannelProperties withExtensionKey2(String extensionKey2)

Set the extensionKey2 property: The extensionKey2.

Parameters:

extensionKey2 - the extensionKey2 value to set.

Returns:

the DirectLineChannelProperties object itself.

withSites

public DirectLineChannelProperties withSites(List<DirectLineSite> sites)

Set the sites property: The list of Direct Line sites.

Parameters:

sites - the sites value to set.

Returns:

the DirectLineChannelProperties object itself.

Applies to