Class BotProperties
java.lang.Object
com.azure.resourcemanager.botservice.models.BotProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BotProperties>
public final class BotProperties
extends Object
implements com.azure.json.JsonSerializable<BotProperties>
The parameters to provide for the Bot.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allSettings property: Contains resource all settings defined as key/value pairs.Get the appPasswordHint property: The hint (e.g. keyVault secret resourceId) on how to fetch the app secret.Get the cmekEncryptionStatus property: The CMK encryption status.Get the cmekKeyVaultUrl property: The CMK Url.Get the configuredChannels property: Collection of channels for which the bot is configured.Get the description property: The description of the bot.Get the developerAppInsightKey property: The Application Insights key.Get the developerAppInsightsApiKey property: The Application Insights Api Key.Get the developerAppInsightsApplicationId property: The Application Insights App Id.Get the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.Get the displayName property: The Name of the bot.Get the enabledChannels property: Collection of channels for which the bot is enabled.endpoint()Get the endpoint property: The bot's endpoint.Get the endpointVersion property: The bot's endpoint version.static BotPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BotProperties from the JsonReader.iconUrl()Get the iconUrl property: The Icon Url of the bot.Get the isCmekEnabled property: Whether Cmek is enabled.Get the isDeveloperAppInsightsApiKeySet property: Whether the bot is developerAppInsightsApiKey set.Get the isStreamingSupported property: Whether the bot is streaming supported.Get the luisAppIds property: Collection of LUIS App Ids.luisKey()Get the luisKey property: The LUIS Key.Get the manifestUrl property: The bot's manifest url.Get the migrationToken property: Token used to migrate non Azure bot to azure subscription.msaAppId()Get the msaAppId property: Microsoft App Id for the bot.Get the msaAppMsiResourceId property: Microsoft App Managed Identity Resource Id for the bot.Get the msaAppTenantId property: Microsoft App Tenant Id for the bot.Get the msaAppType property: Microsoft App Type for the bot.Get the openWithHint property: The hint to browser (e.g. protocol handler) on how to open the bot for authoring.Get the parameters property: Contains resource parameters defined as key/value pairs.Get the provisioningState property: Provisioning state of the resource.Get the publicNetworkAccess property: Whether the bot is in an isolated network.Get the publishingCredentials property: Publishing credentials of the resource.Get the schemaTransformationVersion property: The channel schema transformation version for the bot.Get the storageResourceId property: The storage resourceId for the bot.tenantId()Get the tenantId property: The Tenant Id for the bot.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAllSettings(Map<String, String> allSettings) Set the allSettings property: Contains resource all settings defined as key/value pairs.withAppPasswordHint(String appPasswordHint) Set the appPasswordHint property: The hint (e.g. keyVault secret resourceId) on how to fetch the app secret.withCmekKeyVaultUrl(String cmekKeyVaultUrl) Set the cmekKeyVaultUrl property: The CMK Url.withDescription(String description) Set the description property: The description of the bot.withDeveloperAppInsightKey(String developerAppInsightKey) Set the developerAppInsightKey property: The Application Insights key.withDeveloperAppInsightsApiKey(String developerAppInsightsApiKey) Set the developerAppInsightsApiKey property: The Application Insights Api Key.withDeveloperAppInsightsApplicationId(String developerAppInsightsApplicationId) Set the developerAppInsightsApplicationId property: The Application Insights App 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.withDisplayName(String displayName) Set the displayName property: The Name of the bot.withEndpoint(String endpoint) Set the endpoint property: The bot's endpoint.withIconUrl(String iconUrl) Set the iconUrl property: The Icon Url of the bot.withIsCmekEnabled(Boolean isCmekEnabled) Set the isCmekEnabled property: Whether Cmek is enabled.withIsStreamingSupported(Boolean isStreamingSupported) Set the isStreamingSupported property: Whether the bot is streaming supported.withLuisAppIds(List<String> luisAppIds) Set the luisAppIds property: Collection of LUIS App Ids.withLuisKey(String luisKey) Set the luisKey property: The LUIS Key.withManifestUrl(String manifestUrl) Set the manifestUrl property: The bot's manifest url.withMsaAppId(String msaAppId) Set the msaAppId property: Microsoft App Id for the bot.withMsaAppMsiResourceId(String msaAppMsiResourceId) Set the msaAppMsiResourceId property: Microsoft App Managed Identity Resource Id for the bot.withMsaAppTenantId(String msaAppTenantId) Set the msaAppTenantId property: Microsoft App Tenant Id for the bot.withMsaAppType(MsaAppType msaAppType) Set the msaAppType property: Microsoft App Type for the bot.withOpenWithHint(String openWithHint) Set the openWithHint property: The hint to browser (e.g. protocol handler) on how to open the bot for authoring.withParameters(Map<String, String> parameters) Set the parameters property: Contains resource parameters defined as key/value pairs.withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) Set the publicNetworkAccess property: Whether the bot is in an isolated network.withPublishingCredentials(String publishingCredentials) Set the publishingCredentials property: Publishing credentials of the resource.withSchemaTransformationVersion(String schemaTransformationVersion) Set the schemaTransformationVersion property: The channel schema transformation version for the bot.withStorageResourceId(String storageResourceId) Set the storageResourceId property: The storage resourceId for the bot.withTenantId(String tenantId) Set the tenantId property: The Tenant Id for the bot.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
-
BotProperties
public BotProperties()Creates an instance of BotProperties class.
-
-
Method Details
-
displayName
Get the displayName property: The Name of the bot.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The Name of the bot.- Parameters:
displayName- the displayName value to set.- Returns:
- the BotProperties object itself.
-
description
Get the description property: The description of the bot.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the bot.- Parameters:
description- the description value to set.- Returns:
- the BotProperties object itself.
-
iconUrl
Get the iconUrl property: The Icon Url of the bot.- Returns:
- the iconUrl value.
-
withIconUrl
Set the iconUrl property: The Icon Url of the bot.- Parameters:
iconUrl- the iconUrl value to set.- Returns:
- the BotProperties object itself.
-
endpoint
Get the endpoint property: The bot's endpoint.- Returns:
- the endpoint value.
-
withEndpoint
Set the endpoint property: The bot's endpoint.- Parameters:
endpoint- the endpoint value to set.- Returns:
- the BotProperties object itself.
-
endpointVersion
Get the endpointVersion property: The bot's endpoint version.- Returns:
- the endpointVersion value.
-
allSettings
Get the allSettings property: Contains resource all settings defined as key/value pairs.- Returns:
- the allSettings value.
-
withAllSettings
Set the allSettings property: Contains resource all settings defined as key/value pairs.- Parameters:
allSettings- the allSettings value to set.- Returns:
- the BotProperties object itself.
-
parameters
Get the parameters property: Contains resource parameters defined as key/value pairs.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Contains resource parameters defined as key/value pairs.- Parameters:
parameters- the parameters value to set.- Returns:
- the BotProperties object itself.
-
manifestUrl
Get the manifestUrl property: The bot's manifest url.- Returns:
- the manifestUrl value.
-
withManifestUrl
Set the manifestUrl property: The bot's manifest url.- Parameters:
manifestUrl- the manifestUrl value to set.- Returns:
- the BotProperties object itself.
-
msaAppType
Get the msaAppType property: Microsoft App Type for the bot.- Returns:
- the msaAppType value.
-
withMsaAppType
Set the msaAppType property: Microsoft App Type for the bot.- Parameters:
msaAppType- the msaAppType value to set.- Returns:
- the BotProperties object itself.
-
msaAppId
Get the msaAppId property: Microsoft App Id for the bot.- Returns:
- the msaAppId value.
-
withMsaAppId
Set the msaAppId property: Microsoft App Id for the bot.- Parameters:
msaAppId- the msaAppId value to set.- Returns:
- the BotProperties object itself.
-
msaAppTenantId
Get the msaAppTenantId property: Microsoft App Tenant Id for the bot.- Returns:
- the msaAppTenantId value.
-
withMsaAppTenantId
Set the msaAppTenantId property: Microsoft App Tenant Id for the bot.- Parameters:
msaAppTenantId- the msaAppTenantId value to set.- Returns:
- the BotProperties object itself.
-
msaAppMsiResourceId
Get the msaAppMsiResourceId property: Microsoft App Managed Identity Resource Id for the bot.- Returns:
- the msaAppMsiResourceId value.
-
withMsaAppMsiResourceId
Set the msaAppMsiResourceId property: Microsoft App Managed Identity Resource Id for the bot.- Parameters:
msaAppMsiResourceId- the msaAppMsiResourceId value to set.- Returns:
- the BotProperties object itself.
-
configuredChannels
Get the configuredChannels property: Collection of channels for which the bot is configured.- Returns:
- the configuredChannels value.
-
enabledChannels
Get the enabledChannels property: Collection of channels for which the bot is enabled.- Returns:
- the enabledChannels value.
-
developerAppInsightKey
Get the developerAppInsightKey property: The Application Insights key.- Returns:
- the developerAppInsightKey value.
-
withDeveloperAppInsightKey
Set the developerAppInsightKey property: The Application Insights key.- Parameters:
developerAppInsightKey- the developerAppInsightKey value to set.- Returns:
- the BotProperties object itself.
-
developerAppInsightsApiKey
Get the developerAppInsightsApiKey property: The Application Insights Api Key.- Returns:
- the developerAppInsightsApiKey value.
-
withDeveloperAppInsightsApiKey
Set the developerAppInsightsApiKey property: The Application Insights Api Key.- Parameters:
developerAppInsightsApiKey- the developerAppInsightsApiKey value to set.- Returns:
- the BotProperties object itself.
-
developerAppInsightsApplicationId
Get the developerAppInsightsApplicationId property: The Application Insights App Id.- Returns:
- the developerAppInsightsApplicationId value.
-
withDeveloperAppInsightsApplicationId
public BotProperties withDeveloperAppInsightsApplicationId(String developerAppInsightsApplicationId) Set the developerAppInsightsApplicationId property: The Application Insights App Id.- Parameters:
developerAppInsightsApplicationId- the developerAppInsightsApplicationId value to set.- Returns:
- the BotProperties object itself.
-
luisAppIds
Get the luisAppIds property: Collection of LUIS App Ids.- Returns:
- the luisAppIds value.
-
withLuisAppIds
Set the luisAppIds property: Collection of LUIS App Ids.- Parameters:
luisAppIds- the luisAppIds value to set.- Returns:
- the BotProperties object itself.
-
luisKey
Get the luisKey property: The LUIS Key.- Returns:
- the luisKey value.
-
withLuisKey
Set the luisKey property: The LUIS Key.- Parameters:
luisKey- the luisKey value to set.- Returns:
- the BotProperties object itself.
-
isCmekEnabled
Get the isCmekEnabled property: Whether Cmek is enabled.- Returns:
- the isCmekEnabled value.
-
withIsCmekEnabled
Set the isCmekEnabled property: Whether Cmek is enabled.- Parameters:
isCmekEnabled- the isCmekEnabled value to set.- Returns:
- the BotProperties object itself.
-
cmekKeyVaultUrl
Get the cmekKeyVaultUrl property: The CMK Url.- Returns:
- the cmekKeyVaultUrl value.
-
withCmekKeyVaultUrl
Set the cmekKeyVaultUrl property: The CMK Url.- Parameters:
cmekKeyVaultUrl- the cmekKeyVaultUrl value to set.- Returns:
- the BotProperties object itself.
-
cmekEncryptionStatus
Get the cmekEncryptionStatus property: The CMK encryption status.- Returns:
- the cmekEncryptionStatus value.
-
tenantId
Get the tenantId property: The Tenant Id for the bot.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: The Tenant Id for the bot.- Parameters:
tenantId- the tenantId value to set.- Returns:
- the BotProperties object itself.
-
publicNetworkAccess
Get the publicNetworkAccess property: Whether the bot is in an isolated network.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
Set the publicNetworkAccess property: Whether the bot is in an isolated network.- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the BotProperties object itself.
-
isStreamingSupported
Get the isStreamingSupported property: Whether the bot is streaming supported.- Returns:
- the isStreamingSupported value.
-
withIsStreamingSupported
Set the isStreamingSupported property: Whether the bot is streaming supported.- Parameters:
isStreamingSupported- the isStreamingSupported value to set.- Returns:
- the BotProperties object itself.
-
isDeveloperAppInsightsApiKeySet
Get the isDeveloperAppInsightsApiKeySet property: Whether the bot is developerAppInsightsApiKey set.- Returns:
- the isDeveloperAppInsightsApiKeySet value.
-
migrationToken
Get the migrationToken property: Token used to migrate non Azure bot to azure subscription.- Returns:
- the migrationToken value.
-
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 BotProperties object itself.
-
schemaTransformationVersion
Get the schemaTransformationVersion property: The channel schema transformation version for the bot.- Returns:
- the schemaTransformationVersion value.
-
withSchemaTransformationVersion
Set the schemaTransformationVersion property: The channel schema transformation version for the bot.- Parameters:
schemaTransformationVersion- the schemaTransformationVersion value to set.- Returns:
- the BotProperties object itself.
-
storageResourceId
Get the storageResourceId property: The storage resourceId for the bot.- Returns:
- the storageResourceId value.
-
withStorageResourceId
Set the storageResourceId property: The storage resourceId for the bot.- Parameters:
storageResourceId- the storageResourceId value to set.- Returns:
- the BotProperties object itself.
-
openWithHint
Get the openWithHint property: The hint to browser (e.g. protocol handler) on how to open the bot for authoring.- Returns:
- the openWithHint value.
-
withOpenWithHint
Set the openWithHint property: The hint to browser (e.g. protocol handler) on how to open the bot for authoring.- Parameters:
openWithHint- the openWithHint value to set.- Returns:
- the BotProperties object itself.
-
appPasswordHint
Get the appPasswordHint property: The hint (e.g. keyVault secret resourceId) on how to fetch the app secret.- Returns:
- the appPasswordHint value.
-
withAppPasswordHint
Set the appPasswordHint property: The hint (e.g. keyVault secret resourceId) on how to fetch the app secret.- Parameters:
appPasswordHint- the appPasswordHint value to set.- Returns:
- the BotProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning state of the resource.- Returns:
- the provisioningState value.
-
publishingCredentials
Get the publishingCredentials property: Publishing credentials of the resource.- Returns:
- the publishingCredentials value.
-
withPublishingCredentials
Set the publishingCredentials property: Publishing credentials of the resource.- Parameters:
publishingCredentials- the publishingCredentials value to set.- Returns:
- the BotProperties 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<BotProperties>- Throws:
IOException
-
fromJson
Reads an instance of BotProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BotProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BotProperties.
-