Share via


TelegramChannel Class

public final class TelegramChannel
extends Channel

Telegram channel definition.

Constructor Summary

Constructor Description
TelegramChannel()

Creates an instance of TelegramChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static TelegramChannel fromJson(JsonReader jsonReader)

Reads an instance of TelegramChannel from the JsonReader.

TelegramChannelProperties properties()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TelegramChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

TelegramChannel withLocation(String location)

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

TelegramChannel withProperties(TelegramChannelProperties properties)

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

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

TelegramChannel

public TelegramChannel()

Creates an instance of TelegramChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

TelegramChannel.channelName()

Returns:

the channelName value.

fromJson

public static TelegramChannel fromJson(JsonReader jsonReader)

Reads an instance of TelegramChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public TelegramChannelProperties properties()

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

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TelegramChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

TelegramChannel.validate()

withEtag

public TelegramChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

TelegramChannel.withEtag(String etag)

Parameters:

etag

withLocation

public TelegramChannel withLocation(String location)

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

Overrides:

TelegramChannel.withLocation(String location)

Parameters:

location

withProperties

public TelegramChannel withProperties(TelegramChannelProperties properties)

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

Parameters:

properties - the properties value to set.

Returns:

the TelegramChannel object itself.

Applies to