Package com.vonage.client.numbers
Class OwnedNumber
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.numbers.OwnedNumber
- All Implemented Interfaces:
Jsonable
Represents a number that is being rented by your account.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAppId()ID of the application linked to this number, if applicable.Two character country code in ISO 3166-1 alpha-2 format.String[]Capabilities of the number as an array of strings.Application ID for inbound message handling, if applicable.URL of the webhook endpoint that handles inbound messages.Phone number in E.164 format.getType()Type of number as a string.Voice webhook type.SIP URI, telephone number or Application ID.voidsetCountry(String country) Deprecated.voidsetFeatures(String[] features) Deprecated.voidsetMoHttpUrl(String moHttpUrl) Deprecated.voidDeprecated.voidDeprecated.voidsetVoiceCallbackType(String voiceCallbackType) Deprecated.voidsetVoiceCallbackValue(String voiceCallbackValue) Deprecated.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
OwnedNumber
Deprecated.This will be made private in a future release.Constructor, not for public use.
-
-
Method Details
-
getMoHttpUrl
URL of the webhook endpoint that handles inbound messages.- Returns:
- The inbound message webhook URL as a string, or
nullif unspecified.
-
getVoiceCallbackType
Voice webhook type. In a future release, this will be an enum.- Returns:
- The voice webhook callback type as a string, or
nullif unknown.
-
getVoiceCallbackValue
SIP URI, telephone number or Application ID.- Returns:
- The voice webhook value as a string, or
nullif unknown.
-
getMessagesCallbackValue
Application ID for inbound message handling, if applicable.- Returns:
- The application ID that will handle inbound messages to this number, or
nullif not applicable. - Since:
- 8.10.0
-
getAppId
ID of the application linked to this number, if applicable.- Returns:
- The application UUID that this number is linked to, or
nullif not linked to any application. - Since:
- 8.12.0
-
setMoHttpUrl
Deprecated. -
setVoiceCallbackType
Deprecated. -
setVoiceCallbackValue
Deprecated. -
getCountry
Two character country code in ISO 3166-1 alpha-2 format.- Returns:
- The number's country code.
-
getMsisdn
Phone number in E.164 format.- Returns:
- The MSISDN as a 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
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. -
setMsisdn
Deprecated. -
setType
Deprecated. -
setFeatures
Deprecated.
-