Package com.vonage.client.numbers
Class UpdateNumberRequest.Builder
java.lang.Object
com.vonage.client.numbers.UpdateNumberRequest.Builder
- Enclosing class:
UpdateNumberRequest
Builder for specifying the properties of the number to update.
- Since:
- 8.10.0
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId(String appId) Sets the application that will handle inbound traffic to this number.applicationId(UUID appId) Sets the application that will handle inbound traffic to this number.build()Builds the UpdateNumberRequest.Sets the URL-encoded URI to the webhook endpoint that handles inbound messages.Sets the URL-encoded URI to the webhook endpoint that handles inbound messages.moSmppSysType(String moSmppSysType) Sets the associated system type for your SMPP client.voiceCallback(UpdateNumberRequest.CallbackType type, String voiceCallbackValue) Sets the voice callback type and value (either SIP or PSTN).voiceStatusCallback(String voiceStatusCallback) Sets the webhook URI for Vonage to send a request to when a call ends.voiceStatusCallback(URI voiceStatusCallback) Sets the webhook URI for Vonage to send a request to when a call ends.
-
Method Details
-
moSmppSysType
Sets the associated system type for your SMPP client.- Parameters:
moSmppSysType- The system type as a string.- Returns:
- This builder.
-
voiceCallback
public UpdateNumberRequest.Builder voiceCallback(UpdateNumberRequest.CallbackType type, String voiceCallbackValue) Sets the voice callback type and value (either SIP or PSTN).- Parameters:
type- Specify whether inbound voice calls on your number are forwarded to a SIP or a telephone number. If set,siportelare prioritized over the Voice capability in your Application.voiceCallbackValue- The SIP URI or telephone number.- Returns:
- This builder.
-
applicationId
Sets the application that will handle inbound traffic to this number.- Parameters:
appId- The application ID as a string.- Returns:
- This builder.
-
applicationId
Sets the application that will handle inbound traffic to this number.- Parameters:
appId- The application ID.- Returns:
- This builder.
-
moHttpUrl
Sets the 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.- Parameters:
moHttpUrl- The inbound message webhook URL as a string.- Returns:
- This builder.
-
moHttpUrl
Sets the 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.- Parameters:
moHttpUrl- The inbound message webhook URL.- Returns:
- This builder.
-
voiceStatusCallback
Sets the webhook URI for Vonage to send a request to when a call ends.- Parameters:
voiceStatusCallback- The voice status webhook URL as a string.- Returns:
- This builder.
-
voiceStatusCallback
Sets the webhook URI for Vonage to send a request to when a call ends.- Parameters:
voiceStatusCallback- The voice status webhook URL.- Returns:
- This builder.
-
build
Builds the UpdateNumberRequest.- Returns:
- A new UpdateNumberRequest with this builder's properties.
-