Class TelegramChannel
java.lang.Object
com.azure.resourcemanager.botservice.models.Channel
com.azure.resourcemanager.botservice.models.TelegramChannel
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Channel>
Telegram channel definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the channelName property: The channel name.static TelegramChannelfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TelegramChannel from the JsonReader.Get the properties property: The set of properties specific to Telegram channel resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the etag property: Entity Tag of the resource.withLocation(String location) Set the location property: Specifies the location of the resource.withProperties(TelegramChannelProperties properties) Set the properties property: The set of properties specific to Telegram channel resource.Methods inherited from class com.azure.resourcemanager.botservice.models.Channel
etag, location, provisioningStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TelegramChannel
public TelegramChannel()Creates an instance of TelegramChannel class.
-
-
Method Details
-
channelName
Get the channelName property: The channel name.- Overrides:
channelNamein classChannel- Returns:
- the channelName value.
-
properties
Get the properties property: The set of properties specific to Telegram channel resource.- Returns:
- the properties value.
-
withProperties
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.
-
withEtag
Set the etag property: Entity Tag of the resource. -
withLocation
Set the location property: Specifies the location of the resource.- Overrides:
withLocationin classChannel- Parameters:
location- the location value to set.- Returns:
- the Channel object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classChannel- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Channel>- Overrides:
toJsonin classChannel- Throws:
IOException
-
fromJson
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.
-