Class TelephonyChannelResourceApiConfiguration
java.lang.Object
com.azure.resourcemanager.botservice.models.TelephonyChannelResourceApiConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TelephonyChannelResourceApiConfiguration>
public final class TelephonyChannelResourceApiConfiguration
extends Object
implements com.azure.json.JsonSerializable<TelephonyChannelResourceApiConfiguration>
A resource Api configuration for the Telephony channel.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TelephonyChannelResourceApiConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the cognitiveServiceRegion property: The cognitive service region.Get the cognitiveServiceResourceId property: The cognitive service resourceId.Get the cognitiveServiceSubscriptionKey property: The cognitive service subscription key.Get the defaultLocale property: The default locale.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TelephonyChannelResourceApiConfiguration from the JsonReader.id()Get the id property: The id of config.Get the providerName property: The provider name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCognitiveServiceRegion(String cognitiveServiceRegion) Set the cognitiveServiceRegion property: The cognitive service region.withCognitiveServiceResourceId(String cognitiveServiceResourceId) Set the cognitiveServiceResourceId property: The cognitive service resourceId.withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey) Set the cognitiveServiceSubscriptionKey property: The cognitive service subscription key.withDefaultLocale(String defaultLocale) Set the defaultLocale property: The default locale.Set the id property: The id of config.withProviderName(String providerName) Set the providerName property: The provider name.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
-
TelephonyChannelResourceApiConfiguration
public TelephonyChannelResourceApiConfiguration()Creates an instance of TelephonyChannelResourceApiConfiguration class.
-
-
Method Details
-
id
Get the id property: The id of config.- Returns:
- the id value.
-
withId
Set the id property: The id of config.- Parameters:
id- the id value to set.- Returns:
- the TelephonyChannelResourceApiConfiguration object itself.
-
providerName
Get the providerName property: The provider name.- Returns:
- the providerName value.
-
withProviderName
Set the providerName property: The provider name.- Parameters:
providerName- the providerName value to set.- Returns:
- the TelephonyChannelResourceApiConfiguration object itself.
-
cognitiveServiceSubscriptionKey
Get the cognitiveServiceSubscriptionKey property: The cognitive service subscription key.- Returns:
- the cognitiveServiceSubscriptionKey value.
-
withCognitiveServiceSubscriptionKey
public TelephonyChannelResourceApiConfiguration withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey) Set the cognitiveServiceSubscriptionKey property: The cognitive service subscription key.- Parameters:
cognitiveServiceSubscriptionKey- the cognitiveServiceSubscriptionKey value to set.- Returns:
- the TelephonyChannelResourceApiConfiguration object itself.
-
cognitiveServiceRegion
Get the cognitiveServiceRegion property: The cognitive service region.- Returns:
- the cognitiveServiceRegion value.
-
withCognitiveServiceRegion
public TelephonyChannelResourceApiConfiguration withCognitiveServiceRegion(String cognitiveServiceRegion) Set the cognitiveServiceRegion property: The cognitive service region.- Parameters:
cognitiveServiceRegion- the cognitiveServiceRegion value to set.- Returns:
- the TelephonyChannelResourceApiConfiguration object itself.
-
cognitiveServiceResourceId
Get the cognitiveServiceResourceId property: The cognitive service resourceId.- Returns:
- the cognitiveServiceResourceId value.
-
withCognitiveServiceResourceId
public TelephonyChannelResourceApiConfiguration withCognitiveServiceResourceId(String cognitiveServiceResourceId) Set the cognitiveServiceResourceId property: The cognitive service resourceId.- Parameters:
cognitiveServiceResourceId- the cognitiveServiceResourceId value to set.- Returns:
- the TelephonyChannelResourceApiConfiguration object itself.
-
defaultLocale
Get the defaultLocale property: The default locale.- Returns:
- the defaultLocale value.
-
withDefaultLocale
Set the defaultLocale property: The default locale.- Parameters:
defaultLocale- the defaultLocale value to set.- Returns:
- the TelephonyChannelResourceApiConfiguration 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<TelephonyChannelResourceApiConfiguration>- Throws:
IOException
-
fromJson
public static TelephonyChannelResourceApiConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TelephonyChannelResourceApiConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TelephonyChannelResourceApiConfiguration 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 TelephonyChannelResourceApiConfiguration.
-