public final class MicrosoftBotIdentifier extends CommunicationIdentifier
Constructor and Description |
---|
MicrosoftBotIdentifier(java.lang.String botId)
Creates a MicrosoftBotIdentifier object
|
MicrosoftBotIdentifier(java.lang.String botId,
boolean isResourceAccountConfigured)
Creates a MicrosoftBotIdentifier object
|
MicrosoftBotIdentifier(java.lang.String botId,
boolean isResourceAccountConfigured,
CommunicationCloudEnvironment cloudEnvironment)
Creates a MicrosoftBotIdentifier object
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object that) |
java.lang.String |
getBotId()
Get the Microsoft app ID for the bot.
|
CommunicationCloudEnvironment |
getCloudEnvironment()
Get cloud environment of the Microsoft bot identifier.
|
int |
hashCode() |
boolean |
isResourceAccountConfigured() |
MicrosoftBotIdentifier |
setRawId(java.lang.String rawId)
Set full id of the identifier.
|
fromRawId, getRawId
public MicrosoftBotIdentifier(java.lang.String botId, boolean isResourceAccountConfigured, CommunicationCloudEnvironment cloudEnvironment)
botId
- The unique Microsoft app ID for the bot as registered with the Bot Framework.isResourceAccountConfigured
- Set this to true if the bot is tenantized.
It is false if the bot is global and no resource account is configured.cloudEnvironment
- the cloud environment in which this identifier is created.java.lang.IllegalArgumentException
- thrown if botId parameter fail the validation.public MicrosoftBotIdentifier(java.lang.String botId, boolean isResourceAccountConfigured)
botId
- The unique Microsoft app ID for the bot as registered with the Bot Framework.isResourceAccountConfigured
- Set this to true if the bot is tenantized.
It is false if the bot is global and no resource account is configured.java.lang.IllegalArgumentException
- thrown if botId parameter fail the validation.public MicrosoftBotIdentifier(java.lang.String botId)
botId
- The unique Microsoft app ID for the bot as registered with the Bot Framework.java.lang.IllegalArgumentException
- thrown if botId parameter fail the validation.public java.lang.String getBotId()
public boolean isResourceAccountConfigured()
public CommunicationCloudEnvironment getCloudEnvironment()
public MicrosoftBotIdentifier setRawId(java.lang.String rawId)
setRawId
in class CommunicationIdentifier
rawId
- full id of the identifier.public boolean equals(java.lang.Object that)
equals
in class CommunicationIdentifier
public int hashCode()
hashCode
in class CommunicationIdentifier