ChannelSettings Class
- java.
lang. Object - com.
azure. resourcemanager. botservice. models. ChannelSettings
- com.
Implements
public final class ChannelSettings
implements JsonSerializable<ChannelSettings>
Channel settings definition.
Constructor Summary
| Constructor | Description |
|---|---|
| ChannelSettings() |
Creates an instance of Channel |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
botIconUrl()
Get the bot |
| String |
botId()
Get the bot |
| String |
channelDisplayName()
Get the channel |
| String |
channelId()
Get the channel |
| Boolean |
disableLocalAuth()
Get the disable |
| String |
extensionKey1()
Get the extension |
| String |
extensionKey2()
Get the extension |
|
static
Channel |
fromJson(JsonReader jsonReader)
Reads an instance of Channel |
| Boolean |
isEnabled()
Get the is |
| Boolean |
requireTermsAgreement()
Get the require |
| List<Site> |
sites()
Get the sites property: The list of sites. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Channel |
withBotIconUrl(String botIconUrl)
Set the bot |
|
Channel |
withBotId(String botId)
Set the bot |
|
Channel |
withChannelDisplayName(String channelDisplayName)
Set the channel |
|
Channel |
withChannelId(String channelId)
Set the channel |
|
Channel |
withDisableLocalAuth(Boolean disableLocalAuth)
Set the disable |
|
Channel |
withExtensionKey1(String extensionKey1)
Set the extension |
|
Channel |
withExtensionKey2(String extensionKey2)
Set the extension |
|
Channel |
withIsEnabled(Boolean isEnabled)
Set the is |
|
Channel |
withRequireTermsAgreement(Boolean requireTermsAgreement)
Set the require |
|
Channel |
withSites(List<Site> sites)
Set the sites property: The list of sites. |
Methods inherited from java.lang.Object
Constructor Details
ChannelSettings
public ChannelSettings()
Creates an instance of ChannelSettings class.
Method Details
botIconUrl
public String botIconUrl()
Get the botIconUrl property: The bot icon url.
Returns:
botId
public String botId()
Get the botId property: The bot id.
Returns:
channelDisplayName
public String channelDisplayName()
Get the channelDisplayName property: The channel display name.
Returns:
channelId
public String channelId()
Get the channelId property: The channel id.
Returns:
disableLocalAuth
public Boolean disableLocalAuth()
Get the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.
Returns:
extensionKey1
public String extensionKey1()
Get the extensionKey1 property: The extensionKey1.
Returns:
extensionKey2
public String extensionKey2()
Get the extensionKey2 property: The extensionKey2.
Returns:
fromJson
public static ChannelSettings fromJson(JsonReader jsonReader)
Reads an instance of ChannelSettings from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: Whether this channel is enabled for the bot.
Returns:
requireTermsAgreement
public Boolean requireTermsAgreement()
Get the requireTermsAgreement property: Whether customer needs to agree to new terms.
Returns:
sites
public List<Site> sites()
Get the sites property: The list of sites.
Returns:
toJson
validate
public void validate()
Validates the instance.
withBotIconUrl
public ChannelSettings withBotIconUrl(String botIconUrl)
Set the botIconUrl property: The bot icon url.
Parameters:
Returns:
withBotId
public ChannelSettings withBotId(String botId)
Set the botId property: The bot id.
Parameters:
Returns:
withChannelDisplayName
public ChannelSettings withChannelDisplayName(String channelDisplayName)
Set the channelDisplayName property: The channel display name.
Parameters:
Returns:
withChannelId
public ChannelSettings withChannelId(String channelId)
Set the channelId property: The channel id.
Parameters:
Returns:
withDisableLocalAuth
public ChannelSettings withDisableLocalAuth(Boolean disableLocalAuth)
Set the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.
Parameters:
Returns:
withExtensionKey1
public ChannelSettings withExtensionKey1(String extensionKey1)
Set the extensionKey1 property: The extensionKey1.
Parameters:
Returns:
withExtensionKey2
public ChannelSettings withExtensionKey2(String extensionKey2)
Set the extensionKey2 property: The extensionKey2.
Parameters:
Returns:
withIsEnabled
public ChannelSettings withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled for the bot.
Parameters:
Returns:
withRequireTermsAgreement
public ChannelSettings withRequireTermsAgreement(Boolean requireTermsAgreement)
Set the requireTermsAgreement property: Whether customer needs to agree to new terms.
Parameters:
Returns:
withSites
public ChannelSettings withSites(List<Site> sites)
Set the sites property: The list of sites.
Parameters:
Returns: