Class PurchasedPhoneNumber

java.lang.Object
com.azure.communication.phonenumbers.models.PurchasedPhoneNumber

public final class PurchasedPhoneNumber extends Object
The PurchasedPhoneNumber model.
  • Constructor Details

    • PurchasedPhoneNumber

      public PurchasedPhoneNumber()
  • Method Details

    • getId

      public String getId()
      Get the id property: The id of the phone number, e.g. 11234567890.
      Returns:
      the id value.
    • getPhoneNumber

      public String getPhoneNumber()
      Get the phoneNumber property: String of the E.164 format of the phone number, e.g. +11234567890.
      Returns:
      the phoneNumber value.
    • getCountryCode

      public String getCountryCode()
      Get the countryCode property: The ISO 3166-2 code of the phone number's country, e.g. US.
      Returns:
      the countryCode value.
    • getPhoneNumberType

      public PhoneNumberType getPhoneNumberType()
      Get the phoneNumberType property: The phone number's type, e.g. Geographic, TollFree.
      Returns:
      the phoneNumberType value.
    • getCapabilities

      public PhoneNumberCapabilities getCapabilities()
      Get the capabilities property: Capabilities of a phone number.
      Returns:
      the capabilities value.
    • getAssignmentType

      public PhoneNumberAssignmentType 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

      public OffsetDateTime getPurchaseDate()
      Get the purchaseDate property: The date and time that the phone number was purchased.
      Returns:
      the purchaseDate value.
    • getCost

      public PhoneNumberCost getCost()
      Get the cost property: The incurred cost for a single phone number.
      Returns:
      the cost value.