WebChatChannel Class

public final class WebChatChannel
extends Channel

Web Chat channel definition.

Constructor Summary

Constructor Description
WebChatChannel()

Creates an instance of WebChatChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static WebChatChannel fromJson(JsonReader jsonReader)

Reads an instance of WebChatChannel from the JsonReader.

WebChatChannelProperties properties()

Get the properties property: The set of properties specific to Web Chat channel resource.

String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebChatChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

WebChatChannel withLocation(String location)

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

WebChatChannel withProperties(WebChatChannelProperties properties)

Set the properties property: The set of properties specific to Web Chat channel resource.

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

WebChatChannel

public WebChatChannel()

Creates an instance of WebChatChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

WebChatChannel.channelName()

Returns:

the channelName value.

fromJson

public static WebChatChannel fromJson(JsonReader jsonReader)

Reads an instance of WebChatChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public WebChatChannelProperties properties()

Get the properties property: The set of properties specific to Web Chat channel resource.

Returns:

the properties value.

provisioningState

public String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Overrides:

WebChatChannel.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

WebChatChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

WebChatChannel.validate()

withEtag

public WebChatChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

WebChatChannel.withEtag(String etag)

Parameters:

etag

withLocation

public WebChatChannel withLocation(String location)

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

Overrides:

WebChatChannel.withLocation(String location)

Parameters:

location

withProperties

public WebChatChannel withProperties(WebChatChannelProperties properties)

Set the properties property: The set of properties specific to Web Chat channel resource.

Parameters:

properties - the properties value to set.

Returns:

the WebChatChannel object itself.

Applies to