Class AvailableNumber

java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.numbers.AvailableNumber
All Implemented Interfaces:
Jsonable

public class AvailableNumber extends JsonableBaseObject
Represents a number that is available to buy.
  • Constructor Details

    • AvailableNumber

      Deprecated.
      This will be made package-private in a future release.
      Constructor.
  • Method Details

    • getCost

      public String getCost()
      The monthly rental cost for this number, in Euros.
      Returns:
      The rental cost as a string.
    • setCost

      @Deprecated public void setCost(String cost)
      Deprecated.
    • getCountry

      public String getCountry()
      Two character country code in ISO 3166-1 alpha-2 format.
      Returns:
      The number's country code.
    • getMsisdn

      public String getMsisdn()
      Phone number in E.164 format.
      Returns:
      The MSISDN as a string.
    • getType

      public String getType()
      Type of number as a string. In a future release, this will be an enum.
      Returns:
      The type of number as a string.
    • getFeatures

      public String[] getFeatures()
      Capabilities of the number as an array of strings. In a future release, these will be enums.
      Returns:
      The number's capabilities as a string array.
    • setCountry

      @Deprecated public void setCountry(String country)
      Deprecated.
    • setMsisdn

      @Deprecated public void setMsisdn(String msisdn)
      Deprecated.
    • setType

      @Deprecated public void setType(String type)
      Deprecated.
    • setFeatures

      @Deprecated public void setFeatures(String[] features)
      Deprecated.