Share via


DirectLineChannel Class

public final class DirectLineChannel
extends Channel

Direct Line channel definition.

Constructor Summary

Constructor Description
DirectLineChannel()

Creates an instance of DirectLineChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static DirectLineChannel fromJson(JsonReader jsonReader)

Reads an instance of DirectLineChannel from the JsonReader.

DirectLineChannelProperties properties()

Get the properties property: The set of properties specific to Direct Line channel resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DirectLineChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

DirectLineChannel withLocation(String location)

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

DirectLineChannel withProperties(DirectLineChannelProperties properties)

Set the properties property: The set of properties specific to Direct Line channel resource.

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

DirectLineChannel

public DirectLineChannel()

Creates an instance of DirectLineChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

DirectLineChannel.channelName()

Returns:

the channelName value.

fromJson

public static DirectLineChannel fromJson(JsonReader jsonReader)

Reads an instance of DirectLineChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public DirectLineChannelProperties properties()

Get the properties property: The set of properties specific to Direct Line channel resource.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DirectLineChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DirectLineChannel.validate()

withEtag

public DirectLineChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

DirectLineChannel.withEtag(String etag)

Parameters:

etag

withLocation

public DirectLineChannel withLocation(String location)

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

Overrides:

DirectLineChannel.withLocation(String location)

Parameters:

location

withProperties

public DirectLineChannel withProperties(DirectLineChannelProperties properties)

Set the properties property: The set of properties specific to Direct Line channel resource.

Parameters:

properties - the properties value to set.

Returns:

the DirectLineChannel object itself.

Applies to