Class PurchasedPhoneNumber
java.lang.Object
com.azure.communication.phonenumbers.models.PurchasedPhoneNumber
The PurchasedPhoneNumber model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the assignmentType property: The assignment type of the phone number.Get the capabilities property: Capabilities of a phone number.getCost()
Get the cost property: The incurred cost for a single phone number.Get the countryCode property: The ISO 3166-2 code of the phone number's country, e.g.getId()
Get the id property: The id of the phone number, e.g.Get the phoneNumber property: String of the E.164 format of the phone number, e.g.Get the phoneNumberType property: The phone number's type, e.g.Get the purchaseDate property: The date and time that the phone number was purchased.
-
Constructor Details
-
PurchasedPhoneNumber
public PurchasedPhoneNumber()
-
-
Method Details
-
getId
Get the id property: The id of the phone number, e.g. 11234567890.- Returns:
- the id value.
-
getPhoneNumber
Get the phoneNumber property: String of the E.164 format of the phone number, e.g. +11234567890.- Returns:
- the phoneNumber value.
-
getCountryCode
Get the countryCode property: The ISO 3166-2 code of the phone number's country, e.g. US.- Returns:
- the countryCode value.
-
getPhoneNumberType
Get the phoneNumberType property: The phone number's type, e.g. Geographic, TollFree.- Returns:
- the phoneNumberType value.
-
getCapabilities
Get the capabilities property: Capabilities of a phone number.- Returns:
- the capabilities value.
-
getAssignmentType
Get the assignmentType property: The assignment type of the phone number. A phone number can be assigned to a person, or to an application.- Returns:
- the assignmentType value.
-
getPurchaseDate
Get the purchaseDate property: The date and time that the phone number was purchased.- Returns:
- the purchaseDate value.
-
getCost
Get the cost property: The incurred cost for a single phone number.- Returns:
- the cost value.
-