Package com.nexmo.client.account
Class SettingsRequest
- java.lang.Object
-
- com.nexmo.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDeliveryReceiptUrl()java.lang.StringgetIncomingSmsUrl()static SettingsRequestwithDeliveryReceiptUrl(java.lang.String deliveryReceiptUrl)static SettingsRequestwithIncomingSmsUrl(java.lang.String incomingSmsUrl)
-
-
-
Constructor Detail
-
SettingsRequest
public SettingsRequest(java.lang.String incomingSmsUrl, java.lang.String deliveryReceiptUrl)
- Parameters:
incomingSmsUrl- The URL where Nexmo 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 Nexmo 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 Detail
-
withIncomingSmsUrl
public static SettingsRequest withIncomingSmsUrl(java.lang.String incomingSmsUrl)
- Parameters:
incomingSmsUrl- The URL where Nexmo 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 Nexmo 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 Nexmo 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 Nexmo will send a webhook when a delivery receipt is received when a number-specific URL is not configured.
-
-