Share via


DirectLineSpeechChannel Class

public final class DirectLineSpeechChannel
extends Channel

DirectLine Speech channel definition.

Constructor Summary

Constructor Description
DirectLineSpeechChannel()

Creates an instance of DirectLineSpeechChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static DirectLineSpeechChannel fromJson(JsonReader jsonReader)

Reads an instance of DirectLineSpeechChannel from the JsonReader.

DirectLineSpeechChannelProperties properties()

Get the properties property: The set of properties specific to DirectLine Speech channel resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DirectLineSpeechChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

DirectLineSpeechChannel withLocation(String location)

Set the location property: Specifies the location of the resource.

DirectLineSpeechChannel withProperties(DirectLineSpeechChannelProperties properties)

Set the properties property: The set of properties specific to DirectLine Speech channel resource.

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

DirectLineSpeechChannel

public DirectLineSpeechChannel()

Creates an instance of DirectLineSpeechChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

DirectLineSpeechChannel.channelName()

Returns:

the channelName value.

fromJson

public static DirectLineSpeechChannel fromJson(JsonReader jsonReader)

Reads an instance of DirectLineSpeechChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public DirectLineSpeechChannelProperties properties()

Get the properties property: The set of properties specific to DirectLine Speech channel resource.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DirectLineSpeechChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DirectLineSpeechChannel.validate()

withEtag

public DirectLineSpeechChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

DirectLineSpeechChannel.withEtag(String etag)

Parameters:

etag

withLocation

public DirectLineSpeechChannel withLocation(String location)

Set the location property: Specifies the location of the resource.

Overrides:

DirectLineSpeechChannel.withLocation(String location)

Parameters:

location

withProperties

public DirectLineSpeechChannel withProperties(DirectLineSpeechChannelProperties properties)

Set the properties property: The set of properties specific to DirectLine Speech channel resource.

Parameters:

properties - the properties value to set.

Returns:

the DirectLineSpeechChannel object itself.

Applies to