TelephonyChannelResourceApiConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.TelephonyChannelResourceApiConfiguration

Implements

public final class TelephonyChannelResourceApiConfiguration
implements JsonSerializable<TelephonyChannelResourceApiConfiguration>

A resource Api configuration for the Telephony channel.

Constructor Summary

Constructor Description
TelephonyChannelResourceApiConfiguration()

Creates an instance of TelephonyChannelResourceApiConfiguration class.

Method Summary

Modifier and Type Method and Description
String cognitiveServiceRegion()

Get the cognitiveServiceRegion property: The cognitive service region.

String cognitiveServiceResourceId()

Get the cognitiveServiceResourceId property: The cognitive service resourceId.

String cognitiveServiceSubscriptionKey()

Get the cognitiveServiceSubscriptionKey property: The cognitive service subscription key.

String defaultLocale()

Get the defaultLocale property: The default locale.

static TelephonyChannelResourceApiConfiguration fromJson(JsonReader jsonReader)

Reads an instance of TelephonyChannelResourceApiConfiguration from the JsonReader.

String id()

Get the id property: The id of config.

String providerName()

Get the providerName property: The provider name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TelephonyChannelResourceApiConfiguration withCognitiveServiceRegion(String cognitiveServiceRegion)

Set the cognitiveServiceRegion property: The cognitive service region.

TelephonyChannelResourceApiConfiguration withCognitiveServiceResourceId(String cognitiveServiceResourceId)

Set the cognitiveServiceResourceId property: The cognitive service resourceId.

TelephonyChannelResourceApiConfiguration withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)

Set the cognitiveServiceSubscriptionKey property: The cognitive service subscription key.

TelephonyChannelResourceApiConfiguration withDefaultLocale(String defaultLocale)

Set the defaultLocale property: The default locale.

TelephonyChannelResourceApiConfiguration withId(String id)

Set the id property: The id of config.

TelephonyChannelResourceApiConfiguration withProviderName(String providerName)

Set the providerName property: The provider name.

Methods inherited from java.lang.Object

Constructor Details

TelephonyChannelResourceApiConfiguration

public TelephonyChannelResourceApiConfiguration()

Creates an instance of TelephonyChannelResourceApiConfiguration class.

Method Details

cognitiveServiceRegion

public String cognitiveServiceRegion()

Get the cognitiveServiceRegion property: The cognitive service region.

Returns:

the cognitiveServiceRegion value.

cognitiveServiceResourceId

public String cognitiveServiceResourceId()

Get the cognitiveServiceResourceId property: The cognitive service resourceId.

Returns:

the cognitiveServiceResourceId value.

cognitiveServiceSubscriptionKey

public String cognitiveServiceSubscriptionKey()

Get the cognitiveServiceSubscriptionKey property: The cognitive service subscription key.

Returns:

the cognitiveServiceSubscriptionKey value.

defaultLocale

public String defaultLocale()

Get the defaultLocale property: The default locale.

Returns:

the defaultLocale value.

fromJson

public static TelephonyChannelResourceApiConfiguration fromJson(JsonReader jsonReader)

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.

id

public String id()

Get the id property: The id of config.

Returns:

the id value.

providerName

public String providerName()

Get the providerName property: The provider name.

Returns:

the providerName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

withDefaultLocale

public TelephonyChannelResourceApiConfiguration withDefaultLocale(String defaultLocale)

Set the defaultLocale property: The default locale.

Parameters:

defaultLocale - the defaultLocale value to set.

Returns:

the TelephonyChannelResourceApiConfiguration object itself.

withId

public TelephonyChannelResourceApiConfiguration withId(String id)

Set the id property: The id of config.

Parameters:

id - the id value to set.

Returns:

the TelephonyChannelResourceApiConfiguration object itself.

withProviderName

public TelephonyChannelResourceApiConfiguration withProviderName(String providerName)

Set the providerName property: The provider name.

Parameters:

providerName - the providerName value to set.

Returns:

the TelephonyChannelResourceApiConfiguration object itself.

Applies to