Package com.vonage.client.numbers
Class UpdateNumberRequest
java.lang.Object
com.vonage.client.numbers.UpdateNumberRequest
- All Implemented Interfaces:
QueryParamsRequest
Defines properties for updating an existing owned number.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for specifying the properties of the number to update.static enumRepresents the callback type for voice. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateNumberRequest.BuilderEntrypoint for constructing an instance of this class.ID of the application that will handle inbound traffic to this number.Two character country code in ISO 3166-1 alpha-2 format.Deprecated.A URL-encoded URI to the webhook endpoint that handles inbound messages.The associated system type for your SMPP client.Phone number in E.164 format.Specifies whether inbound voice calls on your number are forwarded to a SIP or a telephone number.The SIP URI or telephone number.The webhook URI for Vonage to send a request to when a call ends.Internal method for serializing the fields of this class into query parameters.voidsetMessagesCallbackValue(String messagesCallbackValue) Deprecated.voidsetMoHttpUrl(String moHttpUrl) Deprecated.voidsetMoSmppSysType(String moSmppSysType) Deprecated.voidsetVoiceCallbackType(UpdateNumberRequest.CallbackType voiceCallbackType) Deprecated.voidsetVoiceCallbackValue(String voiceCallbackValue) Deprecated.voidsetVoiceStatusCallback(String voiceStatusCallback) Deprecated.
-
Constructor Details
-
UpdateNumberRequest
Deprecated.Usebuilder(String, String). This will be removed in the next major release.Deprecated constructor.- Parameters:
msisdn- The inbound virtual number to update.country- The two character country code in ISO 3166-1 alpha-2 format.
-
-
Method Details
-
getApplicationId
ID of the application that will handle inbound traffic to this number.- Returns:
- The application ID, or
nullif unspecified.
-
getMoHttpUrl
A URL-encoded URI to the webhook endpoint that handles inbound messages. Your webhook endpoint must be active before you make this request. Vonage makes a GET request to the endpoint and checks that it returns a 200 OK response. Set this parameter's value to an empty string to remove the webhook.- Returns:
- The inbound message webhook URL as a string, or
nullif unspecified.
-
getMoSmppSysType
The associated system type for your SMPP client.- Returns:
- The SMPP system type as a string, or
nullif unspecified.
-
getVoiceCallbackType
Specifies whether inbound voice calls on your number are forwarded to a SIP or a telephone number. If set, sip or tel are prioritized over the Voice capability in your Application.- Returns:
- The voice callback type as an enum, or
nullif unspecified.
-
getVoiceCallbackValue
The SIP URI or telephone number.- Returns:
- The voice callback value as a string, or
nullif unspecified.
-
getVoiceStatusCallback
The webhook URI for Vonage to send a request to when a call ends.- Returns:
- The voice status callback URL as a string, or
nullif unspecified.
-
setMoHttpUrl
Deprecated. -
setMoSmppSysType
Deprecated. -
setVoiceCallbackType
Deprecated. -
setVoiceCallbackValue
Deprecated. -
setVoiceStatusCallback
Deprecated. -
getMessagesCallbackValue
Deprecated. -
setMessagesCallbackValue
Deprecated. -
makeParams
Description copied from interface:QueryParamsRequestInternal method for serializing the fields of this class into query parameters. The Map should be mutable so that subclasses can add fields, otherwise the method or implementing class should be marked asfinal. Duplicate entries can be handled by mapping the key to a list of the entries.- Specified by:
makeParamsin interfaceQueryParamsRequest- Returns:
- The query parameters as unique key-value pairs.
-
builder
Entrypoint for constructing an instance of this class.- Parameters:
msisdn- The inbound virtual number to update.country- The two character country code in ISO 3166-1 alpha-2 format.- Returns:
- A new Builder.
- Since:
- 8.10.0
-
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.
-
builder(String, String).