Class ChannelSettings
java.lang.Object
com.azure.resourcemanager.botservice.models.ChannelSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ChannelSettings>
public final class ChannelSettings
extends Object
implements com.azure.json.JsonSerializable<ChannelSettings>
Channel settings definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the botIconUrl property: The bot icon url.botId()Get the botId property: The bot id.Get the channelDisplayName property: The channel display name.Get the channelId property: The channel id.Get the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.Get the extensionKey1 property: The extensionKey1.Get the extensionKey2 property: The extensionKey2.static ChannelSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ChannelSettings from the JsonReader.Get the isEnabled property: Whether this channel is enabled for the bot.Get the requireTermsAgreement property: Whether customer needs to agree to new terms.sites()Get the sites property: The list of sites.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBotIconUrl(String botIconUrl) Set the botIconUrl property: The bot icon url.Set the botId property: The bot id.withChannelDisplayName(String channelDisplayName) Set the channelDisplayName property: The channel display name.withChannelId(String channelId) Set the channelId property: The channel id.withDisableLocalAuth(Boolean disableLocalAuth) Set the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.withExtensionKey1(String extensionKey1) Set the extensionKey1 property: The extensionKey1.withExtensionKey2(String extensionKey2) Set the extensionKey2 property: The extensionKey2.withIsEnabled(Boolean isEnabled) Set the isEnabled property: Whether this channel is enabled for the bot.withRequireTermsAgreement(Boolean requireTermsAgreement) Set the requireTermsAgreement property: Whether customer needs to agree to new terms.Set the sites property: The list of sites.Methods 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
-
ChannelSettings
public ChannelSettings()Creates an instance of ChannelSettings class.
-
-
Method Details
-
extensionKey1
Get the extensionKey1 property: The extensionKey1.- Returns:
- the extensionKey1 value.
-
withExtensionKey1
Set the extensionKey1 property: The extensionKey1.- Parameters:
extensionKey1- the extensionKey1 value to set.- Returns:
- the ChannelSettings object itself.
-
extensionKey2
Get the extensionKey2 property: The extensionKey2.- Returns:
- the extensionKey2 value.
-
withExtensionKey2
Set the extensionKey2 property: The extensionKey2.- Parameters:
extensionKey2- the extensionKey2 value to set.- Returns:
- the ChannelSettings object itself.
-
sites
Get the sites property: The list of sites.- Returns:
- the sites value.
-
withSites
Set the sites property: The list of sites.- Parameters:
sites- the sites value to set.- Returns:
- the ChannelSettings object itself.
-
channelId
Get the channelId property: The channel id.- Returns:
- the channelId value.
-
withChannelId
Set the channelId property: The channel id.- Parameters:
channelId- the channelId value to set.- Returns:
- the ChannelSettings object itself.
-
channelDisplayName
Get the channelDisplayName property: The channel display name.- Returns:
- the channelDisplayName value.
-
withChannelDisplayName
Set the channelDisplayName property: The channel display name.- Parameters:
channelDisplayName- the channelDisplayName value to set.- Returns:
- the ChannelSettings object itself.
-
botId
Get the botId property: The bot id.- Returns:
- the botId value.
-
withBotId
Set the botId property: The bot id.- Parameters:
botId- the botId value to set.- Returns:
- the ChannelSettings object itself.
-
botIconUrl
Get the botIconUrl property: The bot icon url.- Returns:
- the botIconUrl value.
-
withBotIconUrl
Set the botIconUrl property: The bot icon url.- Parameters:
botIconUrl- the botIconUrl value to set.- Returns:
- the ChannelSettings object itself.
-
isEnabled
Get the isEnabled property: Whether this channel is enabled for the bot.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Whether this channel is enabled for the bot.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the ChannelSettings object itself.
-
disableLocalAuth
Get the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.- Returns:
- the disableLocalAuth value.
-
withDisableLocalAuth
Set the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.- Parameters:
disableLocalAuth- the disableLocalAuth value to set.- Returns:
- the ChannelSettings object itself.
-
requireTermsAgreement
Get the requireTermsAgreement property: Whether customer needs to agree to new terms.- Returns:
- the requireTermsAgreement value.
-
withRequireTermsAgreement
Set the requireTermsAgreement property: Whether customer needs to agree to new terms.- Parameters:
requireTermsAgreement- the requireTermsAgreement value to set.- Returns:
- the ChannelSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ChannelSettings>- Throws:
IOException
-
fromJson
Reads an instance of ChannelSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ChannelSettings 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 ChannelSettings.
-