Class SettingsRequest

java.lang.Object
com.vonage.client.account.SettingsRequest

public class SettingsRequest
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    SettingsRequest​(java.lang.String incomingSmsUrl, java.lang.String deliveryReceiptUrl)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDeliveryReceiptUrl()  
    java.lang.String getIncomingSmsUrl()  
    static SettingsRequest withDeliveryReceiptUrl​(java.lang.String deliveryReceiptUrl)  
    static SettingsRequest withIncomingSmsUrl​(java.lang.String incomingSmsUrl)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SettingsRequest

      public SettingsRequest​(java.lang.String incomingSmsUrl, java.lang.String deliveryReceiptUrl)
      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

      public static SettingsRequest withIncomingSmsUrl​(java.lang.String incomingSmsUrl)
      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

      public static SettingsRequest withDeliveryReceiptUrl​(java.lang.String deliveryReceiptUrl)
      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

      public java.lang.String getIncomingSmsUrl()
      Returns:
      The URL where Vonage will send a webhook when an incoming SMS is received when a number-specific URL is not configured.
    • getDeliveryReceiptUrl

      public java.lang.String getDeliveryReceiptUrl()
      Returns:
      The URL where Vonage will send a webhook when a delivery receipt is received when a number-specific URL is not configured.