Class UpdateNumberRequest.Builder

java.lang.Object
com.vonage.client.numbers.UpdateNumberRequest.Builder
Enclosing class:
UpdateNumberRequest

public static class UpdateNumberRequest.Builder extends Object
Builder for specifying the properties of the number to update.
Since:
8.10.0
  • Method Details

    • moSmppSysType

      Sets the associated system type for your SMPP client.
      Parameters:
      moSmppSysType - The system type as a string.
      Returns:
      This builder.
    • voiceCallback

      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, sip or tel are 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

      public UpdateNumberRequest.Builder voiceStatusCallback(URI 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.