Share via


TelephonyPhoneNumbers Class

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

Implements

public final class TelephonyPhoneNumbers
implements JsonSerializable<TelephonyPhoneNumbers>

A telephone number for the Telephony channel.

Constructor Summary

Constructor Description
TelephonyPhoneNumbers()

Creates an instance of TelephonyPhoneNumbers class.

Method Summary

Modifier and Type Method and Description
String acsEndpoint()

Get the acsEndpoint property: The endpoint of ACS.

String acsResourceId()

Get the acsResourceId property: The resource id of ACS.

String acsSecret()

Get the acsSecret property: The secret of ACS.

String cognitiveServiceRegion()

Get the cognitiveServiceRegion property: The service region of cognitive service.

String cognitiveServiceResourceId()

Get the cognitiveServiceResourceId property: The resource id of cognitive service.

String cognitiveServiceSubscriptionKey()

Get the cognitiveServiceSubscriptionKey property: The subscription key of cognitive service.

String defaultLocale()

Get the defaultLocale property: The default locale of the phone number.

static TelephonyPhoneNumbers fromJson(JsonReader jsonReader)

Reads an instance of TelephonyPhoneNumbers from the JsonReader.

String id()

Get the id property: The element id.

String offerType()

Get the offerType property: Optional Property that will determine the offering type of the phone.

String phoneNumber()

Get the phoneNumber property: The phone number.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TelephonyPhoneNumbers withAcsEndpoint(String acsEndpoint)

Set the acsEndpoint property: The endpoint of ACS.

TelephonyPhoneNumbers withAcsResourceId(String acsResourceId)

Set the acsResourceId property: The resource id of ACS.

TelephonyPhoneNumbers withAcsSecret(String acsSecret)

Set the acsSecret property: The secret of ACS.

TelephonyPhoneNumbers withCognitiveServiceRegion(String cognitiveServiceRegion)

Set the cognitiveServiceRegion property: The service region of cognitive service.

TelephonyPhoneNumbers withCognitiveServiceResourceId(String cognitiveServiceResourceId)

Set the cognitiveServiceResourceId property: The resource id of cognitive service.

TelephonyPhoneNumbers withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)

Set the cognitiveServiceSubscriptionKey property: The subscription key of cognitive service.

TelephonyPhoneNumbers withDefaultLocale(String defaultLocale)

Set the defaultLocale property: The default locale of the phone number.

TelephonyPhoneNumbers withId(String id)

Set the id property: The element id.

TelephonyPhoneNumbers withOfferType(String offerType)

Set the offerType property: Optional Property that will determine the offering type of the phone.

TelephonyPhoneNumbers withPhoneNumber(String phoneNumber)

Set the phoneNumber property: The phone number.

Methods inherited from java.lang.Object

Constructor Details

TelephonyPhoneNumbers

public TelephonyPhoneNumbers()

Creates an instance of TelephonyPhoneNumbers class.

Method Details

acsEndpoint

public String acsEndpoint()

Get the acsEndpoint property: The endpoint of ACS.

Returns:

the acsEndpoint value.

acsResourceId

public String acsResourceId()

Get the acsResourceId property: The resource id of ACS.

Returns:

the acsResourceId value.

acsSecret

public String acsSecret()

Get the acsSecret property: The secret of ACS.

Returns:

the acsSecret value.

cognitiveServiceRegion

public String cognitiveServiceRegion()

Get the cognitiveServiceRegion property: The service region of cognitive service.

Returns:

the cognitiveServiceRegion value.

cognitiveServiceResourceId

public String cognitiveServiceResourceId()

Get the cognitiveServiceResourceId property: The resource id of cognitive service.

Returns:

the cognitiveServiceResourceId value.

cognitiveServiceSubscriptionKey

public String cognitiveServiceSubscriptionKey()

Get the cognitiveServiceSubscriptionKey property: The subscription key of cognitive service.

Returns:

the cognitiveServiceSubscriptionKey value.

defaultLocale

public String defaultLocale()

Get the defaultLocale property: The default locale of the phone number.

Returns:

the defaultLocale value.

fromJson

public static TelephonyPhoneNumbers fromJson(JsonReader jsonReader)

Reads an instance of TelephonyPhoneNumbers from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TelephonyPhoneNumbers 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 TelephonyPhoneNumbers.

id

public String id()

Get the id property: The element id.

Returns:

the id value.

offerType

public String offerType()

Get the offerType property: Optional Property that will determine the offering type of the phone.

Returns:

the offerType value.

phoneNumber

public String phoneNumber()

Get the phoneNumber property: The phone number.

Returns:

the phoneNumber value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAcsEndpoint

public TelephonyPhoneNumbers withAcsEndpoint(String acsEndpoint)

Set the acsEndpoint property: The endpoint of ACS.

Parameters:

acsEndpoint - the acsEndpoint value to set.

Returns:

the TelephonyPhoneNumbers object itself.

withAcsResourceId

public TelephonyPhoneNumbers withAcsResourceId(String acsResourceId)

Set the acsResourceId property: The resource id of ACS.

Parameters:

acsResourceId - the acsResourceId value to set.

Returns:

the TelephonyPhoneNumbers object itself.

withAcsSecret

public TelephonyPhoneNumbers withAcsSecret(String acsSecret)

Set the acsSecret property: The secret of ACS.

Parameters:

acsSecret - the acsSecret value to set.

Returns:

the TelephonyPhoneNumbers object itself.

withCognitiveServiceRegion

public TelephonyPhoneNumbers withCognitiveServiceRegion(String cognitiveServiceRegion)

Set the cognitiveServiceRegion property: The service region of cognitive service.

Parameters:

cognitiveServiceRegion - the cognitiveServiceRegion value to set.

Returns:

the TelephonyPhoneNumbers object itself.

withCognitiveServiceResourceId

public TelephonyPhoneNumbers withCognitiveServiceResourceId(String cognitiveServiceResourceId)

Set the cognitiveServiceResourceId property: The resource id of cognitive service.

Parameters:

cognitiveServiceResourceId - the cognitiveServiceResourceId value to set.

Returns:

the TelephonyPhoneNumbers object itself.

withCognitiveServiceSubscriptionKey

public TelephonyPhoneNumbers withCognitiveServiceSubscriptionKey(String cognitiveServiceSubscriptionKey)

Set the cognitiveServiceSubscriptionKey property: The subscription key of cognitive service.

Parameters:

cognitiveServiceSubscriptionKey - the cognitiveServiceSubscriptionKey value to set.

Returns:

the TelephonyPhoneNumbers object itself.

withDefaultLocale

public TelephonyPhoneNumbers withDefaultLocale(String defaultLocale)

Set the defaultLocale property: The default locale of the phone number.

Parameters:

defaultLocale - the defaultLocale value to set.

Returns:

the TelephonyPhoneNumbers object itself.

withId

public TelephonyPhoneNumbers withId(String id)

Set the id property: The element id.

Parameters:

id - the id value to set.

Returns:

the TelephonyPhoneNumbers object itself.

withOfferType

public TelephonyPhoneNumbers withOfferType(String offerType)

Set the offerType property: Optional Property that will determine the offering type of the phone.

Parameters:

offerType - the offerType value to set.

Returns:

the TelephonyPhoneNumbers object itself.

withPhoneNumber

public TelephonyPhoneNumbers withPhoneNumber(String phoneNumber)

Set the phoneNumber property: The phone number.

Parameters:

phoneNumber - the phoneNumber value to set.

Returns:

the TelephonyPhoneNumbers object itself.

Applies to