Class TelegramChannelProperties
- java.lang.Object
-
- com.azure.resourcemanager.botservice.models.TelegramChannelProperties
-
public final class TelegramChannelProperties extends Object
The parameters to provide for the Telegram channel.
-
-
Constructor Summary
Constructors Constructor Description TelegramChannelProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
accessToken()
Get the accessToken property: The Telegram access token.boolean
isEnabled()
Get the isEnabled property: Whether this channel is enabled for the bot.Boolean
isValidated()
Get the isValidated property: Whether this channel is validated for the bot.void
validate()
Validates the instance.TelegramChannelProperties
withAccessToken(String accessToken)
Set the accessToken property: The Telegram access token.TelegramChannelProperties
withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled for the bot.TelegramChannelProperties
withIsValidated(Boolean isValidated)
Set the isValidated property: Whether this channel is validated for the bot.
-
-
-
Method Detail
-
accessToken
public String accessToken()
Get the accessToken property: The Telegram access token. Value only returned through POST to the action Channel List API, otherwise empty.- Returns:
- the accessToken value.
-
withAccessToken
public TelegramChannelProperties withAccessToken(String accessToken)
Set the accessToken property: The Telegram access token. Value only returned through POST to the action Channel List API, otherwise empty.- Parameters:
accessToken
- the accessToken value to set.- Returns:
- the TelegramChannelProperties object itself.
-
isValidated
public Boolean isValidated()
Get the isValidated property: Whether this channel is validated for the bot.- Returns:
- the isValidated value.
-
withIsValidated
public TelegramChannelProperties withIsValidated(Boolean isValidated)
Set the isValidated property: Whether this channel is validated for the bot.- Parameters:
isValidated
- the isValidated value to set.- Returns:
- the TelegramChannelProperties object itself.
-
isEnabled
public boolean isEnabled()
Get the isEnabled property: Whether this channel is enabled for the bot.- Returns:
- the isEnabled value.
-
withIsEnabled
public TelegramChannelProperties withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled for the bot.- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the TelegramChannelProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-