Package com.vonage.client.account
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.StringgetDeliveryReceiptUrl()java.lang.StringgetIncomingSmsUrl()static SettingsRequestwithDeliveryReceiptUrl(java.lang.String deliveryReceiptUrl)static SettingsRequestwithIncomingSmsUrl(java.lang.String incomingSmsUrl)
-
Constructor Details
-
SettingsRequest
- 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
- 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
- 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
- Returns:
- The URL where Vonage will send a webhook when an incoming SMS is received when a number-specific URL is not configured.
-
getDeliveryReceiptUrl
- Returns:
- The URL where Vonage will send a webhook when a delivery receipt is received when a number-specific URL is not configured.
-