Class SettingsRequest

java.lang.Object
com.vonage.client.account.SettingsRequest
All Implemented Interfaces:
QueryParamsRequest

@Deprecated public class SettingsRequest extends Object implements QueryParamsRequest
Deprecated.
This will be made package-private in the next major release.
Request wrapper for updating account settings.
  • Constructor Details

    • SettingsRequest

      public SettingsRequest(String incomingSmsUrl, String deliveryReceiptUrl)
      Deprecated.
      Constructor.
      Parameters:
      incomingSmsUrl - The URL where Vonage will send a webhook when an incoming SMS is received when a number-specific URL is not configured. Set to an empty string to unset the value.
      deliveryReceiptUrl - The URL where Vonage will send a webhook when an incoming SMS is received when a number-specific URL is not configured. Set to an empty string to unset the value.
  • Method Details

    • withIncomingSmsUrl

      @Deprecated public static SettingsRequest withIncomingSmsUrl(String incomingSmsUrl)
      Deprecated.
      This will be removed in the next major release.
      Parameters:
      incomingSmsUrl - The URL where Vonage will send a webhook when an incoming SMS is received when a number-specific URL is not configured. Set to an empty string to unset the value.
      Returns:
      An SettingsRequest with only the incoming SMS URL set.
    • withDeliveryReceiptUrl

      @Deprecated public static SettingsRequest withDeliveryReceiptUrl(String deliveryReceiptUrl)
      Deprecated.
      This will be removed in the next major release.
      Parameters:
      deliveryReceiptUrl - The URL where Vonage will send a webhook when an incoming SMS is received when a number-specific URL is not configured. Set to an empty string to unset the value.
      Returns:
      An SettingsRequest with only the delivery receipt URL set.
    • getIncomingSmsUrl

      Deprecated.
      Returns:
      The URL where Vonage will send a webhook when an incoming SMS is received when a number-specific URL is not configured.
    • getDeliveryReceiptUrl

      Deprecated.
      Returns:
      The URL where Vonage will send a webhook when a delivery receipt is received when a number-specific URL is not configured.
    • makeParams

      Deprecated.
      Description copied from interface: QueryParamsRequest
      Internal 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 as final. Duplicate entries can be handled by mapping the key to a list of the entries.
      Specified by:
      makeParams in interface QueryParamsRequest
      Returns:
      The query parameters as unique key-value pairs.