TelegramChannel Class
- java.
lang. Object - com.
azure. resourcemanager. botservice. models. Channel - com.
azure. resourcemanager. botservice. models. TelegramChannel
- com.
- com.
public final class TelegramChannel
extends Channel
Telegram channel definition.
Constructor Summary
| Constructor | Description |
|---|---|
| TelegramChannel() |
Creates an instance of Telegram |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
channelName()
Get the channel |
|
static
Telegram |
fromJson(JsonReader jsonReader)
Reads an instance of Telegram |
|
Telegram |
properties()
Get the properties property: The set of properties specific to Telegram channel resource. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Telegram |
withEtag(String etag)
Set the etag property: Entity Tag of the resource. |
|
Telegram |
withLocation(String location)
Set the location property: Specifies the location of the resource. |
|
Telegram |
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:
fromJson
public static TelegramChannel fromJson(JsonReader jsonReader)
Reads an instance of TelegramChannel from the JsonReader.
Parameters:
Returns:
Throws:
properties
public TelegramChannelProperties properties()
Get the properties property: The set of properties specific to Telegram channel resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
TelegramChannel.toJson(JsonWriter jsonWriter)Parameters:
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:
withLocation
public TelegramChannel withLocation(String location)
Set the location property: Specifies the location of the resource.
Overrides:
TelegramChannel.withLocation(String location)Parameters:
withProperties
public TelegramChannel withProperties(TelegramChannelProperties properties)
Set the properties property: The set of properties specific to Telegram channel resource.
Parameters:
Returns: