Class OwnedNumber

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

public class OwnedNumber extends JsonableBaseObject
Represents a number that is being rented by your account.
  • Constructor Details

    • OwnedNumber

      Deprecated.
      This will be made private in a future release.
      Constructor, not for public use.
  • Method Details

    • getMoHttpUrl

      public String getMoHttpUrl()
      URL of the webhook endpoint that handles inbound messages.
      Returns:
      The inbound message webhook URL as a string, or null if unspecified.
    • getVoiceCallbackType

      Voice webhook type. In a future release, this will be an enum.
      Returns:
      The voice webhook callback type as a string, or null if unknown.
    • getVoiceCallbackValue

      SIP URI, telephone number or Application ID.
      Returns:
      The voice webhook value as a string, or null if unknown.
    • getMessagesCallbackValue

      Application ID for inbound message handling, if applicable.
      Returns:
      The application ID that will handle inbound messages to this number, or null if not applicable.
      Since:
      8.10.0
    • getAppId

      public UUID getAppId()
      ID of the application linked to this number, if applicable.
      Returns:
      The application UUID that this number is linked to, or null if not linked to any application.
      Since:
      8.12.0
    • setMoHttpUrl

      @Deprecated public void setMoHttpUrl(String moHttpUrl)
      Deprecated.
    • setVoiceCallbackType

      @Deprecated public void setVoiceCallbackType(String voiceCallbackType)
      Deprecated.
    • setVoiceCallbackValue

      @Deprecated public void setVoiceCallbackValue(String voiceCallbackValue)
      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.